~ubuntu-branches/ubuntu/utopic/gnome-online-accounts/utopic

« back to all changes in this revision

Viewing changes to src/goaidentity/org.gnome.Identity.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Laurent Bigonville, Andreas Henriksson
  • Date: 2014-05-16 11:42:52 UTC
  • mfrom: (1.1.28) (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20140516114252-u5ect6mk6ht8i38x
Tags: 3.12.2-1
[ Laurent Bigonville ]
* debian/control.in: Recommends realmd package (Closes: #725965)

[ Andreas Henriksson ]
* New upstream release.
  - Removes chat support from Windows Live provider (XMPP gateway gone).
* Bump Standards-Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Generated by gdbus-codegen 2.38.2. DO NOT EDIT.
 
2
 * Generated by gdbus-codegen 2.40.0. DO NOT EDIT.
3
3
 *
4
4
 * The license of this code is the same as for the source it was derived from.
5
5
 */
841
841
 
842
842
static void goa_identity_service_manager_proxy_iface_init (GoaIdentityServiceManagerIface *iface);
843
843
 
 
844
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
844
845
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceManagerProxy, goa_identity_service_manager_proxy, G_TYPE_DBUS_PROXY,
845
846
                         G_ADD_PRIVATE (GoaIdentityServiceManagerProxy)
846
847
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_MANAGER, goa_identity_service_manager_proxy_iface_init));
847
848
 
 
849
#else
 
850
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceManagerProxy, goa_identity_service_manager_proxy, G_TYPE_DBUS_PROXY,
 
851
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_MANAGER, goa_identity_service_manager_proxy_iface_init));
 
852
 
 
853
#endif
848
854
static void
849
855
goa_identity_service_manager_proxy_finalize (GObject *object)
850
856
{
942
948
static void
943
949
goa_identity_service_manager_proxy_init (GoaIdentityServiceManagerProxy *proxy)
944
950
{
 
951
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
945
952
  proxy->priv = goa_identity_service_manager_proxy_get_instance_private (proxy);
 
953
#else
 
954
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GOA_IDENTITY_SERVICE_TYPE_MANAGER_PROXY, GoaIdentityServiceManagerProxyPrivate);
 
955
#endif
 
956
 
946
957
  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), goa_identity_service_manager_interface_info ());
947
958
}
948
959
 
961
972
  proxy_class->g_signal = goa_identity_service_manager_proxy_g_signal;
962
973
  proxy_class->g_properties_changed = goa_identity_service_manager_proxy_g_properties_changed;
963
974
 
 
975
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
 
976
  g_type_class_add_private (klass, sizeof (GoaIdentityServiceManagerProxyPrivate));
 
977
#endif
964
978
}
965
979
 
966
980
static void
1361
1375
}
1362
1376
 
1363
1377
static void goa_identity_service_manager_skeleton_iface_init (GoaIdentityServiceManagerIface *iface);
 
1378
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1364
1379
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceManagerSkeleton, goa_identity_service_manager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
1365
1380
                         G_ADD_PRIVATE (GoaIdentityServiceManagerSkeleton)
1366
1381
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_MANAGER, goa_identity_service_manager_skeleton_iface_init));
1367
1382
 
 
1383
#else
 
1384
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceManagerSkeleton, goa_identity_service_manager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
 
1385
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_MANAGER, goa_identity_service_manager_skeleton_iface_init));
 
1386
 
 
1387
#endif
1368
1388
static void
1369
1389
goa_identity_service_manager_skeleton_finalize (GObject *object)
1370
1390
{
1380
1400
static void
1381
1401
goa_identity_service_manager_skeleton_init (GoaIdentityServiceManagerSkeleton *skeleton)
1382
1402
{
 
1403
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1383
1404
  skeleton->priv = goa_identity_service_manager_skeleton_get_instance_private (skeleton);
 
1405
#else
 
1406
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GOA_IDENTITY_SERVICE_TYPE_MANAGER_SKELETON, GoaIdentityServiceManagerSkeletonPrivate);
 
1407
#endif
 
1408
 
1384
1409
  g_mutex_init (&skeleton->priv->lock);
1385
1410
  skeleton->priv->context = g_main_context_ref_thread_default ();
1386
1411
}
1399
1424
  skeleton_class->get_properties = goa_identity_service_manager_skeleton_dbus_interface_get_properties;
1400
1425
  skeleton_class->flush = goa_identity_service_manager_skeleton_dbus_interface_flush;
1401
1426
  skeleton_class->get_vtable = goa_identity_service_manager_skeleton_dbus_interface_get_vtable;
 
1427
 
 
1428
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
 
1429
  g_type_class_add_private (klass, sizeof (GoaIdentityServiceManagerSkeletonPrivate));
 
1430
#endif
1402
1431
}
1403
1432
 
1404
1433
static void
1716
1745
 
1717
1746
static void goa_identity_service_identity_proxy_iface_init (GoaIdentityServiceIdentityIface *iface);
1718
1747
 
 
1748
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1719
1749
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceIdentityProxy, goa_identity_service_identity_proxy, G_TYPE_DBUS_PROXY,
1720
1750
                         G_ADD_PRIVATE (GoaIdentityServiceIdentityProxy)
1721
1751
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_IDENTITY, goa_identity_service_identity_proxy_iface_init));
1722
1752
 
 
1753
#else
 
1754
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceIdentityProxy, goa_identity_service_identity_proxy, G_TYPE_DBUS_PROXY,
 
1755
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_IDENTITY, goa_identity_service_identity_proxy_iface_init));
 
1756
 
 
1757
#endif
1723
1758
static void
1724
1759
goa_identity_service_identity_proxy_finalize (GObject *object)
1725
1760
{
1759
1794
{
1760
1795
  const _ExtendedGDBusPropertyInfo *info = user_data;
1761
1796
  GError *error;
 
1797
  GVariant *_ret;
1762
1798
  error = NULL;
1763
 
  if (!g_dbus_proxy_call_finish (proxy, res, &error))
 
1799
  _ret = g_dbus_proxy_call_finish (proxy, res, &error);
 
1800
  if (!_ret)
1764
1801
    {
1765
1802
      g_warning ("Error setting property '%s' on interface org.gnome.Identity: %s (%s, %d)",
1766
1803
                 info->parent_struct.name, 
1767
1804
                 error->message, g_quark_to_string (error->domain), error->code);
1768
1805
      g_error_free (error);
1769
1806
    }
 
1807
  else
 
1808
    {
 
1809
      g_variant_unref (_ret);
 
1810
    }
1770
1811
}
1771
1812
 
1772
1813
static void
1907
1948
static void
1908
1949
goa_identity_service_identity_proxy_init (GoaIdentityServiceIdentityProxy *proxy)
1909
1950
{
 
1951
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1910
1952
  proxy->priv = goa_identity_service_identity_proxy_get_instance_private (proxy);
 
1953
#else
 
1954
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GOA_IDENTITY_SERVICE_TYPE_IDENTITY_PROXY, GoaIdentityServiceIdentityProxyPrivate);
 
1955
#endif
 
1956
 
1911
1957
  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), goa_identity_service_identity_interface_info ());
1912
1958
}
1913
1959
 
1926
1972
  proxy_class->g_signal = goa_identity_service_identity_proxy_g_signal;
1927
1973
  proxy_class->g_properties_changed = goa_identity_service_identity_proxy_g_properties_changed;
1928
1974
 
1929
 
 
1930
1975
  goa_identity_service_identity_override_properties (gobject_class, 1);
 
1976
 
 
1977
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
 
1978
  g_type_class_add_private (klass, sizeof (GoaIdentityServiceIdentityProxyPrivate));
 
1979
#endif
1931
1980
}
1932
1981
 
1933
1982
static void
2347
2396
}
2348
2397
 
2349
2398
static void goa_identity_service_identity_skeleton_iface_init (GoaIdentityServiceIdentityIface *iface);
 
2399
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2350
2400
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceIdentitySkeleton, goa_identity_service_identity_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2351
2401
                         G_ADD_PRIVATE (GoaIdentityServiceIdentitySkeleton)
2352
2402
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_IDENTITY, goa_identity_service_identity_skeleton_iface_init));
2353
2403
 
 
2404
#else
 
2405
G_DEFINE_TYPE_WITH_CODE (GoaIdentityServiceIdentitySkeleton, goa_identity_service_identity_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
 
2406
                         G_IMPLEMENT_INTERFACE (GOA_IDENTITY_SERVICE_TYPE_IDENTITY, goa_identity_service_identity_skeleton_iface_init));
 
2407
 
 
2408
#endif
2354
2409
static void
2355
2410
goa_identity_service_identity_skeleton_finalize (GObject *object)
2356
2411
{
2508
2563
static void
2509
2564
goa_identity_service_identity_skeleton_init (GoaIdentityServiceIdentitySkeleton *skeleton)
2510
2565
{
 
2566
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2511
2567
  skeleton->priv = goa_identity_service_identity_skeleton_get_instance_private (skeleton);
 
2568
#else
 
2569
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GOA_IDENTITY_SERVICE_TYPE_IDENTITY_SKELETON, GoaIdentityServiceIdentitySkeletonPrivate);
 
2570
#endif
 
2571
 
2512
2572
  g_mutex_init (&skeleton->priv->lock);
2513
2573
  skeleton->priv->context = g_main_context_ref_thread_default ();
2514
2574
  skeleton->priv->properties = g_new0 (GValue, 3);
2570
2630
  skeleton_class->get_properties = goa_identity_service_identity_skeleton_dbus_interface_get_properties;
2571
2631
  skeleton_class->flush = goa_identity_service_identity_skeleton_dbus_interface_flush;
2572
2632
  skeleton_class->get_vtable = goa_identity_service_identity_skeleton_dbus_interface_get_vtable;
 
2633
 
 
2634
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
 
2635
  g_type_class_add_private (klass, sizeof (GoaIdentityServiceIdentitySkeletonPrivate));
 
2636
#endif
2573
2637
}
2574
2638
 
2575
2639
static void
2724
2788
static void
2725
2789
goa_identity_service_object_notify (GDBusObject *object, GDBusInterface *interface)
2726
2790
{
2727
 
  g_object_notify (G_OBJECT (object), ((_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface))->hyphen_name);
 
2791
  _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface);
 
2792
  /* info can be NULL if the other end is using a D-Bus interface we don't know
 
2793
   * anything about, for example old generated code in this process talking to
 
2794
   * newer generated code in the other process. */
 
2795
  if (info != NULL)
 
2796
    g_object_notify (G_OBJECT (object), info->hyphen_name);
2728
2797
}
2729
2798
 
2730
2799
/**