Update to upstream 1.0.1
[profile/ivi/gsignond.git] / src / daemon / dbus / gsignond-dbus-identity-gen.c
1 /*
2  * Generated by gdbus-codegen 2.32.4. DO NOT EDIT.
3  *
4  * The license of this code is the same as for the source it was derived from.
5  */
6
7 #ifdef HAVE_CONFIG_H
8 #  include "config.h"
9 #endif
10
11 #include "gsignond-dbus-identity-gen.h"
12
13 #include <string.h>
14 #ifdef G_OS_UNIX
15 #  include <gio/gunixfdlist.h>
16 #endif
17
18 typedef struct
19 {
20   GDBusArgInfo parent_struct;
21   gboolean use_gvariant;
22 } _ExtendedGDBusArgInfo;
23
24 typedef struct
25 {
26   GDBusMethodInfo parent_struct;
27   const gchar *signal_name;
28   gboolean pass_fdlist;
29 } _ExtendedGDBusMethodInfo;
30
31 typedef struct
32 {
33   GDBusSignalInfo parent_struct;
34   const gchar *signal_name;
35 } _ExtendedGDBusSignalInfo;
36
37 typedef struct
38 {
39   GDBusPropertyInfo parent_struct;
40   const gchar *hyphen_name;
41   gboolean use_gvariant;
42 } _ExtendedGDBusPropertyInfo;
43
44 typedef struct
45 {
46   GDBusInterfaceInfo parent_struct;
47   const gchar *hyphen_name;
48 } _ExtendedGDBusInterfaceInfo;
49
50 typedef struct
51 {
52   const _ExtendedGDBusPropertyInfo *info;
53   guint prop_id;
54   GValue orig_value; /* the value before the change */
55 } ChangedProperty;
56
57 static void
58 _changed_property_free (ChangedProperty *data)
59 {
60   g_value_unset (&data->orig_value);
61   g_free (data);
62 }
63
64 static gboolean
65 _g_strv_equal0 (gchar **a, gchar **b)
66 {
67   gboolean ret = FALSE;
68   guint n;
69   if (a == NULL && b == NULL)
70     {
71       ret = TRUE;
72       goto out;
73     }
74   if (a == NULL || b == NULL)
75     goto out;
76   if (g_strv_length (a) != g_strv_length (b))
77     goto out;
78   for (n = 0; a[n] != NULL; n++)
79     if (g_strcmp0 (a[n], b[n]) != 0)
80       goto out;
81   ret = TRUE;
82 out:
83   return ret;
84 }
85
86 static gboolean
87 _g_variant_equal0 (GVariant *a, GVariant *b)
88 {
89   gboolean ret = FALSE;
90   if (a == NULL && b == NULL)
91     {
92       ret = TRUE;
93       goto out;
94     }
95   if (a == NULL || b == NULL)
96     goto out;
97   ret = g_variant_equal (a, b);
98 out:
99   return ret;
100 }
101
102 G_GNUC_UNUSED static gboolean
103 _g_value_equal (const GValue *a, const GValue *b)
104 {
105   gboolean ret = FALSE;
106   g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
107   switch (G_VALUE_TYPE (a))
108     {
109       case G_TYPE_BOOLEAN:
110         ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
111         break;
112       case G_TYPE_UCHAR:
113         ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
114         break;
115       case G_TYPE_INT:
116         ret = (g_value_get_int (a) == g_value_get_int (b));
117         break;
118       case G_TYPE_UINT:
119         ret = (g_value_get_uint (a) == g_value_get_uint (b));
120         break;
121       case G_TYPE_INT64:
122         ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
123         break;
124       case G_TYPE_UINT64:
125         ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
126         break;
127       case G_TYPE_DOUBLE:
128         {
129           /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
130           gdouble da = g_value_get_double (a);
131           gdouble db = g_value_get_double (b);
132           ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
133         }
134         break;
135       case G_TYPE_STRING:
136         ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
137         break;
138       case G_TYPE_VARIANT:
139         ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
140         break;
141       default:
142         if (G_VALUE_TYPE (a) == G_TYPE_STRV)
143           ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
144         else
145           g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
146         break;
147     }
148   return ret;
149 }
150
151 /* ------------------------------------------------------------------------
152  * Code for interface com.google.code.AccountsSSO.gSingleSignOn.Identity
153  * ------------------------------------------------------------------------
154  */
155
156 /**
157  * SECTION:GSignondDbusIdentity
158  * @title: GSignondDbusIdentity
159  * @short_description: Generated C code for the com.google.code.AccountsSSO.gSingleSignOn.Identity D-Bus interface
160  *
161  * This section contains code for working with the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link> D-Bus interface in C.
162  */
163
164 /* ---- Introspection data for com.google.code.AccountsSSO.gSingleSignOn.Identity ---- */
165
166 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_message =
167 {
168   {
169     -1,
170     "message",
171     "s",
172     NULL
173   },
174   FALSE
175 };
176
177 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_pointers[] =
178 {
179   &_gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_message,
180   NULL
181 };
182
183 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_unnamed_arg1 =
184 {
185   {
186     -1,
187     "unnamed_arg1",
188     "u",
189     NULL
190   },
191   FALSE
192 };
193
194 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_pointers[] =
195 {
196   &_gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_unnamed_arg1,
197   NULL
198 };
199
200 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_request_credentials_update =
201 {
202   {
203     -1,
204     "requestCredentialsUpdate",
205     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_pointers,
206     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_pointers,
207     NULL
208   },
209   "handle-request-credentials-update",
210   FALSE
211 };
212
213 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_get_info_OUT_ARG_identityInfo =
214 {
215   {
216     -1,
217     "identityInfo",
218     "a{sv}",
219     NULL
220   },
221   FALSE
222 };
223
224 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_get_info_OUT_ARG_pointers[] =
225 {
226   &_gsignond_dbus_identity_method_info_get_info_OUT_ARG_identityInfo,
227   NULL
228 };
229
230 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_get_info =
231 {
232   {
233     -1,
234     "getInfo",
235     NULL,
236     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_get_info_OUT_ARG_pointers,
237     NULL
238   },
239   "handle-get-info",
240   FALSE
241 };
242
243 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_method =
244 {
245   {
246     -1,
247     "method",
248     "s",
249     NULL
250   },
251   FALSE
252 };
253
254 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_pointers[] =
255 {
256   &_gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_method,
257   NULL
258 };
259
260 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_objectPath =
261 {
262   {
263     -1,
264     "objectPath",
265     "o",
266     NULL
267   },
268   FALSE
269 };
270
271 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_pointers[] =
272 {
273   &_gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_objectPath,
274   NULL
275 };
276
277 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_get_auth_session =
278 {
279   {
280     -1,
281     "getAuthSession",
282     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_pointers,
283     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_pointers,
284     NULL
285   },
286   "handle-get-auth-session",
287   FALSE
288 };
289
290 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_user_IN_ARG_params =
291 {
292   {
293     -1,
294     "params",
295     "a{sv}",
296     NULL
297   },
298   FALSE
299 };
300
301 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_user_IN_ARG_pointers[] =
302 {
303   &_gsignond_dbus_identity_method_info_verify_user_IN_ARG_params,
304   NULL
305 };
306
307 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_user_OUT_ARG_unnamed_arg1 =
308 {
309   {
310     -1,
311     "unnamed_arg1",
312     "b",
313     NULL
314   },
315   FALSE
316 };
317
318 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_user_OUT_ARG_pointers[] =
319 {
320   &_gsignond_dbus_identity_method_info_verify_user_OUT_ARG_unnamed_arg1,
321   NULL
322 };
323
324 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_verify_user =
325 {
326   {
327     -1,
328     "verifyUser",
329     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_user_IN_ARG_pointers,
330     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_user_OUT_ARG_pointers,
331     NULL
332   },
333   "handle-verify-user",
334   FALSE
335 };
336
337 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_secret_IN_ARG_secret =
338 {
339   {
340     -1,
341     "secret",
342     "s",
343     NULL
344   },
345   FALSE
346 };
347
348 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_secret_IN_ARG_pointers[] =
349 {
350   &_gsignond_dbus_identity_method_info_verify_secret_IN_ARG_secret,
351   NULL
352 };
353
354 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_unnamed_arg1 =
355 {
356   {
357     -1,
358     "unnamed_arg1",
359     "b",
360     NULL
361   },
362   FALSE
363 };
364
365 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_pointers[] =
366 {
367   &_gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_unnamed_arg1,
368   NULL
369 };
370
371 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_verify_secret =
372 {
373   {
374     -1,
375     "verifySecret",
376     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_secret_IN_ARG_pointers,
377     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_pointers,
378     NULL
379   },
380   "handle-verify-secret",
381   FALSE
382 };
383
384 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_remove =
385 {
386   {
387     -1,
388     "remove",
389     NULL,
390     NULL,
391     NULL
392   },
393   "handle-remove",
394   FALSE
395 };
396
397 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_sign_out_OUT_ARG_unnamed_arg0 =
398 {
399   {
400     -1,
401     "unnamed_arg0",
402     "b",
403     NULL
404   },
405   FALSE
406 };
407
408 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_sign_out_OUT_ARG_pointers[] =
409 {
410   &_gsignond_dbus_identity_method_info_sign_out_OUT_ARG_unnamed_arg0,
411   NULL
412 };
413
414 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_sign_out =
415 {
416   {
417     -1,
418     "signOut",
419     NULL,
420     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_sign_out_OUT_ARG_pointers,
421     NULL
422   },
423   "handle-sign-out",
424   FALSE
425 };
426
427 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_store_IN_ARG_unnamed_arg0 =
428 {
429   {
430     -1,
431     "unnamed_arg0",
432     "a{sv}",
433     NULL
434   },
435   FALSE
436 };
437
438 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_store_IN_ARG_pointers[] =
439 {
440   &_gsignond_dbus_identity_method_info_store_IN_ARG_unnamed_arg0,
441   NULL
442 };
443
444 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_store_OUT_ARG_unnamed_arg1 =
445 {
446   {
447     -1,
448     "unnamed_arg1",
449     "u",
450     NULL
451   },
452   FALSE
453 };
454
455 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_store_OUT_ARG_pointers[] =
456 {
457   &_gsignond_dbus_identity_method_info_store_OUT_ARG_unnamed_arg1,
458   NULL
459 };
460
461 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_store =
462 {
463   {
464     -1,
465     "store",
466     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_store_IN_ARG_pointers,
467     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_store_OUT_ARG_pointers,
468     NULL
469   },
470   "handle-store",
471   FALSE
472 };
473
474 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_add_reference_IN_ARG_reference =
475 {
476   {
477     -1,
478     "reference",
479     "s",
480     NULL
481   },
482   FALSE
483 };
484
485 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_add_reference_IN_ARG_pointers[] =
486 {
487   &_gsignond_dbus_identity_method_info_add_reference_IN_ARG_reference,
488   NULL
489 };
490
491 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_add_reference_OUT_ARG_unnamed_arg1 =
492 {
493   {
494     -1,
495     "unnamed_arg1",
496     "i",
497     NULL
498   },
499   FALSE
500 };
501
502 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_add_reference_OUT_ARG_pointers[] =
503 {
504   &_gsignond_dbus_identity_method_info_add_reference_OUT_ARG_unnamed_arg1,
505   NULL
506 };
507
508 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_add_reference =
509 {
510   {
511     -1,
512     "addReference",
513     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_add_reference_IN_ARG_pointers,
514     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_add_reference_OUT_ARG_pointers,
515     NULL
516   },
517   "handle-add-reference",
518   FALSE
519 };
520
521 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_remove_reference_IN_ARG_reference =
522 {
523   {
524     -1,
525     "reference",
526     "s",
527     NULL
528   },
529   FALSE
530 };
531
532 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_remove_reference_IN_ARG_pointers[] =
533 {
534   &_gsignond_dbus_identity_method_info_remove_reference_IN_ARG_reference,
535   NULL
536 };
537
538 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_unnamed_arg1 =
539 {
540   {
541     -1,
542     "unnamed_arg1",
543     "i",
544     NULL
545   },
546   FALSE
547 };
548
549 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_pointers[] =
550 {
551   &_gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_unnamed_arg1,
552   NULL
553 };
554
555 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_remove_reference =
556 {
557   {
558     -1,
559     "removeReference",
560     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_remove_reference_IN_ARG_pointers,
561     (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_pointers,
562     NULL
563   },
564   "handle-remove-reference",
565   FALSE
566 };
567
568 static const _ExtendedGDBusMethodInfo * const _gsignond_dbus_identity_method_info_pointers[] =
569 {
570   &_gsignond_dbus_identity_method_info_request_credentials_update,
571   &_gsignond_dbus_identity_method_info_get_info,
572   &_gsignond_dbus_identity_method_info_get_auth_session,
573   &_gsignond_dbus_identity_method_info_verify_user,
574   &_gsignond_dbus_identity_method_info_verify_secret,
575   &_gsignond_dbus_identity_method_info_remove,
576   &_gsignond_dbus_identity_method_info_sign_out,
577   &_gsignond_dbus_identity_method_info_store,
578   &_gsignond_dbus_identity_method_info_add_reference,
579   &_gsignond_dbus_identity_method_info_remove_reference,
580   NULL
581 };
582
583 static const _ExtendedGDBusSignalInfo _gsignond_dbus_identity_signal_info_unregistered =
584 {
585   {
586     -1,
587     "unregistered",
588     NULL,
589     NULL
590   },
591   "unregistered"
592 };
593
594 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_signal_info_info_updated_ARG_unnamed_arg0 =
595 {
596   {
597     -1,
598     "unnamed_arg0",
599     "i",
600     NULL
601   },
602   FALSE
603 };
604
605 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_signal_info_info_updated_ARG_pointers[] =
606 {
607   &_gsignond_dbus_identity_signal_info_info_updated_ARG_unnamed_arg0,
608   NULL
609 };
610
611 static const _ExtendedGDBusSignalInfo _gsignond_dbus_identity_signal_info_info_updated =
612 {
613   {
614     -1,
615     "infoUpdated",
616     (GDBusArgInfo **) &_gsignond_dbus_identity_signal_info_info_updated_ARG_pointers,
617     NULL
618   },
619   "info-updated"
620 };
621
622 static const _ExtendedGDBusSignalInfo * const _gsignond_dbus_identity_signal_info_pointers[] =
623 {
624   &_gsignond_dbus_identity_signal_info_unregistered,
625   &_gsignond_dbus_identity_signal_info_info_updated,
626   NULL
627 };
628
629 static const _ExtendedGDBusInterfaceInfo _gsignond_dbus_identity_interface_info =
630 {
631   {
632     -1,
633     "com.google.code.AccountsSSO.gSingleSignOn.Identity",
634     (GDBusMethodInfo **) &_gsignond_dbus_identity_method_info_pointers,
635     (GDBusSignalInfo **) &_gsignond_dbus_identity_signal_info_pointers,
636     NULL,
637     NULL
638   },
639   "identity",
640 };
641
642
643 /**
644  * gsignond_dbus_identity_interface_info:
645  *
646  * Gets a machine-readable description of the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link> D-Bus interface.
647  *
648  * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
649  */
650 GDBusInterfaceInfo *
651 gsignond_dbus_identity_interface_info (void)
652 {
653   return (GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info;
654 }
655
656 /**
657  * gsignond_dbus_identity_override_properties:
658  * @klass: The class structure for a #GObject<!-- -->-derived class.
659  * @property_id_begin: The property id to assign to the first overridden property.
660  *
661  * Overrides all #GObject properties in the #GSignondDbusIdentity interface for a concrete class.
662  * The properties are overridden in the order they are defined.
663  *
664  * Returns: The last property id.
665  */
666 guint
667 gsignond_dbus_identity_override_properties (GObjectClass *klass, guint property_id_begin)
668 {
669   return property_id_begin - 1;
670 }
671
672
673
674 /**
675  * GSignondDbusIdentity:
676  *
677  * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>.
678  */
679
680 /**
681  * GSignondDbusIdentityIface:
682  * @parent_iface: The parent interface.
683  * @handle_add_reference: Handler for the #GSignondDbusIdentity::handle-add-reference signal.
684  * @handle_get_auth_session: Handler for the #GSignondDbusIdentity::handle-get-auth-session signal.
685  * @handle_get_info: Handler for the #GSignondDbusIdentity::handle-get-info signal.
686  * @handle_remove: Handler for the #GSignondDbusIdentity::handle-remove signal.
687  * @handle_remove_reference: Handler for the #GSignondDbusIdentity::handle-remove-reference signal.
688  * @handle_request_credentials_update: Handler for the #GSignondDbusIdentity::handle-request-credentials-update signal.
689  * @handle_sign_out: Handler for the #GSignondDbusIdentity::handle-sign-out signal.
690  * @handle_store: Handler for the #GSignondDbusIdentity::handle-store signal.
691  * @handle_verify_secret: Handler for the #GSignondDbusIdentity::handle-verify-secret signal.
692  * @handle_verify_user: Handler for the #GSignondDbusIdentity::handle-verify-user signal.
693  * @info_updated: Handler for the #GSignondDbusIdentity::info-updated signal.
694  * @unregistered: Handler for the #GSignondDbusIdentity::unregistered signal.
695  *
696  * Virtual table for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>.
697  */
698
699 static void
700 gsignond_dbus_identity_default_init (GSignondDbusIdentityIface *iface)
701 {
702   /* GObject signals for incoming D-Bus method calls: */
703   /**
704    * GSignondDbusIdentity::handle-request-credentials-update:
705    * @object: A #GSignondDbusIdentity.
706    * @invocation: A #GDBusMethodInvocation.
707    * @arg_message: Argument passed by remote caller.
708    *
709    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method.
710    *
711    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_request_credentials_update() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
712    *
713    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
714    */
715   g_signal_new ("handle-request-credentials-update",
716     G_TYPE_FROM_INTERFACE (iface),
717     G_SIGNAL_RUN_LAST,
718     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_request_credentials_update),
719     g_signal_accumulator_true_handled,
720     NULL,
721     g_cclosure_marshal_generic,
722     G_TYPE_BOOLEAN,
723     2,
724     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
725
726   /**
727    * GSignondDbusIdentity::handle-get-info:
728    * @object: A #GSignondDbusIdentity.
729    * @invocation: A #GDBusMethodInvocation.
730    *
731    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method.
732    *
733    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_get_info() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
734    *
735    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
736    */
737   g_signal_new ("handle-get-info",
738     G_TYPE_FROM_INTERFACE (iface),
739     G_SIGNAL_RUN_LAST,
740     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_get_info),
741     g_signal_accumulator_true_handled,
742     NULL,
743     g_cclosure_marshal_generic,
744     G_TYPE_BOOLEAN,
745     1,
746     G_TYPE_DBUS_METHOD_INVOCATION);
747
748   /**
749    * GSignondDbusIdentity::handle-get-auth-session:
750    * @object: A #GSignondDbusIdentity.
751    * @invocation: A #GDBusMethodInvocation.
752    * @arg_method: Argument passed by remote caller.
753    *
754    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method.
755    *
756    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_get_auth_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
757    *
758    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
759    */
760   g_signal_new ("handle-get-auth-session",
761     G_TYPE_FROM_INTERFACE (iface),
762     G_SIGNAL_RUN_LAST,
763     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_get_auth_session),
764     g_signal_accumulator_true_handled,
765     NULL,
766     g_cclosure_marshal_generic,
767     G_TYPE_BOOLEAN,
768     2,
769     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
770
771   /**
772    * GSignondDbusIdentity::handle-verify-user:
773    * @object: A #GSignondDbusIdentity.
774    * @invocation: A #GDBusMethodInvocation.
775    * @arg_params: Argument passed by remote caller.
776    *
777    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method.
778    *
779    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_verify_user() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
780    *
781    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
782    */
783   g_signal_new ("handle-verify-user",
784     G_TYPE_FROM_INTERFACE (iface),
785     G_SIGNAL_RUN_LAST,
786     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_verify_user),
787     g_signal_accumulator_true_handled,
788     NULL,
789     g_cclosure_marshal_generic,
790     G_TYPE_BOOLEAN,
791     2,
792     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
793
794   /**
795    * GSignondDbusIdentity::handle-verify-secret:
796    * @object: A #GSignondDbusIdentity.
797    * @invocation: A #GDBusMethodInvocation.
798    * @arg_secret: Argument passed by remote caller.
799    *
800    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method.
801    *
802    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_verify_secret() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
803    *
804    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
805    */
806   g_signal_new ("handle-verify-secret",
807     G_TYPE_FROM_INTERFACE (iface),
808     G_SIGNAL_RUN_LAST,
809     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_verify_secret),
810     g_signal_accumulator_true_handled,
811     NULL,
812     g_cclosure_marshal_generic,
813     G_TYPE_BOOLEAN,
814     2,
815     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
816
817   /**
818    * GSignondDbusIdentity::handle-remove:
819    * @object: A #GSignondDbusIdentity.
820    * @invocation: A #GDBusMethodInvocation.
821    *
822    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method.
823    *
824    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_remove() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
825    *
826    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
827    */
828   g_signal_new ("handle-remove",
829     G_TYPE_FROM_INTERFACE (iface),
830     G_SIGNAL_RUN_LAST,
831     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_remove),
832     g_signal_accumulator_true_handled,
833     NULL,
834     g_cclosure_marshal_generic,
835     G_TYPE_BOOLEAN,
836     1,
837     G_TYPE_DBUS_METHOD_INVOCATION);
838
839   /**
840    * GSignondDbusIdentity::handle-sign-out:
841    * @object: A #GSignondDbusIdentity.
842    * @invocation: A #GDBusMethodInvocation.
843    *
844    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method.
845    *
846    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_sign_out() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
847    *
848    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
849    */
850   g_signal_new ("handle-sign-out",
851     G_TYPE_FROM_INTERFACE (iface),
852     G_SIGNAL_RUN_LAST,
853     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_sign_out),
854     g_signal_accumulator_true_handled,
855     NULL,
856     g_cclosure_marshal_generic,
857     G_TYPE_BOOLEAN,
858     1,
859     G_TYPE_DBUS_METHOD_INVOCATION);
860
861   /**
862    * GSignondDbusIdentity::handle-store:
863    * @object: A #GSignondDbusIdentity.
864    * @invocation: A #GDBusMethodInvocation.
865    * @arg_unnamed_arg0: Argument passed by remote caller.
866    *
867    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method.
868    *
869    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_store() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
870    *
871    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
872    */
873   g_signal_new ("handle-store",
874     G_TYPE_FROM_INTERFACE (iface),
875     G_SIGNAL_RUN_LAST,
876     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_store),
877     g_signal_accumulator_true_handled,
878     NULL,
879     g_cclosure_marshal_generic,
880     G_TYPE_BOOLEAN,
881     2,
882     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
883
884   /**
885    * GSignondDbusIdentity::handle-add-reference:
886    * @object: A #GSignondDbusIdentity.
887    * @invocation: A #GDBusMethodInvocation.
888    * @arg_reference: Argument passed by remote caller.
889    *
890    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method.
891    *
892    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_add_reference() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
893    *
894    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
895    */
896   g_signal_new ("handle-add-reference",
897     G_TYPE_FROM_INTERFACE (iface),
898     G_SIGNAL_RUN_LAST,
899     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_add_reference),
900     g_signal_accumulator_true_handled,
901     NULL,
902     g_cclosure_marshal_generic,
903     G_TYPE_BOOLEAN,
904     2,
905     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
906
907   /**
908    * GSignondDbusIdentity::handle-remove-reference:
909    * @object: A #GSignondDbusIdentity.
910    * @invocation: A #GDBusMethodInvocation.
911    * @arg_reference: Argument passed by remote caller.
912    *
913    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method.
914    *
915    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_remove_reference() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
916    *
917    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
918    */
919   g_signal_new ("handle-remove-reference",
920     G_TYPE_FROM_INTERFACE (iface),
921     G_SIGNAL_RUN_LAST,
922     G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_remove_reference),
923     g_signal_accumulator_true_handled,
924     NULL,
925     g_cclosure_marshal_generic,
926     G_TYPE_BOOLEAN,
927     2,
928     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
929
930   /* GObject signals for received D-Bus signals: */
931   /**
932    * GSignondDbusIdentity::unregistered:
933    * @object: A #GSignondDbusIdentity.
934    *
935    * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.unregistered">"unregistered"</link> is received.
936    *
937    * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
938    */
939   g_signal_new ("unregistered",
940     G_TYPE_FROM_INTERFACE (iface),
941     G_SIGNAL_RUN_LAST,
942     G_STRUCT_OFFSET (GSignondDbusIdentityIface, unregistered),
943     NULL,
944     NULL,
945     g_cclosure_marshal_generic,
946     G_TYPE_NONE,
947     0);
948
949   /**
950    * GSignondDbusIdentity::info-updated:
951    * @object: A #GSignondDbusIdentity.
952    * @arg_unnamed_arg0: Argument.
953    *
954    * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.infoUpdated">"infoUpdated"</link> is received.
955    *
956    * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
957    */
958   g_signal_new ("info-updated",
959     G_TYPE_FROM_INTERFACE (iface),
960     G_SIGNAL_RUN_LAST,
961     G_STRUCT_OFFSET (GSignondDbusIdentityIface, info_updated),
962     NULL,
963     NULL,
964     g_cclosure_marshal_generic,
965     G_TYPE_NONE,
966     1, G_TYPE_INT);
967
968 }
969
970 typedef GSignondDbusIdentityIface GSignondDbusIdentityInterface;
971 G_DEFINE_INTERFACE (GSignondDbusIdentity, gsignond_dbus_identity, G_TYPE_OBJECT);
972
973 /**
974  * gsignond_dbus_identity_emit_unregistered:
975  * @object: A #GSignondDbusIdentity.
976  *
977  * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.unregistered">"unregistered"</link> D-Bus signal.
978  */
979 void
980 gsignond_dbus_identity_emit_unregistered (
981     GSignondDbusIdentity *object)
982 {
983   g_signal_emit_by_name (object, "unregistered");
984 }
985
986 /**
987  * gsignond_dbus_identity_emit_info_updated:
988  * @object: A #GSignondDbusIdentity.
989  * @arg_unnamed_arg0: Argument to pass with the signal.
990  *
991  * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.infoUpdated">"infoUpdated"</link> D-Bus signal.
992  */
993 void
994 gsignond_dbus_identity_emit_info_updated (
995     GSignondDbusIdentity *object,
996     gint arg_unnamed_arg0)
997 {
998   g_signal_emit_by_name (object, "info-updated", arg_unnamed_arg0);
999 }
1000
1001 /**
1002  * gsignond_dbus_identity_call_request_credentials_update:
1003  * @proxy: A #GSignondDbusIdentityProxy.
1004  * @arg_message: Argument to pass with the method invocation.
1005  * @cancellable: (allow-none): A #GCancellable or %NULL.
1006  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1007  * @user_data: User data to pass to @callback.
1008  *
1009  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method on @proxy.
1010  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1011  * You can then call gsignond_dbus_identity_call_request_credentials_update_finish() to get the result of the operation.
1012  *
1013  * See gsignond_dbus_identity_call_request_credentials_update_sync() for the synchronous, blocking version of this method.
1014  */
1015 void
1016 gsignond_dbus_identity_call_request_credentials_update (
1017     GSignondDbusIdentity *proxy,
1018     const gchar *arg_message,
1019     GCancellable *cancellable,
1020     GAsyncReadyCallback callback,
1021     gpointer user_data)
1022 {
1023   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1024     "requestCredentialsUpdate",
1025     g_variant_new ("(s)",
1026                    arg_message),
1027     G_DBUS_CALL_FLAGS_NONE,
1028     -1,
1029     cancellable,
1030     callback,
1031     user_data);
1032 }
1033
1034 /**
1035  * gsignond_dbus_identity_call_request_credentials_update_finish:
1036  * @proxy: A #GSignondDbusIdentityProxy.
1037  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1038  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_request_credentials_update().
1039  * @error: Return location for error or %NULL.
1040  *
1041  * Finishes an operation started with gsignond_dbus_identity_call_request_credentials_update().
1042  *
1043  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1044  */
1045 gboolean
1046 gsignond_dbus_identity_call_request_credentials_update_finish (
1047     GSignondDbusIdentity *proxy,
1048     guint *out_unnamed_arg1,
1049     GAsyncResult *res,
1050     GError **error)
1051 {
1052   GVariant *_ret;
1053   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1054   if (_ret == NULL)
1055     goto _out;
1056   g_variant_get (_ret,
1057                  "(u)",
1058                  out_unnamed_arg1);
1059   g_variant_unref (_ret);
1060 _out:
1061   return _ret != NULL;
1062 }
1063
1064 /**
1065  * gsignond_dbus_identity_call_request_credentials_update_sync:
1066  * @proxy: A #GSignondDbusIdentityProxy.
1067  * @arg_message: Argument to pass with the method invocation.
1068  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1069  * @cancellable: (allow-none): A #GCancellable or %NULL.
1070  * @error: Return location for error or %NULL.
1071  *
1072  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1073  *
1074  * See gsignond_dbus_identity_call_request_credentials_update() for the asynchronous version of this method.
1075  *
1076  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1077  */
1078 gboolean
1079 gsignond_dbus_identity_call_request_credentials_update_sync (
1080     GSignondDbusIdentity *proxy,
1081     const gchar *arg_message,
1082     guint *out_unnamed_arg1,
1083     GCancellable *cancellable,
1084     GError **error)
1085 {
1086   GVariant *_ret;
1087   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1088     "requestCredentialsUpdate",
1089     g_variant_new ("(s)",
1090                    arg_message),
1091     G_DBUS_CALL_FLAGS_NONE,
1092     -1,
1093     cancellable,
1094     error);
1095   if (_ret == NULL)
1096     goto _out;
1097   g_variant_get (_ret,
1098                  "(u)",
1099                  out_unnamed_arg1);
1100   g_variant_unref (_ret);
1101 _out:
1102   return _ret != NULL;
1103 }
1104
1105 /**
1106  * gsignond_dbus_identity_call_get_info:
1107  * @proxy: A #GSignondDbusIdentityProxy.
1108  * @cancellable: (allow-none): A #GCancellable or %NULL.
1109  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1110  * @user_data: User data to pass to @callback.
1111  *
1112  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method on @proxy.
1113  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1114  * You can then call gsignond_dbus_identity_call_get_info_finish() to get the result of the operation.
1115  *
1116  * See gsignond_dbus_identity_call_get_info_sync() for the synchronous, blocking version of this method.
1117  */
1118 void
1119 gsignond_dbus_identity_call_get_info (
1120     GSignondDbusIdentity *proxy,
1121     GCancellable *cancellable,
1122     GAsyncReadyCallback callback,
1123     gpointer user_data)
1124 {
1125   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1126     "getInfo",
1127     g_variant_new ("()"),
1128     G_DBUS_CALL_FLAGS_NONE,
1129     -1,
1130     cancellable,
1131     callback,
1132     user_data);
1133 }
1134
1135 /**
1136  * gsignond_dbus_identity_call_get_info_finish:
1137  * @proxy: A #GSignondDbusIdentityProxy.
1138  * @out_identityInfo: (out): Return location for return parameter or %NULL to ignore.
1139  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_get_info().
1140  * @error: Return location for error or %NULL.
1141  *
1142  * Finishes an operation started with gsignond_dbus_identity_call_get_info().
1143  *
1144  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1145  */
1146 gboolean
1147 gsignond_dbus_identity_call_get_info_finish (
1148     GSignondDbusIdentity *proxy,
1149     GVariant **out_identityInfo,
1150     GAsyncResult *res,
1151     GError **error)
1152 {
1153   GVariant *_ret;
1154   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1155   if (_ret == NULL)
1156     goto _out;
1157   g_variant_get (_ret,
1158                  "(@a{sv})",
1159                  out_identityInfo);
1160   g_variant_unref (_ret);
1161 _out:
1162   return _ret != NULL;
1163 }
1164
1165 /**
1166  * gsignond_dbus_identity_call_get_info_sync:
1167  * @proxy: A #GSignondDbusIdentityProxy.
1168  * @out_identityInfo: (out): Return location for return parameter or %NULL to ignore.
1169  * @cancellable: (allow-none): A #GCancellable or %NULL.
1170  * @error: Return location for error or %NULL.
1171  *
1172  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1173  *
1174  * See gsignond_dbus_identity_call_get_info() for the asynchronous version of this method.
1175  *
1176  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1177  */
1178 gboolean
1179 gsignond_dbus_identity_call_get_info_sync (
1180     GSignondDbusIdentity *proxy,
1181     GVariant **out_identityInfo,
1182     GCancellable *cancellable,
1183     GError **error)
1184 {
1185   GVariant *_ret;
1186   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1187     "getInfo",
1188     g_variant_new ("()"),
1189     G_DBUS_CALL_FLAGS_NONE,
1190     -1,
1191     cancellable,
1192     error);
1193   if (_ret == NULL)
1194     goto _out;
1195   g_variant_get (_ret,
1196                  "(@a{sv})",
1197                  out_identityInfo);
1198   g_variant_unref (_ret);
1199 _out:
1200   return _ret != NULL;
1201 }
1202
1203 /**
1204  * gsignond_dbus_identity_call_get_auth_session:
1205  * @proxy: A #GSignondDbusIdentityProxy.
1206  * @arg_method: Argument to pass with the method invocation.
1207  * @cancellable: (allow-none): A #GCancellable or %NULL.
1208  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1209  * @user_data: User data to pass to @callback.
1210  *
1211  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method on @proxy.
1212  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1213  * You can then call gsignond_dbus_identity_call_get_auth_session_finish() to get the result of the operation.
1214  *
1215  * See gsignond_dbus_identity_call_get_auth_session_sync() for the synchronous, blocking version of this method.
1216  */
1217 void
1218 gsignond_dbus_identity_call_get_auth_session (
1219     GSignondDbusIdentity *proxy,
1220     const gchar *arg_method,
1221     GCancellable *cancellable,
1222     GAsyncReadyCallback callback,
1223     gpointer user_data)
1224 {
1225   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1226     "getAuthSession",
1227     g_variant_new ("(s)",
1228                    arg_method),
1229     G_DBUS_CALL_FLAGS_NONE,
1230     -1,
1231     cancellable,
1232     callback,
1233     user_data);
1234 }
1235
1236 /**
1237  * gsignond_dbus_identity_call_get_auth_session_finish:
1238  * @proxy: A #GSignondDbusIdentityProxy.
1239  * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
1240  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_get_auth_session().
1241  * @error: Return location for error or %NULL.
1242  *
1243  * Finishes an operation started with gsignond_dbus_identity_call_get_auth_session().
1244  *
1245  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1246  */
1247 gboolean
1248 gsignond_dbus_identity_call_get_auth_session_finish (
1249     GSignondDbusIdentity *proxy,
1250     gchar **out_objectPath,
1251     GAsyncResult *res,
1252     GError **error)
1253 {
1254   GVariant *_ret;
1255   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1256   if (_ret == NULL)
1257     goto _out;
1258   g_variant_get (_ret,
1259                  "(o)",
1260                  out_objectPath);
1261   g_variant_unref (_ret);
1262 _out:
1263   return _ret != NULL;
1264 }
1265
1266 /**
1267  * gsignond_dbus_identity_call_get_auth_session_sync:
1268  * @proxy: A #GSignondDbusIdentityProxy.
1269  * @arg_method: Argument to pass with the method invocation.
1270  * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
1271  * @cancellable: (allow-none): A #GCancellable or %NULL.
1272  * @error: Return location for error or %NULL.
1273  *
1274  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1275  *
1276  * See gsignond_dbus_identity_call_get_auth_session() for the asynchronous version of this method.
1277  *
1278  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1279  */
1280 gboolean
1281 gsignond_dbus_identity_call_get_auth_session_sync (
1282     GSignondDbusIdentity *proxy,
1283     const gchar *arg_method,
1284     gchar **out_objectPath,
1285     GCancellable *cancellable,
1286     GError **error)
1287 {
1288   GVariant *_ret;
1289   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1290     "getAuthSession",
1291     g_variant_new ("(s)",
1292                    arg_method),
1293     G_DBUS_CALL_FLAGS_NONE,
1294     -1,
1295     cancellable,
1296     error);
1297   if (_ret == NULL)
1298     goto _out;
1299   g_variant_get (_ret,
1300                  "(o)",
1301                  out_objectPath);
1302   g_variant_unref (_ret);
1303 _out:
1304   return _ret != NULL;
1305 }
1306
1307 /**
1308  * gsignond_dbus_identity_call_verify_user:
1309  * @proxy: A #GSignondDbusIdentityProxy.
1310  * @arg_params: Argument to pass with the method invocation.
1311  * @cancellable: (allow-none): A #GCancellable or %NULL.
1312  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1313  * @user_data: User data to pass to @callback.
1314  *
1315  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method on @proxy.
1316  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1317  * You can then call gsignond_dbus_identity_call_verify_user_finish() to get the result of the operation.
1318  *
1319  * See gsignond_dbus_identity_call_verify_user_sync() for the synchronous, blocking version of this method.
1320  */
1321 void
1322 gsignond_dbus_identity_call_verify_user (
1323     GSignondDbusIdentity *proxy,
1324     GVariant *arg_params,
1325     GCancellable *cancellable,
1326     GAsyncReadyCallback callback,
1327     gpointer user_data)
1328 {
1329   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1330     "verifyUser",
1331     g_variant_new ("(@a{sv})",
1332                    arg_params),
1333     G_DBUS_CALL_FLAGS_NONE,
1334     -1,
1335     cancellable,
1336     callback,
1337     user_data);
1338 }
1339
1340 /**
1341  * gsignond_dbus_identity_call_verify_user_finish:
1342  * @proxy: A #GSignondDbusIdentityProxy.
1343  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1344  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_verify_user().
1345  * @error: Return location for error or %NULL.
1346  *
1347  * Finishes an operation started with gsignond_dbus_identity_call_verify_user().
1348  *
1349  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1350  */
1351 gboolean
1352 gsignond_dbus_identity_call_verify_user_finish (
1353     GSignondDbusIdentity *proxy,
1354     gboolean *out_unnamed_arg1,
1355     GAsyncResult *res,
1356     GError **error)
1357 {
1358   GVariant *_ret;
1359   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1360   if (_ret == NULL)
1361     goto _out;
1362   g_variant_get (_ret,
1363                  "(b)",
1364                  out_unnamed_arg1);
1365   g_variant_unref (_ret);
1366 _out:
1367   return _ret != NULL;
1368 }
1369
1370 /**
1371  * gsignond_dbus_identity_call_verify_user_sync:
1372  * @proxy: A #GSignondDbusIdentityProxy.
1373  * @arg_params: Argument to pass with the method invocation.
1374  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1375  * @cancellable: (allow-none): A #GCancellable or %NULL.
1376  * @error: Return location for error or %NULL.
1377  *
1378  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1379  *
1380  * See gsignond_dbus_identity_call_verify_user() for the asynchronous version of this method.
1381  *
1382  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1383  */
1384 gboolean
1385 gsignond_dbus_identity_call_verify_user_sync (
1386     GSignondDbusIdentity *proxy,
1387     GVariant *arg_params,
1388     gboolean *out_unnamed_arg1,
1389     GCancellable *cancellable,
1390     GError **error)
1391 {
1392   GVariant *_ret;
1393   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1394     "verifyUser",
1395     g_variant_new ("(@a{sv})",
1396                    arg_params),
1397     G_DBUS_CALL_FLAGS_NONE,
1398     -1,
1399     cancellable,
1400     error);
1401   if (_ret == NULL)
1402     goto _out;
1403   g_variant_get (_ret,
1404                  "(b)",
1405                  out_unnamed_arg1);
1406   g_variant_unref (_ret);
1407 _out:
1408   return _ret != NULL;
1409 }
1410
1411 /**
1412  * gsignond_dbus_identity_call_verify_secret:
1413  * @proxy: A #GSignondDbusIdentityProxy.
1414  * @arg_secret: Argument to pass with the method invocation.
1415  * @cancellable: (allow-none): A #GCancellable or %NULL.
1416  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1417  * @user_data: User data to pass to @callback.
1418  *
1419  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method on @proxy.
1420  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1421  * You can then call gsignond_dbus_identity_call_verify_secret_finish() to get the result of the operation.
1422  *
1423  * See gsignond_dbus_identity_call_verify_secret_sync() for the synchronous, blocking version of this method.
1424  */
1425 void
1426 gsignond_dbus_identity_call_verify_secret (
1427     GSignondDbusIdentity *proxy,
1428     const gchar *arg_secret,
1429     GCancellable *cancellable,
1430     GAsyncReadyCallback callback,
1431     gpointer user_data)
1432 {
1433   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1434     "verifySecret",
1435     g_variant_new ("(s)",
1436                    arg_secret),
1437     G_DBUS_CALL_FLAGS_NONE,
1438     -1,
1439     cancellable,
1440     callback,
1441     user_data);
1442 }
1443
1444 /**
1445  * gsignond_dbus_identity_call_verify_secret_finish:
1446  * @proxy: A #GSignondDbusIdentityProxy.
1447  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1448  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_verify_secret().
1449  * @error: Return location for error or %NULL.
1450  *
1451  * Finishes an operation started with gsignond_dbus_identity_call_verify_secret().
1452  *
1453  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1454  */
1455 gboolean
1456 gsignond_dbus_identity_call_verify_secret_finish (
1457     GSignondDbusIdentity *proxy,
1458     gboolean *out_unnamed_arg1,
1459     GAsyncResult *res,
1460     GError **error)
1461 {
1462   GVariant *_ret;
1463   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1464   if (_ret == NULL)
1465     goto _out;
1466   g_variant_get (_ret,
1467                  "(b)",
1468                  out_unnamed_arg1);
1469   g_variant_unref (_ret);
1470 _out:
1471   return _ret != NULL;
1472 }
1473
1474 /**
1475  * gsignond_dbus_identity_call_verify_secret_sync:
1476  * @proxy: A #GSignondDbusIdentityProxy.
1477  * @arg_secret: Argument to pass with the method invocation.
1478  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1479  * @cancellable: (allow-none): A #GCancellable or %NULL.
1480  * @error: Return location for error or %NULL.
1481  *
1482  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1483  *
1484  * See gsignond_dbus_identity_call_verify_secret() for the asynchronous version of this method.
1485  *
1486  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1487  */
1488 gboolean
1489 gsignond_dbus_identity_call_verify_secret_sync (
1490     GSignondDbusIdentity *proxy,
1491     const gchar *arg_secret,
1492     gboolean *out_unnamed_arg1,
1493     GCancellable *cancellable,
1494     GError **error)
1495 {
1496   GVariant *_ret;
1497   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1498     "verifySecret",
1499     g_variant_new ("(s)",
1500                    arg_secret),
1501     G_DBUS_CALL_FLAGS_NONE,
1502     -1,
1503     cancellable,
1504     error);
1505   if (_ret == NULL)
1506     goto _out;
1507   g_variant_get (_ret,
1508                  "(b)",
1509                  out_unnamed_arg1);
1510   g_variant_unref (_ret);
1511 _out:
1512   return _ret != NULL;
1513 }
1514
1515 /**
1516  * gsignond_dbus_identity_call_remove:
1517  * @proxy: A #GSignondDbusIdentityProxy.
1518  * @cancellable: (allow-none): A #GCancellable or %NULL.
1519  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1520  * @user_data: User data to pass to @callback.
1521  *
1522  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method on @proxy.
1523  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1524  * You can then call gsignond_dbus_identity_call_remove_finish() to get the result of the operation.
1525  *
1526  * See gsignond_dbus_identity_call_remove_sync() for the synchronous, blocking version of this method.
1527  */
1528 void
1529 gsignond_dbus_identity_call_remove (
1530     GSignondDbusIdentity *proxy,
1531     GCancellable *cancellable,
1532     GAsyncReadyCallback callback,
1533     gpointer user_data)
1534 {
1535   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1536     "remove",
1537     g_variant_new ("()"),
1538     G_DBUS_CALL_FLAGS_NONE,
1539     -1,
1540     cancellable,
1541     callback,
1542     user_data);
1543 }
1544
1545 /**
1546  * gsignond_dbus_identity_call_remove_finish:
1547  * @proxy: A #GSignondDbusIdentityProxy.
1548  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_remove().
1549  * @error: Return location for error or %NULL.
1550  *
1551  * Finishes an operation started with gsignond_dbus_identity_call_remove().
1552  *
1553  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1554  */
1555 gboolean
1556 gsignond_dbus_identity_call_remove_finish (
1557     GSignondDbusIdentity *proxy,
1558     GAsyncResult *res,
1559     GError **error)
1560 {
1561   GVariant *_ret;
1562   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1563   if (_ret == NULL)
1564     goto _out;
1565   g_variant_get (_ret,
1566                  "()");
1567   g_variant_unref (_ret);
1568 _out:
1569   return _ret != NULL;
1570 }
1571
1572 /**
1573  * gsignond_dbus_identity_call_remove_sync:
1574  * @proxy: A #GSignondDbusIdentityProxy.
1575  * @cancellable: (allow-none): A #GCancellable or %NULL.
1576  * @error: Return location for error or %NULL.
1577  *
1578  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1579  *
1580  * See gsignond_dbus_identity_call_remove() for the asynchronous version of this method.
1581  *
1582  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1583  */
1584 gboolean
1585 gsignond_dbus_identity_call_remove_sync (
1586     GSignondDbusIdentity *proxy,
1587     GCancellable *cancellable,
1588     GError **error)
1589 {
1590   GVariant *_ret;
1591   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1592     "remove",
1593     g_variant_new ("()"),
1594     G_DBUS_CALL_FLAGS_NONE,
1595     -1,
1596     cancellable,
1597     error);
1598   if (_ret == NULL)
1599     goto _out;
1600   g_variant_get (_ret,
1601                  "()");
1602   g_variant_unref (_ret);
1603 _out:
1604   return _ret != NULL;
1605 }
1606
1607 /**
1608  * gsignond_dbus_identity_call_sign_out:
1609  * @proxy: A #GSignondDbusIdentityProxy.
1610  * @cancellable: (allow-none): A #GCancellable or %NULL.
1611  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1612  * @user_data: User data to pass to @callback.
1613  *
1614  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method on @proxy.
1615  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1616  * You can then call gsignond_dbus_identity_call_sign_out_finish() to get the result of the operation.
1617  *
1618  * See gsignond_dbus_identity_call_sign_out_sync() for the synchronous, blocking version of this method.
1619  */
1620 void
1621 gsignond_dbus_identity_call_sign_out (
1622     GSignondDbusIdentity *proxy,
1623     GCancellable *cancellable,
1624     GAsyncReadyCallback callback,
1625     gpointer user_data)
1626 {
1627   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1628     "signOut",
1629     g_variant_new ("()"),
1630     G_DBUS_CALL_FLAGS_NONE,
1631     -1,
1632     cancellable,
1633     callback,
1634     user_data);
1635 }
1636
1637 /**
1638  * gsignond_dbus_identity_call_sign_out_finish:
1639  * @proxy: A #GSignondDbusIdentityProxy.
1640  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1641  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_sign_out().
1642  * @error: Return location for error or %NULL.
1643  *
1644  * Finishes an operation started with gsignond_dbus_identity_call_sign_out().
1645  *
1646  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1647  */
1648 gboolean
1649 gsignond_dbus_identity_call_sign_out_finish (
1650     GSignondDbusIdentity *proxy,
1651     gboolean *out_unnamed_arg0,
1652     GAsyncResult *res,
1653     GError **error)
1654 {
1655   GVariant *_ret;
1656   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1657   if (_ret == NULL)
1658     goto _out;
1659   g_variant_get (_ret,
1660                  "(b)",
1661                  out_unnamed_arg0);
1662   g_variant_unref (_ret);
1663 _out:
1664   return _ret != NULL;
1665 }
1666
1667 /**
1668  * gsignond_dbus_identity_call_sign_out_sync:
1669  * @proxy: A #GSignondDbusIdentityProxy.
1670  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1671  * @cancellable: (allow-none): A #GCancellable or %NULL.
1672  * @error: Return location for error or %NULL.
1673  *
1674  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1675  *
1676  * See gsignond_dbus_identity_call_sign_out() for the asynchronous version of this method.
1677  *
1678  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1679  */
1680 gboolean
1681 gsignond_dbus_identity_call_sign_out_sync (
1682     GSignondDbusIdentity *proxy,
1683     gboolean *out_unnamed_arg0,
1684     GCancellable *cancellable,
1685     GError **error)
1686 {
1687   GVariant *_ret;
1688   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1689     "signOut",
1690     g_variant_new ("()"),
1691     G_DBUS_CALL_FLAGS_NONE,
1692     -1,
1693     cancellable,
1694     error);
1695   if (_ret == NULL)
1696     goto _out;
1697   g_variant_get (_ret,
1698                  "(b)",
1699                  out_unnamed_arg0);
1700   g_variant_unref (_ret);
1701 _out:
1702   return _ret != NULL;
1703 }
1704
1705 /**
1706  * gsignond_dbus_identity_call_store:
1707  * @proxy: A #GSignondDbusIdentityProxy.
1708  * @arg_unnamed_arg0: Argument to pass with the method invocation.
1709  * @cancellable: (allow-none): A #GCancellable or %NULL.
1710  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1711  * @user_data: User data to pass to @callback.
1712  *
1713  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method on @proxy.
1714  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1715  * You can then call gsignond_dbus_identity_call_store_finish() to get the result of the operation.
1716  *
1717  * See gsignond_dbus_identity_call_store_sync() for the synchronous, blocking version of this method.
1718  */
1719 void
1720 gsignond_dbus_identity_call_store (
1721     GSignondDbusIdentity *proxy,
1722     GVariant *arg_unnamed_arg0,
1723     GCancellable *cancellable,
1724     GAsyncReadyCallback callback,
1725     gpointer user_data)
1726 {
1727   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1728     "store",
1729     g_variant_new ("(@a{sv})",
1730                    arg_unnamed_arg0),
1731     G_DBUS_CALL_FLAGS_NONE,
1732     -1,
1733     cancellable,
1734     callback,
1735     user_data);
1736 }
1737
1738 /**
1739  * gsignond_dbus_identity_call_store_finish:
1740  * @proxy: A #GSignondDbusIdentityProxy.
1741  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1742  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_store().
1743  * @error: Return location for error or %NULL.
1744  *
1745  * Finishes an operation started with gsignond_dbus_identity_call_store().
1746  *
1747  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1748  */
1749 gboolean
1750 gsignond_dbus_identity_call_store_finish (
1751     GSignondDbusIdentity *proxy,
1752     guint *out_unnamed_arg1,
1753     GAsyncResult *res,
1754     GError **error)
1755 {
1756   GVariant *_ret;
1757   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1758   if (_ret == NULL)
1759     goto _out;
1760   g_variant_get (_ret,
1761                  "(u)",
1762                  out_unnamed_arg1);
1763   g_variant_unref (_ret);
1764 _out:
1765   return _ret != NULL;
1766 }
1767
1768 /**
1769  * gsignond_dbus_identity_call_store_sync:
1770  * @proxy: A #GSignondDbusIdentityProxy.
1771  * @arg_unnamed_arg0: Argument to pass with the method invocation.
1772  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1773  * @cancellable: (allow-none): A #GCancellable or %NULL.
1774  * @error: Return location for error or %NULL.
1775  *
1776  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1777  *
1778  * See gsignond_dbus_identity_call_store() for the asynchronous version of this method.
1779  *
1780  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1781  */
1782 gboolean
1783 gsignond_dbus_identity_call_store_sync (
1784     GSignondDbusIdentity *proxy,
1785     GVariant *arg_unnamed_arg0,
1786     guint *out_unnamed_arg1,
1787     GCancellable *cancellable,
1788     GError **error)
1789 {
1790   GVariant *_ret;
1791   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1792     "store",
1793     g_variant_new ("(@a{sv})",
1794                    arg_unnamed_arg0),
1795     G_DBUS_CALL_FLAGS_NONE,
1796     -1,
1797     cancellable,
1798     error);
1799   if (_ret == NULL)
1800     goto _out;
1801   g_variant_get (_ret,
1802                  "(u)",
1803                  out_unnamed_arg1);
1804   g_variant_unref (_ret);
1805 _out:
1806   return _ret != NULL;
1807 }
1808
1809 /**
1810  * gsignond_dbus_identity_call_add_reference:
1811  * @proxy: A #GSignondDbusIdentityProxy.
1812  * @arg_reference: Argument to pass with the method invocation.
1813  * @cancellable: (allow-none): A #GCancellable or %NULL.
1814  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1815  * @user_data: User data to pass to @callback.
1816  *
1817  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method on @proxy.
1818  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1819  * You can then call gsignond_dbus_identity_call_add_reference_finish() to get the result of the operation.
1820  *
1821  * See gsignond_dbus_identity_call_add_reference_sync() for the synchronous, blocking version of this method.
1822  */
1823 void
1824 gsignond_dbus_identity_call_add_reference (
1825     GSignondDbusIdentity *proxy,
1826     const gchar *arg_reference,
1827     GCancellable *cancellable,
1828     GAsyncReadyCallback callback,
1829     gpointer user_data)
1830 {
1831   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1832     "addReference",
1833     g_variant_new ("(s)",
1834                    arg_reference),
1835     G_DBUS_CALL_FLAGS_NONE,
1836     -1,
1837     cancellable,
1838     callback,
1839     user_data);
1840 }
1841
1842 /**
1843  * gsignond_dbus_identity_call_add_reference_finish:
1844  * @proxy: A #GSignondDbusIdentityProxy.
1845  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1846  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_add_reference().
1847  * @error: Return location for error or %NULL.
1848  *
1849  * Finishes an operation started with gsignond_dbus_identity_call_add_reference().
1850  *
1851  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1852  */
1853 gboolean
1854 gsignond_dbus_identity_call_add_reference_finish (
1855     GSignondDbusIdentity *proxy,
1856     gint *out_unnamed_arg1,
1857     GAsyncResult *res,
1858     GError **error)
1859 {
1860   GVariant *_ret;
1861   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1862   if (_ret == NULL)
1863     goto _out;
1864   g_variant_get (_ret,
1865                  "(i)",
1866                  out_unnamed_arg1);
1867   g_variant_unref (_ret);
1868 _out:
1869   return _ret != NULL;
1870 }
1871
1872 /**
1873  * gsignond_dbus_identity_call_add_reference_sync:
1874  * @proxy: A #GSignondDbusIdentityProxy.
1875  * @arg_reference: Argument to pass with the method invocation.
1876  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1877  * @cancellable: (allow-none): A #GCancellable or %NULL.
1878  * @error: Return location for error or %NULL.
1879  *
1880  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1881  *
1882  * See gsignond_dbus_identity_call_add_reference() for the asynchronous version of this method.
1883  *
1884  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1885  */
1886 gboolean
1887 gsignond_dbus_identity_call_add_reference_sync (
1888     GSignondDbusIdentity *proxy,
1889     const gchar *arg_reference,
1890     gint *out_unnamed_arg1,
1891     GCancellable *cancellable,
1892     GError **error)
1893 {
1894   GVariant *_ret;
1895   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1896     "addReference",
1897     g_variant_new ("(s)",
1898                    arg_reference),
1899     G_DBUS_CALL_FLAGS_NONE,
1900     -1,
1901     cancellable,
1902     error);
1903   if (_ret == NULL)
1904     goto _out;
1905   g_variant_get (_ret,
1906                  "(i)",
1907                  out_unnamed_arg1);
1908   g_variant_unref (_ret);
1909 _out:
1910   return _ret != NULL;
1911 }
1912
1913 /**
1914  * gsignond_dbus_identity_call_remove_reference:
1915  * @proxy: A #GSignondDbusIdentityProxy.
1916  * @arg_reference: Argument to pass with the method invocation.
1917  * @cancellable: (allow-none): A #GCancellable or %NULL.
1918  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1919  * @user_data: User data to pass to @callback.
1920  *
1921  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method on @proxy.
1922  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1923  * You can then call gsignond_dbus_identity_call_remove_reference_finish() to get the result of the operation.
1924  *
1925  * See gsignond_dbus_identity_call_remove_reference_sync() for the synchronous, blocking version of this method.
1926  */
1927 void
1928 gsignond_dbus_identity_call_remove_reference (
1929     GSignondDbusIdentity *proxy,
1930     const gchar *arg_reference,
1931     GCancellable *cancellable,
1932     GAsyncReadyCallback callback,
1933     gpointer user_data)
1934 {
1935   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1936     "removeReference",
1937     g_variant_new ("(s)",
1938                    arg_reference),
1939     G_DBUS_CALL_FLAGS_NONE,
1940     -1,
1941     cancellable,
1942     callback,
1943     user_data);
1944 }
1945
1946 /**
1947  * gsignond_dbus_identity_call_remove_reference_finish:
1948  * @proxy: A #GSignondDbusIdentityProxy.
1949  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1950  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_remove_reference().
1951  * @error: Return location for error or %NULL.
1952  *
1953  * Finishes an operation started with gsignond_dbus_identity_call_remove_reference().
1954  *
1955  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1956  */
1957 gboolean
1958 gsignond_dbus_identity_call_remove_reference_finish (
1959     GSignondDbusIdentity *proxy,
1960     gint *out_unnamed_arg1,
1961     GAsyncResult *res,
1962     GError **error)
1963 {
1964   GVariant *_ret;
1965   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1966   if (_ret == NULL)
1967     goto _out;
1968   g_variant_get (_ret,
1969                  "(i)",
1970                  out_unnamed_arg1);
1971   g_variant_unref (_ret);
1972 _out:
1973   return _ret != NULL;
1974 }
1975
1976 /**
1977  * gsignond_dbus_identity_call_remove_reference_sync:
1978  * @proxy: A #GSignondDbusIdentityProxy.
1979  * @arg_reference: Argument to pass with the method invocation.
1980  * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1981  * @cancellable: (allow-none): A #GCancellable or %NULL.
1982  * @error: Return location for error or %NULL.
1983  *
1984  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1985  *
1986  * See gsignond_dbus_identity_call_remove_reference() for the asynchronous version of this method.
1987  *
1988  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1989  */
1990 gboolean
1991 gsignond_dbus_identity_call_remove_reference_sync (
1992     GSignondDbusIdentity *proxy,
1993     const gchar *arg_reference,
1994     gint *out_unnamed_arg1,
1995     GCancellable *cancellable,
1996     GError **error)
1997 {
1998   GVariant *_ret;
1999   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2000     "removeReference",
2001     g_variant_new ("(s)",
2002                    arg_reference),
2003     G_DBUS_CALL_FLAGS_NONE,
2004     -1,
2005     cancellable,
2006     error);
2007   if (_ret == NULL)
2008     goto _out;
2009   g_variant_get (_ret,
2010                  "(i)",
2011                  out_unnamed_arg1);
2012   g_variant_unref (_ret);
2013 _out:
2014   return _ret != NULL;
2015 }
2016
2017 /**
2018  * gsignond_dbus_identity_complete_request_credentials_update:
2019  * @object: A #GSignondDbusIdentity.
2020  * @invocation: (transfer full): A #GDBusMethodInvocation.
2021  * @unnamed_arg1: Parameter to return.
2022  *
2023  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2024  *
2025  * This method will free @invocation, you cannot use it afterwards.
2026  */
2027 void
2028 gsignond_dbus_identity_complete_request_credentials_update (
2029     GSignondDbusIdentity *object,
2030     GDBusMethodInvocation *invocation,
2031     guint unnamed_arg1)
2032 {
2033   g_dbus_method_invocation_return_value (invocation,
2034     g_variant_new ("(u)",
2035                    unnamed_arg1));
2036 }
2037
2038 /**
2039  * gsignond_dbus_identity_complete_get_info:
2040  * @object: A #GSignondDbusIdentity.
2041  * @invocation: (transfer full): A #GDBusMethodInvocation.
2042  * @identityInfo: Parameter to return.
2043  *
2044  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2045  *
2046  * This method will free @invocation, you cannot use it afterwards.
2047  */
2048 void
2049 gsignond_dbus_identity_complete_get_info (
2050     GSignondDbusIdentity *object,
2051     GDBusMethodInvocation *invocation,
2052     GVariant *identityInfo)
2053 {
2054   g_dbus_method_invocation_return_value (invocation,
2055     g_variant_new ("(@a{sv})",
2056                    identityInfo));
2057 }
2058
2059 /**
2060  * gsignond_dbus_identity_complete_get_auth_session:
2061  * @object: A #GSignondDbusIdentity.
2062  * @invocation: (transfer full): A #GDBusMethodInvocation.
2063  * @objectPath: Parameter to return.
2064  *
2065  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2066  *
2067  * This method will free @invocation, you cannot use it afterwards.
2068  */
2069 void
2070 gsignond_dbus_identity_complete_get_auth_session (
2071     GSignondDbusIdentity *object,
2072     GDBusMethodInvocation *invocation,
2073     const gchar *objectPath)
2074 {
2075   g_dbus_method_invocation_return_value (invocation,
2076     g_variant_new ("(o)",
2077                    objectPath));
2078 }
2079
2080 /**
2081  * gsignond_dbus_identity_complete_verify_user:
2082  * @object: A #GSignondDbusIdentity.
2083  * @invocation: (transfer full): A #GDBusMethodInvocation.
2084  * @unnamed_arg1: Parameter to return.
2085  *
2086  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2087  *
2088  * This method will free @invocation, you cannot use it afterwards.
2089  */
2090 void
2091 gsignond_dbus_identity_complete_verify_user (
2092     GSignondDbusIdentity *object,
2093     GDBusMethodInvocation *invocation,
2094     gboolean unnamed_arg1)
2095 {
2096   g_dbus_method_invocation_return_value (invocation,
2097     g_variant_new ("(b)",
2098                    unnamed_arg1));
2099 }
2100
2101 /**
2102  * gsignond_dbus_identity_complete_verify_secret:
2103  * @object: A #GSignondDbusIdentity.
2104  * @invocation: (transfer full): A #GDBusMethodInvocation.
2105  * @unnamed_arg1: Parameter to return.
2106  *
2107  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2108  *
2109  * This method will free @invocation, you cannot use it afterwards.
2110  */
2111 void
2112 gsignond_dbus_identity_complete_verify_secret (
2113     GSignondDbusIdentity *object,
2114     GDBusMethodInvocation *invocation,
2115     gboolean unnamed_arg1)
2116 {
2117   g_dbus_method_invocation_return_value (invocation,
2118     g_variant_new ("(b)",
2119                    unnamed_arg1));
2120 }
2121
2122 /**
2123  * gsignond_dbus_identity_complete_remove:
2124  * @object: A #GSignondDbusIdentity.
2125  * @invocation: (transfer full): A #GDBusMethodInvocation.
2126  *
2127  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2128  *
2129  * This method will free @invocation, you cannot use it afterwards.
2130  */
2131 void
2132 gsignond_dbus_identity_complete_remove (
2133     GSignondDbusIdentity *object,
2134     GDBusMethodInvocation *invocation)
2135 {
2136   g_dbus_method_invocation_return_value (invocation,
2137     g_variant_new ("()"));
2138 }
2139
2140 /**
2141  * gsignond_dbus_identity_complete_sign_out:
2142  * @object: A #GSignondDbusIdentity.
2143  * @invocation: (transfer full): A #GDBusMethodInvocation.
2144  * @unnamed_arg0: Parameter to return.
2145  *
2146  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2147  *
2148  * This method will free @invocation, you cannot use it afterwards.
2149  */
2150 void
2151 gsignond_dbus_identity_complete_sign_out (
2152     GSignondDbusIdentity *object,
2153     GDBusMethodInvocation *invocation,
2154     gboolean unnamed_arg0)
2155 {
2156   g_dbus_method_invocation_return_value (invocation,
2157     g_variant_new ("(b)",
2158                    unnamed_arg0));
2159 }
2160
2161 /**
2162  * gsignond_dbus_identity_complete_store:
2163  * @object: A #GSignondDbusIdentity.
2164  * @invocation: (transfer full): A #GDBusMethodInvocation.
2165  * @unnamed_arg1: Parameter to return.
2166  *
2167  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2168  *
2169  * This method will free @invocation, you cannot use it afterwards.
2170  */
2171 void
2172 gsignond_dbus_identity_complete_store (
2173     GSignondDbusIdentity *object,
2174     GDBusMethodInvocation *invocation,
2175     guint unnamed_arg1)
2176 {
2177   g_dbus_method_invocation_return_value (invocation,
2178     g_variant_new ("(u)",
2179                    unnamed_arg1));
2180 }
2181
2182 /**
2183  * gsignond_dbus_identity_complete_add_reference:
2184  * @object: A #GSignondDbusIdentity.
2185  * @invocation: (transfer full): A #GDBusMethodInvocation.
2186  * @unnamed_arg1: Parameter to return.
2187  *
2188  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2189  *
2190  * This method will free @invocation, you cannot use it afterwards.
2191  */
2192 void
2193 gsignond_dbus_identity_complete_add_reference (
2194     GSignondDbusIdentity *object,
2195     GDBusMethodInvocation *invocation,
2196     gint unnamed_arg1)
2197 {
2198   g_dbus_method_invocation_return_value (invocation,
2199     g_variant_new ("(i)",
2200                    unnamed_arg1));
2201 }
2202
2203 /**
2204  * gsignond_dbus_identity_complete_remove_reference:
2205  * @object: A #GSignondDbusIdentity.
2206  * @invocation: (transfer full): A #GDBusMethodInvocation.
2207  * @unnamed_arg1: Parameter to return.
2208  *
2209  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2210  *
2211  * This method will free @invocation, you cannot use it afterwards.
2212  */
2213 void
2214 gsignond_dbus_identity_complete_remove_reference (
2215     GSignondDbusIdentity *object,
2216     GDBusMethodInvocation *invocation,
2217     gint unnamed_arg1)
2218 {
2219   g_dbus_method_invocation_return_value (invocation,
2220     g_variant_new ("(i)",
2221                    unnamed_arg1));
2222 }
2223
2224 /* ------------------------------------------------------------------------ */
2225
2226 /**
2227  * GSignondDbusIdentityProxy:
2228  *
2229  * The #GSignondDbusIdentityProxy structure contains only private data and should only be accessed using the provided API.
2230  */
2231
2232 /**
2233  * GSignondDbusIdentityProxyClass:
2234  * @parent_class: The parent class.
2235  *
2236  * Class structure for #GSignondDbusIdentityProxy.
2237  */
2238
2239 struct _GSignondDbusIdentityProxyPrivate
2240 {
2241   GData *qdata;
2242 };
2243
2244 static void gsignond_dbus_identity_proxy_iface_init (GSignondDbusIdentityIface *iface);
2245
2246 G_DEFINE_TYPE_WITH_CODE (GSignondDbusIdentityProxy, gsignond_dbus_identity_proxy, G_TYPE_DBUS_PROXY,
2247                          G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_IDENTITY, gsignond_dbus_identity_proxy_iface_init));
2248
2249 static void
2250 gsignond_dbus_identity_proxy_finalize (GObject *object)
2251 {
2252   GSignondDbusIdentityProxy *proxy = GSIGNOND_DBUS_IDENTITY_PROXY (object);
2253   g_datalist_clear (&proxy->priv->qdata);
2254   G_OBJECT_CLASS (gsignond_dbus_identity_proxy_parent_class)->finalize (object);
2255 }
2256
2257 static void
2258 gsignond_dbus_identity_proxy_get_property (GObject      *object,
2259   guint         prop_id,
2260   GValue       *value,
2261   GParamSpec   *pspec)
2262 {
2263 }
2264
2265 static void
2266 gsignond_dbus_identity_proxy_set_property (GObject      *object,
2267   guint         prop_id,
2268   const GValue *value,
2269   GParamSpec   *pspec)
2270 {
2271 }
2272
2273 static void
2274 gsignond_dbus_identity_proxy_g_signal (GDBusProxy *proxy,
2275   const gchar *sender_name,
2276   const gchar *signal_name,
2277   GVariant *parameters)
2278 {
2279   _ExtendedGDBusSignalInfo *info;
2280   GVariantIter iter;
2281   GVariant *child;
2282   GValue *paramv;
2283   guint num_params;
2284   guint n;
2285   guint signal_id;
2286   info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info, signal_name);
2287   if (info == NULL)
2288     return;
2289   num_params = g_variant_n_children (parameters);
2290   paramv = g_new0 (GValue, num_params + 1);
2291   g_value_init (&paramv[0], GSIGNOND_DBUS_TYPE_IDENTITY);
2292   g_value_set_object (&paramv[0], proxy);
2293   g_variant_iter_init (&iter, parameters);
2294   n = 1;
2295   while ((child = g_variant_iter_next_value (&iter)) != NULL)
2296     {
2297       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2298       if (arg_info->use_gvariant)
2299         {
2300           g_value_init (&paramv[n], G_TYPE_VARIANT);
2301           g_value_set_variant (&paramv[n], child);
2302           n++;
2303         }
2304       else
2305         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2306       g_variant_unref (child);
2307     }
2308   signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_IDENTITY);
2309   g_signal_emitv (paramv, signal_id, 0, NULL);
2310   for (n = 0; n < num_params + 1; n++)
2311     g_value_unset (&paramv[n]);
2312   g_free (paramv);
2313 }
2314
2315 static void
2316 gsignond_dbus_identity_proxy_g_properties_changed (GDBusProxy *_proxy,
2317   GVariant *changed_properties,
2318   const gchar *const *invalidated_properties)
2319 {
2320   GSignondDbusIdentityProxy *proxy = GSIGNOND_DBUS_IDENTITY_PROXY (_proxy);
2321   guint n;
2322   const gchar *key;
2323   GVariantIter *iter;
2324   _ExtendedGDBusPropertyInfo *info;
2325   g_variant_get (changed_properties, "a{sv}", &iter);
2326   while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2327     {
2328       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info, key);
2329       g_datalist_remove_data (&proxy->priv->qdata, key);
2330       if (info != NULL)
2331         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2332     }
2333   g_variant_iter_free (iter);
2334   for (n = 0; invalidated_properties[n] != NULL; n++)
2335     {
2336       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info, invalidated_properties[n]);
2337       g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2338       if (info != NULL)
2339         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2340     }
2341 }
2342
2343 static void
2344 gsignond_dbus_identity_proxy_init (GSignondDbusIdentityProxy *proxy)
2345 {
2346   proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, GSignondDbusIdentityProxyPrivate);
2347   g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), gsignond_dbus_identity_interface_info ());
2348 }
2349
2350 static void
2351 gsignond_dbus_identity_proxy_class_init (GSignondDbusIdentityProxyClass *klass)
2352 {
2353   GObjectClass *gobject_class;
2354   GDBusProxyClass *proxy_class;
2355
2356   g_type_class_add_private (klass, sizeof (GSignondDbusIdentityProxyPrivate));
2357
2358   gobject_class = G_OBJECT_CLASS (klass);
2359   gobject_class->finalize     = gsignond_dbus_identity_proxy_finalize;
2360   gobject_class->get_property = gsignond_dbus_identity_proxy_get_property;
2361   gobject_class->set_property = gsignond_dbus_identity_proxy_set_property;
2362
2363   proxy_class = G_DBUS_PROXY_CLASS (klass);
2364   proxy_class->g_signal = gsignond_dbus_identity_proxy_g_signal;
2365   proxy_class->g_properties_changed = gsignond_dbus_identity_proxy_g_properties_changed;
2366
2367 }
2368
2369 static void
2370 gsignond_dbus_identity_proxy_iface_init (GSignondDbusIdentityIface *iface)
2371 {
2372 }
2373
2374 /**
2375  * gsignond_dbus_identity_proxy_new:
2376  * @connection: A #GDBusConnection.
2377  * @flags: Flags from the #GDBusProxyFlags enumeration.
2378  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2379  * @object_path: An object path.
2380  * @cancellable: (allow-none): A #GCancellable or %NULL.
2381  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2382  * @user_data: User data to pass to @callback.
2383  *
2384  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>. See g_dbus_proxy_new() for more details.
2385  *
2386  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2387  * You can then call gsignond_dbus_identity_proxy_new_finish() to get the result of the operation.
2388  *
2389  * See gsignond_dbus_identity_proxy_new_sync() for the synchronous, blocking version of this constructor.
2390  */
2391 void
2392 gsignond_dbus_identity_proxy_new (
2393     GDBusConnection     *connection,
2394     GDBusProxyFlags      flags,
2395     const gchar         *name,
2396     const gchar         *object_path,
2397     GCancellable        *cancellable,
2398     GAsyncReadyCallback  callback,
2399     gpointer             user_data)
2400 {
2401   g_async_initable_new_async (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2402 }
2403
2404 /**
2405  * gsignond_dbus_identity_proxy_new_finish:
2406  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_proxy_new().
2407  * @error: Return location for error or %NULL
2408  *
2409  * Finishes an operation started with gsignond_dbus_identity_proxy_new().
2410  *
2411  * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2412  */
2413 GSignondDbusIdentity *
2414 gsignond_dbus_identity_proxy_new_finish (
2415     GAsyncResult        *res,
2416     GError             **error)
2417 {
2418   GObject *ret;
2419   GObject *source_object;
2420   source_object = g_async_result_get_source_object (res);
2421   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2422   g_object_unref (source_object);
2423   if (ret != NULL)
2424     return GSIGNOND_DBUS_IDENTITY (ret);
2425   else
2426     return NULL;
2427 }
2428
2429 /**
2430  * gsignond_dbus_identity_proxy_new_sync:
2431  * @connection: A #GDBusConnection.
2432  * @flags: Flags from the #GDBusProxyFlags enumeration.
2433  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2434  * @object_path: An object path.
2435  * @cancellable: (allow-none): A #GCancellable or %NULL.
2436  * @error: Return location for error or %NULL
2437  *
2438  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>. See g_dbus_proxy_new_sync() for more details.
2439  *
2440  * The calling thread is blocked until a reply is received.
2441  *
2442  * See gsignond_dbus_identity_proxy_new() for the asynchronous version of this constructor.
2443  *
2444  * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2445  */
2446 GSignondDbusIdentity *
2447 gsignond_dbus_identity_proxy_new_sync (
2448     GDBusConnection     *connection,
2449     GDBusProxyFlags      flags,
2450     const gchar         *name,
2451     const gchar         *object_path,
2452     GCancellable        *cancellable,
2453     GError             **error)
2454 {
2455   GInitable *ret;
2456   ret = g_initable_new (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2457   if (ret != NULL)
2458     return GSIGNOND_DBUS_IDENTITY (ret);
2459   else
2460     return NULL;
2461 }
2462
2463
2464 /**
2465  * gsignond_dbus_identity_proxy_new_for_bus:
2466  * @bus_type: A #GBusType.
2467  * @flags: Flags from the #GDBusProxyFlags enumeration.
2468  * @name: A bus name (well-known or unique).
2469  * @object_path: An object path.
2470  * @cancellable: (allow-none): A #GCancellable or %NULL.
2471  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2472  * @user_data: User data to pass to @callback.
2473  *
2474  * Like gsignond_dbus_identity_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
2475  *
2476  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2477  * You can then call gsignond_dbus_identity_proxy_new_for_bus_finish() to get the result of the operation.
2478  *
2479  * See gsignond_dbus_identity_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2480  */
2481 void
2482 gsignond_dbus_identity_proxy_new_for_bus (
2483     GBusType             bus_type,
2484     GDBusProxyFlags      flags,
2485     const gchar         *name,
2486     const gchar         *object_path,
2487     GCancellable        *cancellable,
2488     GAsyncReadyCallback  callback,
2489     gpointer             user_data)
2490 {
2491   g_async_initable_new_async (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2492 }
2493
2494 /**
2495  * gsignond_dbus_identity_proxy_new_for_bus_finish:
2496  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_proxy_new_for_bus().
2497  * @error: Return location for error or %NULL
2498  *
2499  * Finishes an operation started with gsignond_dbus_identity_proxy_new_for_bus().
2500  *
2501  * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2502  */
2503 GSignondDbusIdentity *
2504 gsignond_dbus_identity_proxy_new_for_bus_finish (
2505     GAsyncResult        *res,
2506     GError             **error)
2507 {
2508   GObject *ret;
2509   GObject *source_object;
2510   source_object = g_async_result_get_source_object (res);
2511   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2512   g_object_unref (source_object);
2513   if (ret != NULL)
2514     return GSIGNOND_DBUS_IDENTITY (ret);
2515   else
2516     return NULL;
2517 }
2518
2519 /**
2520  * gsignond_dbus_identity_proxy_new_for_bus_sync:
2521  * @bus_type: A #GBusType.
2522  * @flags: Flags from the #GDBusProxyFlags enumeration.
2523  * @name: A bus name (well-known or unique).
2524  * @object_path: An object path.
2525  * @cancellable: (allow-none): A #GCancellable or %NULL.
2526  * @error: Return location for error or %NULL
2527  *
2528  * Like gsignond_dbus_identity_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2529  *
2530  * The calling thread is blocked until a reply is received.
2531  *
2532  * See gsignond_dbus_identity_proxy_new_for_bus() for the asynchronous version of this constructor.
2533  *
2534  * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2535  */
2536 GSignondDbusIdentity *
2537 gsignond_dbus_identity_proxy_new_for_bus_sync (
2538     GBusType             bus_type,
2539     GDBusProxyFlags      flags,
2540     const gchar         *name,
2541     const gchar         *object_path,
2542     GCancellable        *cancellable,
2543     GError             **error)
2544 {
2545   GInitable *ret;
2546   ret = g_initable_new (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2547   if (ret != NULL)
2548     return GSIGNOND_DBUS_IDENTITY (ret);
2549   else
2550     return NULL;
2551 }
2552
2553
2554 /* ------------------------------------------------------------------------ */
2555
2556 /**
2557  * GSignondDbusIdentitySkeleton:
2558  *
2559  * The #GSignondDbusIdentitySkeleton structure contains only private data and should only be accessed using the provided API.
2560  */
2561
2562 /**
2563  * GSignondDbusIdentitySkeletonClass:
2564  * @parent_class: The parent class.
2565  *
2566  * Class structure for #GSignondDbusIdentitySkeleton.
2567  */
2568
2569 struct _GSignondDbusIdentitySkeletonPrivate
2570 {
2571   GValue *properties;
2572   GList *changed_properties;
2573   GSource *changed_properties_idle_source;
2574   GMainContext *context;
2575   GMutex lock;
2576 };
2577
2578 static void
2579 _gsignond_dbus_identity_skeleton_handle_method_call (
2580   GDBusConnection *connection,
2581   const gchar *sender,
2582   const gchar *object_path,
2583   const gchar *interface_name,
2584   const gchar *method_name,
2585   GVariant *parameters,
2586   GDBusMethodInvocation *invocation,
2587   gpointer user_data)
2588 {
2589   GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (user_data);
2590   _ExtendedGDBusMethodInfo *info;
2591   GVariantIter iter;
2592   GVariant *child;
2593   GValue *paramv;
2594   guint num_params;
2595   guint num_extra;
2596   guint n;
2597   guint signal_id;
2598   GValue return_value = G_VALUE_INIT;
2599   info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2600   g_assert (info != NULL);
2601   num_params = g_variant_n_children (parameters);
2602   num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
2603   n = 0;
2604   g_value_init (&paramv[n], GSIGNOND_DBUS_TYPE_IDENTITY);
2605   g_value_set_object (&paramv[n++], skeleton);
2606   g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2607   g_value_set_object (&paramv[n++], invocation);
2608   if (info->pass_fdlist)
2609     {
2610 #ifdef G_OS_UNIX
2611       g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
2612       g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2613 #else
2614       g_assert_not_reached ();
2615 #endif
2616     }
2617   g_variant_iter_init (&iter, parameters);
2618   while ((child = g_variant_iter_next_value (&iter)) != NULL)
2619     {
2620       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2621       if (arg_info->use_gvariant)
2622         {
2623           g_value_init (&paramv[n], G_TYPE_VARIANT);
2624           g_value_set_variant (&paramv[n], child);
2625           n++;
2626         }
2627       else
2628         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2629       g_variant_unref (child);
2630     }
2631   signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_IDENTITY);
2632   g_value_init (&return_value, G_TYPE_BOOLEAN);
2633   g_signal_emitv (paramv, signal_id, 0, &return_value);
2634   if (!g_value_get_boolean (&return_value))
2635     g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
2636   g_value_unset (&return_value);
2637   for (n = 0; n < num_params + num_extra; n++)
2638     g_value_unset (&paramv[n]);
2639   g_free (paramv);
2640 }
2641
2642 static GVariant *
2643 _gsignond_dbus_identity_skeleton_handle_get_property (
2644   GDBusConnection *connection,
2645   const gchar *sender,
2646   const gchar *object_path,
2647   const gchar *interface_name,
2648   const gchar *property_name,
2649   GError **error,
2650   gpointer user_data)
2651 {
2652   GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (user_data);
2653   GValue value = G_VALUE_INIT;
2654   GParamSpec *pspec;
2655   _ExtendedGDBusPropertyInfo *info;
2656   GVariant *ret;
2657   ret = NULL;
2658   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info, property_name);
2659   g_assert (info != NULL);
2660   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2661   if (pspec == NULL)
2662     {
2663       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2664     }
2665   else
2666     {
2667       g_value_init (&value, pspec->value_type);
2668       g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2669       ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2670       g_value_unset (&value);
2671     }
2672   return ret;
2673 }
2674
2675 static gboolean
2676 _gsignond_dbus_identity_skeleton_handle_set_property (
2677   GDBusConnection *connection,
2678   const gchar *sender,
2679   const gchar *object_path,
2680   const gchar *interface_name,
2681   const gchar *property_name,
2682   GVariant *variant,
2683   GError **error,
2684   gpointer user_data)
2685 {
2686   GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (user_data);
2687   GValue value = G_VALUE_INIT;
2688   GParamSpec *pspec;
2689   _ExtendedGDBusPropertyInfo *info;
2690   gboolean ret;
2691   ret = FALSE;
2692   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info, property_name);
2693   g_assert (info != NULL);
2694   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2695   if (pspec == NULL)
2696     {
2697       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2698     }
2699   else
2700     {
2701       if (info->use_gvariant)
2702         g_value_set_variant (&value, variant);
2703       else
2704         g_dbus_gvariant_to_gvalue (variant, &value);
2705       g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2706       g_value_unset (&value);
2707       ret = TRUE;
2708     }
2709   return ret;
2710 }
2711
2712 static const GDBusInterfaceVTable _gsignond_dbus_identity_skeleton_vtable =
2713 {
2714   _gsignond_dbus_identity_skeleton_handle_method_call,
2715   _gsignond_dbus_identity_skeleton_handle_get_property,
2716   _gsignond_dbus_identity_skeleton_handle_set_property
2717 };
2718
2719 static GDBusInterfaceInfo *
2720 gsignond_dbus_identity_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
2721 {
2722   return gsignond_dbus_identity_interface_info ();
2723 }
2724
2725 static GDBusInterfaceVTable *
2726 gsignond_dbus_identity_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
2727 {
2728   return (GDBusInterfaceVTable *) &_gsignond_dbus_identity_skeleton_vtable;
2729 }
2730
2731 static GVariant *
2732 gsignond_dbus_identity_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2733 {
2734   GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (_skeleton);
2735
2736   GVariantBuilder builder;
2737   guint n;
2738   g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2739   if (_gsignond_dbus_identity_interface_info.parent_struct.properties == NULL)
2740     goto out;
2741   for (n = 0; _gsignond_dbus_identity_interface_info.parent_struct.properties[n] != NULL; n++)
2742     {
2743       GDBusPropertyInfo *info = _gsignond_dbus_identity_interface_info.parent_struct.properties[n];
2744       if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2745         {
2746           GVariant *value;
2747           value = _gsignond_dbus_identity_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.Identity", info->name, NULL, skeleton);
2748           if (value != NULL)
2749             {
2750               g_variant_take_ref (value);
2751               g_variant_builder_add (&builder, "{sv}", info->name, value);
2752               g_variant_unref (value);
2753             }
2754         }
2755     }
2756 out:
2757   return g_variant_builder_end (&builder);
2758 }
2759
2760 static void
2761 gsignond_dbus_identity_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
2762 {
2763 }
2764
2765 static void
2766 _gsignond_dbus_identity_on_signal_unregistered (
2767     GSignondDbusIdentity *object)
2768 {
2769   GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (object);
2770
2771   GList      *connections, *l;
2772   GVariant   *signal_variant;
2773   connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2774
2775   signal_variant = g_variant_ref_sink (g_variant_new ("()"));
2776   for (l = connections; l != NULL; l = l->next)
2777     {
2778       GDBusConnection *connection = l->data;
2779       g_dbus_connection_emit_signal (connection,
2780         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.Identity", "unregistered",
2781         signal_variant, NULL);
2782     }
2783   g_variant_unref (signal_variant);
2784   g_list_free_full (connections, g_object_unref);
2785 }
2786
2787 static void
2788 _gsignond_dbus_identity_on_signal_info_updated (
2789     GSignondDbusIdentity *object,
2790     gint arg_unnamed_arg0)
2791 {
2792   GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (object);
2793
2794   GList      *connections, *l;
2795   GVariant   *signal_variant;
2796   connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2797
2798   signal_variant = g_variant_ref_sink (g_variant_new ("(i)",
2799                    arg_unnamed_arg0));
2800   for (l = connections; l != NULL; l = l->next)
2801     {
2802       GDBusConnection *connection = l->data;
2803       g_dbus_connection_emit_signal (connection,
2804         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.Identity", "infoUpdated",
2805         signal_variant, NULL);
2806     }
2807   g_variant_unref (signal_variant);
2808   g_list_free_full (connections, g_object_unref);
2809 }
2810
2811 static void gsignond_dbus_identity_skeleton_iface_init (GSignondDbusIdentityIface *iface);
2812 G_DEFINE_TYPE_WITH_CODE (GSignondDbusIdentitySkeleton, gsignond_dbus_identity_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2813                          G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_IDENTITY, gsignond_dbus_identity_skeleton_iface_init));
2814
2815 static void
2816 gsignond_dbus_identity_skeleton_finalize (GObject *object)
2817 {
2818   GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (object);
2819   g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
2820   if (skeleton->priv->changed_properties_idle_source != NULL)
2821     g_source_destroy (skeleton->priv->changed_properties_idle_source);
2822   g_main_context_unref (skeleton->priv->context);
2823   g_mutex_clear (&skeleton->priv->lock);
2824   G_OBJECT_CLASS (gsignond_dbus_identity_skeleton_parent_class)->finalize (object);
2825 }
2826
2827 static void
2828 gsignond_dbus_identity_skeleton_init (GSignondDbusIdentitySkeleton *skeleton)
2829 {
2830   skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GSIGNOND_DBUS_TYPE_IDENTITY_SKELETON, GSignondDbusIdentitySkeletonPrivate);
2831   g_mutex_init (&skeleton->priv->lock);
2832   skeleton->priv->context = g_main_context_ref_thread_default ();
2833 }
2834
2835 static void
2836 gsignond_dbus_identity_skeleton_class_init (GSignondDbusIdentitySkeletonClass *klass)
2837 {
2838   GObjectClass *gobject_class;
2839   GDBusInterfaceSkeletonClass *skeleton_class;
2840
2841   g_type_class_add_private (klass, sizeof (GSignondDbusIdentitySkeletonPrivate));
2842
2843   gobject_class = G_OBJECT_CLASS (klass);
2844   gobject_class->finalize = gsignond_dbus_identity_skeleton_finalize;
2845
2846   skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
2847   skeleton_class->get_info = gsignond_dbus_identity_skeleton_dbus_interface_get_info;
2848   skeleton_class->get_properties = gsignond_dbus_identity_skeleton_dbus_interface_get_properties;
2849   skeleton_class->flush = gsignond_dbus_identity_skeleton_dbus_interface_flush;
2850   skeleton_class->get_vtable = gsignond_dbus_identity_skeleton_dbus_interface_get_vtable;
2851 }
2852
2853 static void
2854 gsignond_dbus_identity_skeleton_iface_init (GSignondDbusIdentityIface *iface)
2855 {
2856   iface->unregistered = _gsignond_dbus_identity_on_signal_unregistered;
2857   iface->info_updated = _gsignond_dbus_identity_on_signal_info_updated;
2858 }
2859
2860 /**
2861  * gsignond_dbus_identity_skeleton_new:
2862  *
2863  * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>.
2864  *
2865  * Returns: (transfer full) (type GSignondDbusIdentitySkeleton): The skeleton object.
2866  */
2867 GSignondDbusIdentity *
2868 gsignond_dbus_identity_skeleton_new (void)
2869 {
2870   return GSIGNOND_DBUS_IDENTITY (g_object_new (GSIGNOND_DBUS_TYPE_IDENTITY_SKELETON, NULL));
2871 }
2872