1ca2490c16adae301e7218d3509846f08c76775f
[profile/ivi/gsignond.git] / src / daemon / dbus / gsignond-dbus-auth-service-gen.c
1 /*
2  * Generated by gdbus-codegen 2.34.1. 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-auth-service-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.AuthService
153  * ------------------------------------------------------------------------
154  */
155
156 /**
157  * SECTION:GSignondDbusAuthService
158  * @title: GSignondDbusAuthService
159  * @short_description: Generated C code for the com.google.code.AccountsSSO.gSingleSignOn.AuthService D-Bus interface
160  *
161  * This section contains code for working with the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-AuthService.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.AuthService</link> D-Bus interface in C.
162  */
163
164 /* ---- Introspection data for com.google.code.AccountsSSO.gSingleSignOn.AuthService ---- */
165
166 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_register_new_identity_IN_ARG_applicationContext =
167 {
168   {
169     -1,
170     (gchar *) "applicationContext",
171     (gchar *) "s",
172     NULL
173   },
174   FALSE
175 };
176
177 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_register_new_identity_IN_ARG_pointers[] =
178 {
179   &_gsignond_dbus_auth_service_method_info_register_new_identity_IN_ARG_applicationContext,
180   NULL
181 };
182
183 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_register_new_identity_OUT_ARG_objectPath =
184 {
185   {
186     -1,
187     (gchar *) "objectPath",
188     (gchar *) "o",
189     NULL
190   },
191   FALSE
192 };
193
194 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_register_new_identity_OUT_ARG_pointers[] =
195 {
196   &_gsignond_dbus_auth_service_method_info_register_new_identity_OUT_ARG_objectPath,
197   NULL
198 };
199
200 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_register_new_identity =
201 {
202   {
203     -1,
204     (gchar *) "registerNewIdentity",
205     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_register_new_identity_IN_ARG_pointers,
206     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_register_new_identity_OUT_ARG_pointers,
207     NULL
208   },
209   "handle-register-new-identity",
210   FALSE
211 };
212
213 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_id =
214 {
215   {
216     -1,
217     (gchar *) "id",
218     (gchar *) "u",
219     NULL
220   },
221   FALSE
222 };
223
224 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_applicationContext =
225 {
226   {
227     -1,
228     (gchar *) "applicationContext",
229     (gchar *) "s",
230     NULL
231   },
232   FALSE
233 };
234
235 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_pointers[] =
236 {
237   &_gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_id,
238   &_gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_applicationContext,
239   NULL
240 };
241
242 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_objectPath =
243 {
244   {
245     -1,
246     (gchar *) "objectPath",
247     (gchar *) "o",
248     NULL
249   },
250   FALSE
251 };
252
253 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_identityData =
254 {
255   {
256     -1,
257     (gchar *) "identityData",
258     (gchar *) "a{sv}",
259     NULL
260   },
261   FALSE
262 };
263
264 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_pointers[] =
265 {
266   &_gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_objectPath,
267   &_gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_identityData,
268   NULL
269 };
270
271 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_get_identity =
272 {
273   {
274     -1,
275     (gchar *) "getIdentity",
276     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_pointers,
277     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_pointers,
278     NULL
279   },
280   "handle-get-identity",
281   FALSE
282 };
283
284 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_authMethods =
285 {
286   {
287     -1,
288     (gchar *) "authMethods",
289     (gchar *) "as",
290     NULL
291   },
292   FALSE
293 };
294
295 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_pointers[] =
296 {
297   &_gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_authMethods,
298   NULL
299 };
300
301 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_query_methods =
302 {
303   {
304     -1,
305     (gchar *) "queryMethods",
306     NULL,
307     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_pointers,
308     NULL
309   },
310   "handle-query-methods",
311   FALSE
312 };
313
314 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_mechanisms_IN_ARG_method =
315 {
316   {
317     -1,
318     (gchar *) "method",
319     (gchar *) "s",
320     NULL
321   },
322   FALSE
323 };
324
325 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_mechanisms_IN_ARG_pointers[] =
326 {
327   &_gsignond_dbus_auth_service_method_info_query_mechanisms_IN_ARG_method,
328   NULL
329 };
330
331 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_mechanisms_OUT_ARG_mechanisms =
332 {
333   {
334     -1,
335     (gchar *) "mechanisms",
336     (gchar *) "as",
337     NULL
338   },
339   FALSE
340 };
341
342 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_mechanisms_OUT_ARG_pointers[] =
343 {
344   &_gsignond_dbus_auth_service_method_info_query_mechanisms_OUT_ARG_mechanisms,
345   NULL
346 };
347
348 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_query_mechanisms =
349 {
350   {
351     -1,
352     (gchar *) "queryMechanisms",
353     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_query_mechanisms_IN_ARG_pointers,
354     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_query_mechanisms_OUT_ARG_pointers,
355     NULL
356   },
357   "handle-query-mechanisms",
358   FALSE
359 };
360
361 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_filter =
362 {
363   {
364     -1,
365     (gchar *) "filter",
366     (gchar *) "a{sv}",
367     NULL
368   },
369   FALSE
370 };
371
372 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_applicationContext =
373 {
374   {
375     -1,
376     (gchar *) "applicationContext",
377     (gchar *) "s",
378     NULL
379   },
380   FALSE
381 };
382
383 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_pointers[] =
384 {
385   &_gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_filter,
386   &_gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_applicationContext,
387   NULL
388 };
389
390 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_identities_OUT_ARG_identities =
391 {
392   {
393     -1,
394     (gchar *) "identities",
395     (gchar *) "aa{sv}",
396     NULL
397   },
398   FALSE
399 };
400
401 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_identities_OUT_ARG_pointers[] =
402 {
403   &_gsignond_dbus_auth_service_method_info_query_identities_OUT_ARG_identities,
404   NULL
405 };
406
407 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_query_identities =
408 {
409   {
410     -1,
411     (gchar *) "queryIdentities",
412     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_pointers,
413     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_query_identities_OUT_ARG_pointers,
414     NULL
415   },
416   "handle-query-identities",
417   FALSE
418 };
419
420 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_clear_OUT_ARG_unnamed_arg0 =
421 {
422   {
423     -1,
424     (gchar *) "unnamed_arg0",
425     (gchar *) "b",
426     NULL
427   },
428   FALSE
429 };
430
431 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_clear_OUT_ARG_pointers[] =
432 {
433   &_gsignond_dbus_auth_service_method_info_clear_OUT_ARG_unnamed_arg0,
434   NULL
435 };
436
437 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_clear =
438 {
439   {
440     -1,
441     (gchar *) "clear",
442     NULL,
443     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_clear_OUT_ARG_pointers,
444     NULL
445   },
446   "handle-clear",
447   FALSE
448 };
449
450 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_unnamed_arg0 =
451 {
452   {
453     -1,
454     (gchar *) "unnamed_arg0",
455     (gchar *) "y",
456     NULL
457   },
458   FALSE
459 };
460
461 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_pointers[] =
462 {
463   &_gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_unnamed_arg0,
464   NULL
465 };
466
467 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_backup_starts =
468 {
469   {
470     -1,
471     (gchar *) "backupStarts",
472     NULL,
473     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_pointers,
474     NULL
475   },
476   "handle-backup-starts",
477   FALSE
478 };
479
480 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_unnamed_arg0 =
481 {
482   {
483     -1,
484     (gchar *) "unnamed_arg0",
485     (gchar *) "y",
486     NULL
487   },
488   FALSE
489 };
490
491 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_pointers[] =
492 {
493   &_gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_unnamed_arg0,
494   NULL
495 };
496
497 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_backup_finished =
498 {
499   {
500     -1,
501     (gchar *) "backupFinished",
502     NULL,
503     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_pointers,
504     NULL
505   },
506   "handle-backup-finished",
507   FALSE
508 };
509
510 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_unnamed_arg0 =
511 {
512   {
513     -1,
514     (gchar *) "unnamed_arg0",
515     (gchar *) "y",
516     NULL
517   },
518   FALSE
519 };
520
521 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_pointers[] =
522 {
523   &_gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_unnamed_arg0,
524   NULL
525 };
526
527 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_restore_starts =
528 {
529   {
530     -1,
531     (gchar *) "restoreStarts",
532     NULL,
533     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_pointers,
534     NULL
535   },
536   "handle-restore-starts",
537   FALSE
538 };
539
540 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_unnamed_arg0 =
541 {
542   {
543     -1,
544     (gchar *) "unnamed_arg0",
545     (gchar *) "y",
546     NULL
547   },
548   FALSE
549 };
550
551 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_pointers[] =
552 {
553   &_gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_unnamed_arg0,
554   NULL
555 };
556
557 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_restore_finished =
558 {
559   {
560     -1,
561     (gchar *) "restoreFinished",
562     NULL,
563     (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_pointers,
564     NULL
565   },
566   "handle-restore-finished",
567   FALSE
568 };
569
570 static const _ExtendedGDBusMethodInfo * const _gsignond_dbus_auth_service_method_info_pointers[] =
571 {
572   &_gsignond_dbus_auth_service_method_info_register_new_identity,
573   &_gsignond_dbus_auth_service_method_info_get_identity,
574   &_gsignond_dbus_auth_service_method_info_query_methods,
575   &_gsignond_dbus_auth_service_method_info_query_mechanisms,
576   &_gsignond_dbus_auth_service_method_info_query_identities,
577   &_gsignond_dbus_auth_service_method_info_clear,
578   &_gsignond_dbus_auth_service_method_info_backup_starts,
579   &_gsignond_dbus_auth_service_method_info_backup_finished,
580   &_gsignond_dbus_auth_service_method_info_restore_starts,
581   &_gsignond_dbus_auth_service_method_info_restore_finished,
582   NULL
583 };
584
585 static const _ExtendedGDBusInterfaceInfo _gsignond_dbus_auth_service_interface_info =
586 {
587   {
588     -1,
589     (gchar *) "com.google.code.AccountsSSO.gSingleSignOn.AuthService",
590     (GDBusMethodInfo **) &_gsignond_dbus_auth_service_method_info_pointers,
591     NULL,
592     NULL,
593     NULL
594   },
595   "auth-service",
596 };
597
598
599 /**
600  * gsignond_dbus_auth_service_interface_info:
601  *
602  * Gets a machine-readable description of the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-AuthService.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.AuthService</link> D-Bus interface.
603  *
604  * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
605  */
606 GDBusInterfaceInfo *
607 gsignond_dbus_auth_service_interface_info (void)
608 {
609   return (GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct;
610 }
611
612 /**
613  * gsignond_dbus_auth_service_override_properties:
614  * @klass: The class structure for a #GObject<!-- -->-derived class.
615  * @property_id_begin: The property id to assign to the first overridden property.
616  *
617  * Overrides all #GObject properties in the #GSignondDbusAuthService interface for a concrete class.
618  * The properties are overridden in the order they are defined.
619  *
620  * Returns: The last property id.
621  */
622 guint
623 gsignond_dbus_auth_service_override_properties (GObjectClass *klass, guint property_id_begin)
624 {
625   return property_id_begin - 1;
626 }
627
628
629
630 /**
631  * GSignondDbusAuthService:
632  *
633  * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-AuthService.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.AuthService</link>.
634  */
635
636 /**
637  * GSignondDbusAuthServiceIface:
638  * @parent_iface: The parent interface.
639  * @handle_backup_finished: Handler for the #GSignondDbusAuthService::handle-backup-finished signal.
640  * @handle_backup_starts: Handler for the #GSignondDbusAuthService::handle-backup-starts signal.
641  * @handle_clear: Handler for the #GSignondDbusAuthService::handle-clear signal.
642  * @handle_get_identity: Handler for the #GSignondDbusAuthService::handle-get-identity signal.
643  * @handle_query_identities: Handler for the #GSignondDbusAuthService::handle-query-identities signal.
644  * @handle_query_mechanisms: Handler for the #GSignondDbusAuthService::handle-query-mechanisms signal.
645  * @handle_query_methods: Handler for the #GSignondDbusAuthService::handle-query-methods signal.
646  * @handle_register_new_identity: Handler for the #GSignondDbusAuthService::handle-register-new-identity signal.
647  * @handle_restore_finished: Handler for the #GSignondDbusAuthService::handle-restore-finished signal.
648  * @handle_restore_starts: Handler for the #GSignondDbusAuthService::handle-restore-starts signal.
649  *
650  * Virtual table for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-AuthService.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.AuthService</link>.
651  */
652
653 static void
654 gsignond_dbus_auth_service_default_init (GSignondDbusAuthServiceIface *iface)
655 {
656   /* GObject signals for incoming D-Bus method calls: */
657   /**
658    * GSignondDbusAuthService::handle-register-new-identity:
659    * @object: A #GSignondDbusAuthService.
660    * @invocation: A #GDBusMethodInvocation.
661    * @arg_applicationContext: Argument passed by remote caller.
662    *
663    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.registerNewIdentity">registerNewIdentity()</link> D-Bus method.
664    *
665    * 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_auth_service_complete_register_new_identity() 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.
666    *
667    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
668    */
669   g_signal_new ("handle-register-new-identity",
670     G_TYPE_FROM_INTERFACE (iface),
671     G_SIGNAL_RUN_LAST,
672     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_register_new_identity),
673     g_signal_accumulator_true_handled,
674     NULL,
675     g_cclosure_marshal_generic,
676     G_TYPE_BOOLEAN,
677     2,
678     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
679
680   /**
681    * GSignondDbusAuthService::handle-get-identity:
682    * @object: A #GSignondDbusAuthService.
683    * @invocation: A #GDBusMethodInvocation.
684    * @arg_id: Argument passed by remote caller.
685    * @arg_applicationContext: Argument passed by remote caller.
686    *
687    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.getIdentity">getIdentity()</link> D-Bus method.
688    *
689    * 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_auth_service_complete_get_identity() 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.
690    *
691    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
692    */
693   g_signal_new ("handle-get-identity",
694     G_TYPE_FROM_INTERFACE (iface),
695     G_SIGNAL_RUN_LAST,
696     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_get_identity),
697     g_signal_accumulator_true_handled,
698     NULL,
699     g_cclosure_marshal_generic,
700     G_TYPE_BOOLEAN,
701     3,
702     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING);
703
704   /**
705    * GSignondDbusAuthService::handle-query-methods:
706    * @object: A #GSignondDbusAuthService.
707    * @invocation: A #GDBusMethodInvocation.
708    *
709    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMethods">queryMethods()</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_auth_service_complete_query_methods() 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-query-methods",
716     G_TYPE_FROM_INTERFACE (iface),
717     G_SIGNAL_RUN_LAST,
718     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_query_methods),
719     g_signal_accumulator_true_handled,
720     NULL,
721     g_cclosure_marshal_generic,
722     G_TYPE_BOOLEAN,
723     1,
724     G_TYPE_DBUS_METHOD_INVOCATION);
725
726   /**
727    * GSignondDbusAuthService::handle-query-mechanisms:
728    * @object: A #GSignondDbusAuthService.
729    * @invocation: A #GDBusMethodInvocation.
730    * @arg_method: Argument passed by remote caller.
731    *
732    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMechanisms">queryMechanisms()</link> D-Bus method.
733    *
734    * 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_auth_service_complete_query_mechanisms() 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.
735    *
736    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
737    */
738   g_signal_new ("handle-query-mechanisms",
739     G_TYPE_FROM_INTERFACE (iface),
740     G_SIGNAL_RUN_LAST,
741     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_query_mechanisms),
742     g_signal_accumulator_true_handled,
743     NULL,
744     g_cclosure_marshal_generic,
745     G_TYPE_BOOLEAN,
746     2,
747     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
748
749   /**
750    * GSignondDbusAuthService::handle-query-identities:
751    * @object: A #GSignondDbusAuthService.
752    * @invocation: A #GDBusMethodInvocation.
753    * @arg_filter: Argument passed by remote caller.
754    * @arg_applicationContext: Argument passed by remote caller.
755    *
756    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryIdentities">queryIdentities()</link> D-Bus method.
757    *
758    * 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_auth_service_complete_query_identities() 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.
759    *
760    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
761    */
762   g_signal_new ("handle-query-identities",
763     G_TYPE_FROM_INTERFACE (iface),
764     G_SIGNAL_RUN_LAST,
765     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_query_identities),
766     g_signal_accumulator_true_handled,
767     NULL,
768     g_cclosure_marshal_generic,
769     G_TYPE_BOOLEAN,
770     3,
771     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_STRING);
772
773   /**
774    * GSignondDbusAuthService::handle-clear:
775    * @object: A #GSignondDbusAuthService.
776    * @invocation: A #GDBusMethodInvocation.
777    *
778    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.clear">clear()</link> D-Bus method.
779    *
780    * 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_auth_service_complete_clear() 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.
781    *
782    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
783    */
784   g_signal_new ("handle-clear",
785     G_TYPE_FROM_INTERFACE (iface),
786     G_SIGNAL_RUN_LAST,
787     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_clear),
788     g_signal_accumulator_true_handled,
789     NULL,
790     g_cclosure_marshal_generic,
791     G_TYPE_BOOLEAN,
792     1,
793     G_TYPE_DBUS_METHOD_INVOCATION);
794
795   /**
796    * GSignondDbusAuthService::handle-backup-starts:
797    * @object: A #GSignondDbusAuthService.
798    * @invocation: A #GDBusMethodInvocation.
799    *
800    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupStarts">backupStarts()</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_auth_service_complete_backup_starts() 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-backup-starts",
807     G_TYPE_FROM_INTERFACE (iface),
808     G_SIGNAL_RUN_LAST,
809     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_backup_starts),
810     g_signal_accumulator_true_handled,
811     NULL,
812     g_cclosure_marshal_generic,
813     G_TYPE_BOOLEAN,
814     1,
815     G_TYPE_DBUS_METHOD_INVOCATION);
816
817   /**
818    * GSignondDbusAuthService::handle-backup-finished:
819    * @object: A #GSignondDbusAuthService.
820    * @invocation: A #GDBusMethodInvocation.
821    *
822    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupFinished">backupFinished()</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_auth_service_complete_backup_finished() 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-backup-finished",
829     G_TYPE_FROM_INTERFACE (iface),
830     G_SIGNAL_RUN_LAST,
831     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_backup_finished),
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    * GSignondDbusAuthService::handle-restore-starts:
841    * @object: A #GSignondDbusAuthService.
842    * @invocation: A #GDBusMethodInvocation.
843    *
844    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreStarts">restoreStarts()</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_auth_service_complete_restore_starts() 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-restore-starts",
851     G_TYPE_FROM_INTERFACE (iface),
852     G_SIGNAL_RUN_LAST,
853     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_restore_starts),
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    * GSignondDbusAuthService::handle-restore-finished:
863    * @object: A #GSignondDbusAuthService.
864    * @invocation: A #GDBusMethodInvocation.
865    *
866    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreFinished">restoreFinished()</link> D-Bus method.
867    *
868    * 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_auth_service_complete_restore_finished() 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.
869    *
870    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
871    */
872   g_signal_new ("handle-restore-finished",
873     G_TYPE_FROM_INTERFACE (iface),
874     G_SIGNAL_RUN_LAST,
875     G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_restore_finished),
876     g_signal_accumulator_true_handled,
877     NULL,
878     g_cclosure_marshal_generic,
879     G_TYPE_BOOLEAN,
880     1,
881     G_TYPE_DBUS_METHOD_INVOCATION);
882
883 }
884
885 typedef GSignondDbusAuthServiceIface GSignondDbusAuthServiceInterface;
886 G_DEFINE_INTERFACE (GSignondDbusAuthService, gsignond_dbus_auth_service, G_TYPE_OBJECT);
887
888 /**
889  * gsignond_dbus_auth_service_call_register_new_identity:
890  * @proxy: A #GSignondDbusAuthServiceProxy.
891  * @arg_applicationContext: Argument to pass with the method invocation.
892  * @cancellable: (allow-none): A #GCancellable or %NULL.
893  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
894  * @user_data: User data to pass to @callback.
895  *
896  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.registerNewIdentity">registerNewIdentity()</link> D-Bus method on @proxy.
897  * 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.
898  * You can then call gsignond_dbus_auth_service_call_register_new_identity_finish() to get the result of the operation.
899  *
900  * See gsignond_dbus_auth_service_call_register_new_identity_sync() for the synchronous, blocking version of this method.
901  */
902 void
903 gsignond_dbus_auth_service_call_register_new_identity (
904     GSignondDbusAuthService *proxy,
905     const gchar *arg_applicationContext,
906     GCancellable *cancellable,
907     GAsyncReadyCallback callback,
908     gpointer user_data)
909 {
910   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
911     "registerNewIdentity",
912     g_variant_new ("(s)",
913                    arg_applicationContext),
914     G_DBUS_CALL_FLAGS_NONE,
915     -1,
916     cancellable,
917     callback,
918     user_data);
919 }
920
921 /**
922  * gsignond_dbus_auth_service_call_register_new_identity_finish:
923  * @proxy: A #GSignondDbusAuthServiceProxy.
924  * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
925  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_register_new_identity().
926  * @error: Return location for error or %NULL.
927  *
928  * Finishes an operation started with gsignond_dbus_auth_service_call_register_new_identity().
929  *
930  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
931  */
932 gboolean
933 gsignond_dbus_auth_service_call_register_new_identity_finish (
934     GSignondDbusAuthService *proxy,
935     gchar **out_objectPath,
936     GAsyncResult *res,
937     GError **error)
938 {
939   GVariant *_ret;
940   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
941   if (_ret == NULL)
942     goto _out;
943   g_variant_get (_ret,
944                  "(o)",
945                  out_objectPath);
946   g_variant_unref (_ret);
947 _out:
948   return _ret != NULL;
949 }
950
951 /**
952  * gsignond_dbus_auth_service_call_register_new_identity_sync:
953  * @proxy: A #GSignondDbusAuthServiceProxy.
954  * @arg_applicationContext: Argument to pass with the method invocation.
955  * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
956  * @cancellable: (allow-none): A #GCancellable or %NULL.
957  * @error: Return location for error or %NULL.
958  *
959  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.registerNewIdentity">registerNewIdentity()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
960  *
961  * See gsignond_dbus_auth_service_call_register_new_identity() for the asynchronous version of this method.
962  *
963  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
964  */
965 gboolean
966 gsignond_dbus_auth_service_call_register_new_identity_sync (
967     GSignondDbusAuthService *proxy,
968     const gchar *arg_applicationContext,
969     gchar **out_objectPath,
970     GCancellable *cancellable,
971     GError **error)
972 {
973   GVariant *_ret;
974   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
975     "registerNewIdentity",
976     g_variant_new ("(s)",
977                    arg_applicationContext),
978     G_DBUS_CALL_FLAGS_NONE,
979     -1,
980     cancellable,
981     error);
982   if (_ret == NULL)
983     goto _out;
984   g_variant_get (_ret,
985                  "(o)",
986                  out_objectPath);
987   g_variant_unref (_ret);
988 _out:
989   return _ret != NULL;
990 }
991
992 /**
993  * gsignond_dbus_auth_service_call_get_identity:
994  * @proxy: A #GSignondDbusAuthServiceProxy.
995  * @arg_id: Argument to pass with the method invocation.
996  * @arg_applicationContext: Argument to pass with the method invocation.
997  * @cancellable: (allow-none): A #GCancellable or %NULL.
998  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
999  * @user_data: User data to pass to @callback.
1000  *
1001  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.getIdentity">getIdentity()</link> D-Bus method on @proxy.
1002  * 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.
1003  * You can then call gsignond_dbus_auth_service_call_get_identity_finish() to get the result of the operation.
1004  *
1005  * See gsignond_dbus_auth_service_call_get_identity_sync() for the synchronous, blocking version of this method.
1006  */
1007 void
1008 gsignond_dbus_auth_service_call_get_identity (
1009     GSignondDbusAuthService *proxy,
1010     guint arg_id,
1011     const gchar *arg_applicationContext,
1012     GCancellable *cancellable,
1013     GAsyncReadyCallback callback,
1014     gpointer user_data)
1015 {
1016   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1017     "getIdentity",
1018     g_variant_new ("(us)",
1019                    arg_id,
1020                    arg_applicationContext),
1021     G_DBUS_CALL_FLAGS_NONE,
1022     -1,
1023     cancellable,
1024     callback,
1025     user_data);
1026 }
1027
1028 /**
1029  * gsignond_dbus_auth_service_call_get_identity_finish:
1030  * @proxy: A #GSignondDbusAuthServiceProxy.
1031  * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
1032  * @out_identityData: (out): Return location for return parameter or %NULL to ignore.
1033  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_get_identity().
1034  * @error: Return location for error or %NULL.
1035  *
1036  * Finishes an operation started with gsignond_dbus_auth_service_call_get_identity().
1037  *
1038  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1039  */
1040 gboolean
1041 gsignond_dbus_auth_service_call_get_identity_finish (
1042     GSignondDbusAuthService *proxy,
1043     gchar **out_objectPath,
1044     GVariant **out_identityData,
1045     GAsyncResult *res,
1046     GError **error)
1047 {
1048   GVariant *_ret;
1049   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1050   if (_ret == NULL)
1051     goto _out;
1052   g_variant_get (_ret,
1053                  "(o@a{sv})",
1054                  out_objectPath,
1055                  out_identityData);
1056   g_variant_unref (_ret);
1057 _out:
1058   return _ret != NULL;
1059 }
1060
1061 /**
1062  * gsignond_dbus_auth_service_call_get_identity_sync:
1063  * @proxy: A #GSignondDbusAuthServiceProxy.
1064  * @arg_id: Argument to pass with the method invocation.
1065  * @arg_applicationContext: Argument to pass with the method invocation.
1066  * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
1067  * @out_identityData: (out): Return location for return parameter or %NULL to ignore.
1068  * @cancellable: (allow-none): A #GCancellable or %NULL.
1069  * @error: Return location for error or %NULL.
1070  *
1071  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.getIdentity">getIdentity()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1072  *
1073  * See gsignond_dbus_auth_service_call_get_identity() for the asynchronous version of this method.
1074  *
1075  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1076  */
1077 gboolean
1078 gsignond_dbus_auth_service_call_get_identity_sync (
1079     GSignondDbusAuthService *proxy,
1080     guint arg_id,
1081     const gchar *arg_applicationContext,
1082     gchar **out_objectPath,
1083     GVariant **out_identityData,
1084     GCancellable *cancellable,
1085     GError **error)
1086 {
1087   GVariant *_ret;
1088   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1089     "getIdentity",
1090     g_variant_new ("(us)",
1091                    arg_id,
1092                    arg_applicationContext),
1093     G_DBUS_CALL_FLAGS_NONE,
1094     -1,
1095     cancellable,
1096     error);
1097   if (_ret == NULL)
1098     goto _out;
1099   g_variant_get (_ret,
1100                  "(o@a{sv})",
1101                  out_objectPath,
1102                  out_identityData);
1103   g_variant_unref (_ret);
1104 _out:
1105   return _ret != NULL;
1106 }
1107
1108 /**
1109  * gsignond_dbus_auth_service_call_query_methods:
1110  * @proxy: A #GSignondDbusAuthServiceProxy.
1111  * @cancellable: (allow-none): A #GCancellable or %NULL.
1112  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1113  * @user_data: User data to pass to @callback.
1114  *
1115  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMethods">queryMethods()</link> D-Bus method on @proxy.
1116  * 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.
1117  * You can then call gsignond_dbus_auth_service_call_query_methods_finish() to get the result of the operation.
1118  *
1119  * See gsignond_dbus_auth_service_call_query_methods_sync() for the synchronous, blocking version of this method.
1120  */
1121 void
1122 gsignond_dbus_auth_service_call_query_methods (
1123     GSignondDbusAuthService *proxy,
1124     GCancellable *cancellable,
1125     GAsyncReadyCallback callback,
1126     gpointer user_data)
1127 {
1128   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1129     "queryMethods",
1130     g_variant_new ("()"),
1131     G_DBUS_CALL_FLAGS_NONE,
1132     -1,
1133     cancellable,
1134     callback,
1135     user_data);
1136 }
1137
1138 /**
1139  * gsignond_dbus_auth_service_call_query_methods_finish:
1140  * @proxy: A #GSignondDbusAuthServiceProxy.
1141  * @out_authMethods: (out): Return location for return parameter or %NULL to ignore.
1142  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_query_methods().
1143  * @error: Return location for error or %NULL.
1144  *
1145  * Finishes an operation started with gsignond_dbus_auth_service_call_query_methods().
1146  *
1147  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1148  */
1149 gboolean
1150 gsignond_dbus_auth_service_call_query_methods_finish (
1151     GSignondDbusAuthService *proxy,
1152     gchar ***out_authMethods,
1153     GAsyncResult *res,
1154     GError **error)
1155 {
1156   GVariant *_ret;
1157   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1158   if (_ret == NULL)
1159     goto _out;
1160   g_variant_get (_ret,
1161                  "(^as)",
1162                  out_authMethods);
1163   g_variant_unref (_ret);
1164 _out:
1165   return _ret != NULL;
1166 }
1167
1168 /**
1169  * gsignond_dbus_auth_service_call_query_methods_sync:
1170  * @proxy: A #GSignondDbusAuthServiceProxy.
1171  * @out_authMethods: (out): Return location for return parameter or %NULL to ignore.
1172  * @cancellable: (allow-none): A #GCancellable or %NULL.
1173  * @error: Return location for error or %NULL.
1174  *
1175  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMethods">queryMethods()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1176  *
1177  * See gsignond_dbus_auth_service_call_query_methods() for the asynchronous version of this method.
1178  *
1179  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1180  */
1181 gboolean
1182 gsignond_dbus_auth_service_call_query_methods_sync (
1183     GSignondDbusAuthService *proxy,
1184     gchar ***out_authMethods,
1185     GCancellable *cancellable,
1186     GError **error)
1187 {
1188   GVariant *_ret;
1189   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1190     "queryMethods",
1191     g_variant_new ("()"),
1192     G_DBUS_CALL_FLAGS_NONE,
1193     -1,
1194     cancellable,
1195     error);
1196   if (_ret == NULL)
1197     goto _out;
1198   g_variant_get (_ret,
1199                  "(^as)",
1200                  out_authMethods);
1201   g_variant_unref (_ret);
1202 _out:
1203   return _ret != NULL;
1204 }
1205
1206 /**
1207  * gsignond_dbus_auth_service_call_query_mechanisms:
1208  * @proxy: A #GSignondDbusAuthServiceProxy.
1209  * @arg_method: Argument to pass with the method invocation.
1210  * @cancellable: (allow-none): A #GCancellable or %NULL.
1211  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1212  * @user_data: User data to pass to @callback.
1213  *
1214  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMechanisms">queryMechanisms()</link> D-Bus method on @proxy.
1215  * 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.
1216  * You can then call gsignond_dbus_auth_service_call_query_mechanisms_finish() to get the result of the operation.
1217  *
1218  * See gsignond_dbus_auth_service_call_query_mechanisms_sync() for the synchronous, blocking version of this method.
1219  */
1220 void
1221 gsignond_dbus_auth_service_call_query_mechanisms (
1222     GSignondDbusAuthService *proxy,
1223     const gchar *arg_method,
1224     GCancellable *cancellable,
1225     GAsyncReadyCallback callback,
1226     gpointer user_data)
1227 {
1228   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1229     "queryMechanisms",
1230     g_variant_new ("(s)",
1231                    arg_method),
1232     G_DBUS_CALL_FLAGS_NONE,
1233     -1,
1234     cancellable,
1235     callback,
1236     user_data);
1237 }
1238
1239 /**
1240  * gsignond_dbus_auth_service_call_query_mechanisms_finish:
1241  * @proxy: A #GSignondDbusAuthServiceProxy.
1242  * @out_mechanisms: (out): Return location for return parameter or %NULL to ignore.
1243  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_query_mechanisms().
1244  * @error: Return location for error or %NULL.
1245  *
1246  * Finishes an operation started with gsignond_dbus_auth_service_call_query_mechanisms().
1247  *
1248  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1249  */
1250 gboolean
1251 gsignond_dbus_auth_service_call_query_mechanisms_finish (
1252     GSignondDbusAuthService *proxy,
1253     gchar ***out_mechanisms,
1254     GAsyncResult *res,
1255     GError **error)
1256 {
1257   GVariant *_ret;
1258   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1259   if (_ret == NULL)
1260     goto _out;
1261   g_variant_get (_ret,
1262                  "(^as)",
1263                  out_mechanisms);
1264   g_variant_unref (_ret);
1265 _out:
1266   return _ret != NULL;
1267 }
1268
1269 /**
1270  * gsignond_dbus_auth_service_call_query_mechanisms_sync:
1271  * @proxy: A #GSignondDbusAuthServiceProxy.
1272  * @arg_method: Argument to pass with the method invocation.
1273  * @out_mechanisms: (out): Return location for return parameter or %NULL to ignore.
1274  * @cancellable: (allow-none): A #GCancellable or %NULL.
1275  * @error: Return location for error or %NULL.
1276  *
1277  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMechanisms">queryMechanisms()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1278  *
1279  * See gsignond_dbus_auth_service_call_query_mechanisms() for the asynchronous version of this method.
1280  *
1281  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1282  */
1283 gboolean
1284 gsignond_dbus_auth_service_call_query_mechanisms_sync (
1285     GSignondDbusAuthService *proxy,
1286     const gchar *arg_method,
1287     gchar ***out_mechanisms,
1288     GCancellable *cancellable,
1289     GError **error)
1290 {
1291   GVariant *_ret;
1292   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1293     "queryMechanisms",
1294     g_variant_new ("(s)",
1295                    arg_method),
1296     G_DBUS_CALL_FLAGS_NONE,
1297     -1,
1298     cancellable,
1299     error);
1300   if (_ret == NULL)
1301     goto _out;
1302   g_variant_get (_ret,
1303                  "(^as)",
1304                  out_mechanisms);
1305   g_variant_unref (_ret);
1306 _out:
1307   return _ret != NULL;
1308 }
1309
1310 /**
1311  * gsignond_dbus_auth_service_call_query_identities:
1312  * @proxy: A #GSignondDbusAuthServiceProxy.
1313  * @arg_filter: Argument to pass with the method invocation.
1314  * @arg_applicationContext: Argument to pass with the method invocation.
1315  * @cancellable: (allow-none): A #GCancellable or %NULL.
1316  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1317  * @user_data: User data to pass to @callback.
1318  *
1319  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryIdentities">queryIdentities()</link> D-Bus method on @proxy.
1320  * 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.
1321  * You can then call gsignond_dbus_auth_service_call_query_identities_finish() to get the result of the operation.
1322  *
1323  * See gsignond_dbus_auth_service_call_query_identities_sync() for the synchronous, blocking version of this method.
1324  */
1325 void
1326 gsignond_dbus_auth_service_call_query_identities (
1327     GSignondDbusAuthService *proxy,
1328     GVariant *arg_filter,
1329     const gchar *arg_applicationContext,
1330     GCancellable *cancellable,
1331     GAsyncReadyCallback callback,
1332     gpointer user_data)
1333 {
1334   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1335     "queryIdentities",
1336     g_variant_new ("(@a{sv}s)",
1337                    arg_filter,
1338                    arg_applicationContext),
1339     G_DBUS_CALL_FLAGS_NONE,
1340     -1,
1341     cancellable,
1342     callback,
1343     user_data);
1344 }
1345
1346 /**
1347  * gsignond_dbus_auth_service_call_query_identities_finish:
1348  * @proxy: A #GSignondDbusAuthServiceProxy.
1349  * @out_identities: (out): Return location for return parameter or %NULL to ignore.
1350  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_query_identities().
1351  * @error: Return location for error or %NULL.
1352  *
1353  * Finishes an operation started with gsignond_dbus_auth_service_call_query_identities().
1354  *
1355  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1356  */
1357 gboolean
1358 gsignond_dbus_auth_service_call_query_identities_finish (
1359     GSignondDbusAuthService *proxy,
1360     GVariant **out_identities,
1361     GAsyncResult *res,
1362     GError **error)
1363 {
1364   GVariant *_ret;
1365   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1366   if (_ret == NULL)
1367     goto _out;
1368   g_variant_get (_ret,
1369                  "(@aa{sv})",
1370                  out_identities);
1371   g_variant_unref (_ret);
1372 _out:
1373   return _ret != NULL;
1374 }
1375
1376 /**
1377  * gsignond_dbus_auth_service_call_query_identities_sync:
1378  * @proxy: A #GSignondDbusAuthServiceProxy.
1379  * @arg_filter: Argument to pass with the method invocation.
1380  * @arg_applicationContext: Argument to pass with the method invocation.
1381  * @out_identities: (out): Return location for return parameter or %NULL to ignore.
1382  * @cancellable: (allow-none): A #GCancellable or %NULL.
1383  * @error: Return location for error or %NULL.
1384  *
1385  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryIdentities">queryIdentities()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1386  *
1387  * See gsignond_dbus_auth_service_call_query_identities() for the asynchronous version of this method.
1388  *
1389  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1390  */
1391 gboolean
1392 gsignond_dbus_auth_service_call_query_identities_sync (
1393     GSignondDbusAuthService *proxy,
1394     GVariant *arg_filter,
1395     const gchar *arg_applicationContext,
1396     GVariant **out_identities,
1397     GCancellable *cancellable,
1398     GError **error)
1399 {
1400   GVariant *_ret;
1401   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1402     "queryIdentities",
1403     g_variant_new ("(@a{sv}s)",
1404                    arg_filter,
1405                    arg_applicationContext),
1406     G_DBUS_CALL_FLAGS_NONE,
1407     -1,
1408     cancellable,
1409     error);
1410   if (_ret == NULL)
1411     goto _out;
1412   g_variant_get (_ret,
1413                  "(@aa{sv})",
1414                  out_identities);
1415   g_variant_unref (_ret);
1416 _out:
1417   return _ret != NULL;
1418 }
1419
1420 /**
1421  * gsignond_dbus_auth_service_call_clear:
1422  * @proxy: A #GSignondDbusAuthServiceProxy.
1423  * @cancellable: (allow-none): A #GCancellable or %NULL.
1424  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1425  * @user_data: User data to pass to @callback.
1426  *
1427  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.clear">clear()</link> D-Bus method on @proxy.
1428  * 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.
1429  * You can then call gsignond_dbus_auth_service_call_clear_finish() to get the result of the operation.
1430  *
1431  * See gsignond_dbus_auth_service_call_clear_sync() for the synchronous, blocking version of this method.
1432  */
1433 void
1434 gsignond_dbus_auth_service_call_clear (
1435     GSignondDbusAuthService *proxy,
1436     GCancellable *cancellable,
1437     GAsyncReadyCallback callback,
1438     gpointer user_data)
1439 {
1440   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1441     "clear",
1442     g_variant_new ("()"),
1443     G_DBUS_CALL_FLAGS_NONE,
1444     -1,
1445     cancellable,
1446     callback,
1447     user_data);
1448 }
1449
1450 /**
1451  * gsignond_dbus_auth_service_call_clear_finish:
1452  * @proxy: A #GSignondDbusAuthServiceProxy.
1453  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1454  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_clear().
1455  * @error: Return location for error or %NULL.
1456  *
1457  * Finishes an operation started with gsignond_dbus_auth_service_call_clear().
1458  *
1459  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1460  */
1461 gboolean
1462 gsignond_dbus_auth_service_call_clear_finish (
1463     GSignondDbusAuthService *proxy,
1464     gboolean *out_unnamed_arg0,
1465     GAsyncResult *res,
1466     GError **error)
1467 {
1468   GVariant *_ret;
1469   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1470   if (_ret == NULL)
1471     goto _out;
1472   g_variant_get (_ret,
1473                  "(b)",
1474                  out_unnamed_arg0);
1475   g_variant_unref (_ret);
1476 _out:
1477   return _ret != NULL;
1478 }
1479
1480 /**
1481  * gsignond_dbus_auth_service_call_clear_sync:
1482  * @proxy: A #GSignondDbusAuthServiceProxy.
1483  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1484  * @cancellable: (allow-none): A #GCancellable or %NULL.
1485  * @error: Return location for error or %NULL.
1486  *
1487  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.clear">clear()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1488  *
1489  * See gsignond_dbus_auth_service_call_clear() for the asynchronous version of this method.
1490  *
1491  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1492  */
1493 gboolean
1494 gsignond_dbus_auth_service_call_clear_sync (
1495     GSignondDbusAuthService *proxy,
1496     gboolean *out_unnamed_arg0,
1497     GCancellable *cancellable,
1498     GError **error)
1499 {
1500   GVariant *_ret;
1501   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1502     "clear",
1503     g_variant_new ("()"),
1504     G_DBUS_CALL_FLAGS_NONE,
1505     -1,
1506     cancellable,
1507     error);
1508   if (_ret == NULL)
1509     goto _out;
1510   g_variant_get (_ret,
1511                  "(b)",
1512                  out_unnamed_arg0);
1513   g_variant_unref (_ret);
1514 _out:
1515   return _ret != NULL;
1516 }
1517
1518 /**
1519  * gsignond_dbus_auth_service_call_backup_starts:
1520  * @proxy: A #GSignondDbusAuthServiceProxy.
1521  * @cancellable: (allow-none): A #GCancellable or %NULL.
1522  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1523  * @user_data: User data to pass to @callback.
1524  *
1525  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupStarts">backupStarts()</link> D-Bus method on @proxy.
1526  * 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.
1527  * You can then call gsignond_dbus_auth_service_call_backup_starts_finish() to get the result of the operation.
1528  *
1529  * See gsignond_dbus_auth_service_call_backup_starts_sync() for the synchronous, blocking version of this method.
1530  */
1531 void
1532 gsignond_dbus_auth_service_call_backup_starts (
1533     GSignondDbusAuthService *proxy,
1534     GCancellable *cancellable,
1535     GAsyncReadyCallback callback,
1536     gpointer user_data)
1537 {
1538   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1539     "backupStarts",
1540     g_variant_new ("()"),
1541     G_DBUS_CALL_FLAGS_NONE,
1542     -1,
1543     cancellable,
1544     callback,
1545     user_data);
1546 }
1547
1548 /**
1549  * gsignond_dbus_auth_service_call_backup_starts_finish:
1550  * @proxy: A #GSignondDbusAuthServiceProxy.
1551  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1552  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_backup_starts().
1553  * @error: Return location for error or %NULL.
1554  *
1555  * Finishes an operation started with gsignond_dbus_auth_service_call_backup_starts().
1556  *
1557  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1558  */
1559 gboolean
1560 gsignond_dbus_auth_service_call_backup_starts_finish (
1561     GSignondDbusAuthService *proxy,
1562     guchar *out_unnamed_arg0,
1563     GAsyncResult *res,
1564     GError **error)
1565 {
1566   GVariant *_ret;
1567   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1568   if (_ret == NULL)
1569     goto _out;
1570   g_variant_get (_ret,
1571                  "(y)",
1572                  out_unnamed_arg0);
1573   g_variant_unref (_ret);
1574 _out:
1575   return _ret != NULL;
1576 }
1577
1578 /**
1579  * gsignond_dbus_auth_service_call_backup_starts_sync:
1580  * @proxy: A #GSignondDbusAuthServiceProxy.
1581  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1582  * @cancellable: (allow-none): A #GCancellable or %NULL.
1583  * @error: Return location for error or %NULL.
1584  *
1585  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupStarts">backupStarts()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1586  *
1587  * See gsignond_dbus_auth_service_call_backup_starts() for the asynchronous version of this method.
1588  *
1589  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1590  */
1591 gboolean
1592 gsignond_dbus_auth_service_call_backup_starts_sync (
1593     GSignondDbusAuthService *proxy,
1594     guchar *out_unnamed_arg0,
1595     GCancellable *cancellable,
1596     GError **error)
1597 {
1598   GVariant *_ret;
1599   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1600     "backupStarts",
1601     g_variant_new ("()"),
1602     G_DBUS_CALL_FLAGS_NONE,
1603     -1,
1604     cancellable,
1605     error);
1606   if (_ret == NULL)
1607     goto _out;
1608   g_variant_get (_ret,
1609                  "(y)",
1610                  out_unnamed_arg0);
1611   g_variant_unref (_ret);
1612 _out:
1613   return _ret != NULL;
1614 }
1615
1616 /**
1617  * gsignond_dbus_auth_service_call_backup_finished:
1618  * @proxy: A #GSignondDbusAuthServiceProxy.
1619  * @cancellable: (allow-none): A #GCancellable or %NULL.
1620  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1621  * @user_data: User data to pass to @callback.
1622  *
1623  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupFinished">backupFinished()</link> D-Bus method on @proxy.
1624  * 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.
1625  * You can then call gsignond_dbus_auth_service_call_backup_finished_finish() to get the result of the operation.
1626  *
1627  * See gsignond_dbus_auth_service_call_backup_finished_sync() for the synchronous, blocking version of this method.
1628  */
1629 void
1630 gsignond_dbus_auth_service_call_backup_finished (
1631     GSignondDbusAuthService *proxy,
1632     GCancellable *cancellable,
1633     GAsyncReadyCallback callback,
1634     gpointer user_data)
1635 {
1636   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1637     "backupFinished",
1638     g_variant_new ("()"),
1639     G_DBUS_CALL_FLAGS_NONE,
1640     -1,
1641     cancellable,
1642     callback,
1643     user_data);
1644 }
1645
1646 /**
1647  * gsignond_dbus_auth_service_call_backup_finished_finish:
1648  * @proxy: A #GSignondDbusAuthServiceProxy.
1649  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1650  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_backup_finished().
1651  * @error: Return location for error or %NULL.
1652  *
1653  * Finishes an operation started with gsignond_dbus_auth_service_call_backup_finished().
1654  *
1655  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1656  */
1657 gboolean
1658 gsignond_dbus_auth_service_call_backup_finished_finish (
1659     GSignondDbusAuthService *proxy,
1660     guchar *out_unnamed_arg0,
1661     GAsyncResult *res,
1662     GError **error)
1663 {
1664   GVariant *_ret;
1665   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1666   if (_ret == NULL)
1667     goto _out;
1668   g_variant_get (_ret,
1669                  "(y)",
1670                  out_unnamed_arg0);
1671   g_variant_unref (_ret);
1672 _out:
1673   return _ret != NULL;
1674 }
1675
1676 /**
1677  * gsignond_dbus_auth_service_call_backup_finished_sync:
1678  * @proxy: A #GSignondDbusAuthServiceProxy.
1679  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1680  * @cancellable: (allow-none): A #GCancellable or %NULL.
1681  * @error: Return location for error or %NULL.
1682  *
1683  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupFinished">backupFinished()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1684  *
1685  * See gsignond_dbus_auth_service_call_backup_finished() for the asynchronous version of this method.
1686  *
1687  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1688  */
1689 gboolean
1690 gsignond_dbus_auth_service_call_backup_finished_sync (
1691     GSignondDbusAuthService *proxy,
1692     guchar *out_unnamed_arg0,
1693     GCancellable *cancellable,
1694     GError **error)
1695 {
1696   GVariant *_ret;
1697   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1698     "backupFinished",
1699     g_variant_new ("()"),
1700     G_DBUS_CALL_FLAGS_NONE,
1701     -1,
1702     cancellable,
1703     error);
1704   if (_ret == NULL)
1705     goto _out;
1706   g_variant_get (_ret,
1707                  "(y)",
1708                  out_unnamed_arg0);
1709   g_variant_unref (_ret);
1710 _out:
1711   return _ret != NULL;
1712 }
1713
1714 /**
1715  * gsignond_dbus_auth_service_call_restore_starts:
1716  * @proxy: A #GSignondDbusAuthServiceProxy.
1717  * @cancellable: (allow-none): A #GCancellable or %NULL.
1718  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1719  * @user_data: User data to pass to @callback.
1720  *
1721  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreStarts">restoreStarts()</link> D-Bus method on @proxy.
1722  * 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.
1723  * You can then call gsignond_dbus_auth_service_call_restore_starts_finish() to get the result of the operation.
1724  *
1725  * See gsignond_dbus_auth_service_call_restore_starts_sync() for the synchronous, blocking version of this method.
1726  */
1727 void
1728 gsignond_dbus_auth_service_call_restore_starts (
1729     GSignondDbusAuthService *proxy,
1730     GCancellable *cancellable,
1731     GAsyncReadyCallback callback,
1732     gpointer user_data)
1733 {
1734   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1735     "restoreStarts",
1736     g_variant_new ("()"),
1737     G_DBUS_CALL_FLAGS_NONE,
1738     -1,
1739     cancellable,
1740     callback,
1741     user_data);
1742 }
1743
1744 /**
1745  * gsignond_dbus_auth_service_call_restore_starts_finish:
1746  * @proxy: A #GSignondDbusAuthServiceProxy.
1747  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1748  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_restore_starts().
1749  * @error: Return location for error or %NULL.
1750  *
1751  * Finishes an operation started with gsignond_dbus_auth_service_call_restore_starts().
1752  *
1753  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1754  */
1755 gboolean
1756 gsignond_dbus_auth_service_call_restore_starts_finish (
1757     GSignondDbusAuthService *proxy,
1758     guchar *out_unnamed_arg0,
1759     GAsyncResult *res,
1760     GError **error)
1761 {
1762   GVariant *_ret;
1763   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1764   if (_ret == NULL)
1765     goto _out;
1766   g_variant_get (_ret,
1767                  "(y)",
1768                  out_unnamed_arg0);
1769   g_variant_unref (_ret);
1770 _out:
1771   return _ret != NULL;
1772 }
1773
1774 /**
1775  * gsignond_dbus_auth_service_call_restore_starts_sync:
1776  * @proxy: A #GSignondDbusAuthServiceProxy.
1777  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1778  * @cancellable: (allow-none): A #GCancellable or %NULL.
1779  * @error: Return location for error or %NULL.
1780  *
1781  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreStarts">restoreStarts()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1782  *
1783  * See gsignond_dbus_auth_service_call_restore_starts() for the asynchronous version of this method.
1784  *
1785  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1786  */
1787 gboolean
1788 gsignond_dbus_auth_service_call_restore_starts_sync (
1789     GSignondDbusAuthService *proxy,
1790     guchar *out_unnamed_arg0,
1791     GCancellable *cancellable,
1792     GError **error)
1793 {
1794   GVariant *_ret;
1795   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1796     "restoreStarts",
1797     g_variant_new ("()"),
1798     G_DBUS_CALL_FLAGS_NONE,
1799     -1,
1800     cancellable,
1801     error);
1802   if (_ret == NULL)
1803     goto _out;
1804   g_variant_get (_ret,
1805                  "(y)",
1806                  out_unnamed_arg0);
1807   g_variant_unref (_ret);
1808 _out:
1809   return _ret != NULL;
1810 }
1811
1812 /**
1813  * gsignond_dbus_auth_service_call_restore_finished:
1814  * @proxy: A #GSignondDbusAuthServiceProxy.
1815  * @cancellable: (allow-none): A #GCancellable or %NULL.
1816  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1817  * @user_data: User data to pass to @callback.
1818  *
1819  * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreFinished">restoreFinished()</link> D-Bus method on @proxy.
1820  * 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.
1821  * You can then call gsignond_dbus_auth_service_call_restore_finished_finish() to get the result of the operation.
1822  *
1823  * See gsignond_dbus_auth_service_call_restore_finished_sync() for the synchronous, blocking version of this method.
1824  */
1825 void
1826 gsignond_dbus_auth_service_call_restore_finished (
1827     GSignondDbusAuthService *proxy,
1828     GCancellable *cancellable,
1829     GAsyncReadyCallback callback,
1830     gpointer user_data)
1831 {
1832   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1833     "restoreFinished",
1834     g_variant_new ("()"),
1835     G_DBUS_CALL_FLAGS_NONE,
1836     -1,
1837     cancellable,
1838     callback,
1839     user_data);
1840 }
1841
1842 /**
1843  * gsignond_dbus_auth_service_call_restore_finished_finish:
1844  * @proxy: A #GSignondDbusAuthServiceProxy.
1845  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1846  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_call_restore_finished().
1847  * @error: Return location for error or %NULL.
1848  *
1849  * Finishes an operation started with gsignond_dbus_auth_service_call_restore_finished().
1850  *
1851  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1852  */
1853 gboolean
1854 gsignond_dbus_auth_service_call_restore_finished_finish (
1855     GSignondDbusAuthService *proxy,
1856     guchar *out_unnamed_arg0,
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                  "(y)",
1866                  out_unnamed_arg0);
1867   g_variant_unref (_ret);
1868 _out:
1869   return _ret != NULL;
1870 }
1871
1872 /**
1873  * gsignond_dbus_auth_service_call_restore_finished_sync:
1874  * @proxy: A #GSignondDbusAuthServiceProxy.
1875  * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1876  * @cancellable: (allow-none): A #GCancellable or %NULL.
1877  * @error: Return location for error or %NULL.
1878  *
1879  * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreFinished">restoreFinished()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1880  *
1881  * See gsignond_dbus_auth_service_call_restore_finished() for the asynchronous version of this method.
1882  *
1883  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1884  */
1885 gboolean
1886 gsignond_dbus_auth_service_call_restore_finished_sync (
1887     GSignondDbusAuthService *proxy,
1888     guchar *out_unnamed_arg0,
1889     GCancellable *cancellable,
1890     GError **error)
1891 {
1892   GVariant *_ret;
1893   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1894     "restoreFinished",
1895     g_variant_new ("()"),
1896     G_DBUS_CALL_FLAGS_NONE,
1897     -1,
1898     cancellable,
1899     error);
1900   if (_ret == NULL)
1901     goto _out;
1902   g_variant_get (_ret,
1903                  "(y)",
1904                  out_unnamed_arg0);
1905   g_variant_unref (_ret);
1906 _out:
1907   return _ret != NULL;
1908 }
1909
1910 /**
1911  * gsignond_dbus_auth_service_complete_register_new_identity:
1912  * @object: A #GSignondDbusAuthService.
1913  * @invocation: (transfer full): A #GDBusMethodInvocation.
1914  * @objectPath: Parameter to return.
1915  *
1916  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.registerNewIdentity">registerNewIdentity()</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.
1917  *
1918  * This method will free @invocation, you cannot use it afterwards.
1919  */
1920 void
1921 gsignond_dbus_auth_service_complete_register_new_identity (
1922     GSignondDbusAuthService *object,
1923     GDBusMethodInvocation *invocation,
1924     const gchar *objectPath)
1925 {
1926   g_dbus_method_invocation_return_value (invocation,
1927     g_variant_new ("(o)",
1928                    objectPath));
1929 }
1930
1931 /**
1932  * gsignond_dbus_auth_service_complete_get_identity:
1933  * @object: A #GSignondDbusAuthService.
1934  * @invocation: (transfer full): A #GDBusMethodInvocation.
1935  * @objectPath: Parameter to return.
1936  * @identityData: Parameter to return.
1937  *
1938  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.getIdentity">getIdentity()</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.
1939  *
1940  * This method will free @invocation, you cannot use it afterwards.
1941  */
1942 void
1943 gsignond_dbus_auth_service_complete_get_identity (
1944     GSignondDbusAuthService *object,
1945     GDBusMethodInvocation *invocation,
1946     const gchar *objectPath,
1947     GVariant *identityData)
1948 {
1949   g_dbus_method_invocation_return_value (invocation,
1950     g_variant_new ("(o@a{sv})",
1951                    objectPath,
1952                    identityData));
1953 }
1954
1955 /**
1956  * gsignond_dbus_auth_service_complete_query_methods:
1957  * @object: A #GSignondDbusAuthService.
1958  * @invocation: (transfer full): A #GDBusMethodInvocation.
1959  * @authMethods: Parameter to return.
1960  *
1961  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMethods">queryMethods()</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.
1962  *
1963  * This method will free @invocation, you cannot use it afterwards.
1964  */
1965 void
1966 gsignond_dbus_auth_service_complete_query_methods (
1967     GSignondDbusAuthService *object,
1968     GDBusMethodInvocation *invocation,
1969     const gchar *const *authMethods)
1970 {
1971   g_dbus_method_invocation_return_value (invocation,
1972     g_variant_new ("(^as)",
1973                    authMethods));
1974 }
1975
1976 /**
1977  * gsignond_dbus_auth_service_complete_query_mechanisms:
1978  * @object: A #GSignondDbusAuthService.
1979  * @invocation: (transfer full): A #GDBusMethodInvocation.
1980  * @mechanisms: Parameter to return.
1981  *
1982  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryMechanisms">queryMechanisms()</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.
1983  *
1984  * This method will free @invocation, you cannot use it afterwards.
1985  */
1986 void
1987 gsignond_dbus_auth_service_complete_query_mechanisms (
1988     GSignondDbusAuthService *object,
1989     GDBusMethodInvocation *invocation,
1990     const gchar *const *mechanisms)
1991 {
1992   g_dbus_method_invocation_return_value (invocation,
1993     g_variant_new ("(^as)",
1994                    mechanisms));
1995 }
1996
1997 /**
1998  * gsignond_dbus_auth_service_complete_query_identities:
1999  * @object: A #GSignondDbusAuthService.
2000  * @invocation: (transfer full): A #GDBusMethodInvocation.
2001  * @identities: Parameter to return.
2002  *
2003  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.queryIdentities">queryIdentities()</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.
2004  *
2005  * This method will free @invocation, you cannot use it afterwards.
2006  */
2007 void
2008 gsignond_dbus_auth_service_complete_query_identities (
2009     GSignondDbusAuthService *object,
2010     GDBusMethodInvocation *invocation,
2011     GVariant *identities)
2012 {
2013   g_dbus_method_invocation_return_value (invocation,
2014     g_variant_new ("(@aa{sv})",
2015                    identities));
2016 }
2017
2018 /**
2019  * gsignond_dbus_auth_service_complete_clear:
2020  * @object: A #GSignondDbusAuthService.
2021  * @invocation: (transfer full): A #GDBusMethodInvocation.
2022  * @unnamed_arg0: Parameter to return.
2023  *
2024  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.clear">clear()</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.
2025  *
2026  * This method will free @invocation, you cannot use it afterwards.
2027  */
2028 void
2029 gsignond_dbus_auth_service_complete_clear (
2030     GSignondDbusAuthService *object,
2031     GDBusMethodInvocation *invocation,
2032     gboolean unnamed_arg0)
2033 {
2034   g_dbus_method_invocation_return_value (invocation,
2035     g_variant_new ("(b)",
2036                    unnamed_arg0));
2037 }
2038
2039 /**
2040  * gsignond_dbus_auth_service_complete_backup_starts:
2041  * @object: A #GSignondDbusAuthService.
2042  * @invocation: (transfer full): A #GDBusMethodInvocation.
2043  * @unnamed_arg0: Parameter to return.
2044  *
2045  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupStarts">backupStarts()</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.
2046  *
2047  * This method will free @invocation, you cannot use it afterwards.
2048  */
2049 void
2050 gsignond_dbus_auth_service_complete_backup_starts (
2051     GSignondDbusAuthService *object,
2052     GDBusMethodInvocation *invocation,
2053     guchar unnamed_arg0)
2054 {
2055   g_dbus_method_invocation_return_value (invocation,
2056     g_variant_new ("(y)",
2057                    unnamed_arg0));
2058 }
2059
2060 /**
2061  * gsignond_dbus_auth_service_complete_backup_finished:
2062  * @object: A #GSignondDbusAuthService.
2063  * @invocation: (transfer full): A #GDBusMethodInvocation.
2064  * @unnamed_arg0: Parameter to return.
2065  *
2066  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.backupFinished">backupFinished()</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.
2067  *
2068  * This method will free @invocation, you cannot use it afterwards.
2069  */
2070 void
2071 gsignond_dbus_auth_service_complete_backup_finished (
2072     GSignondDbusAuthService *object,
2073     GDBusMethodInvocation *invocation,
2074     guchar unnamed_arg0)
2075 {
2076   g_dbus_method_invocation_return_value (invocation,
2077     g_variant_new ("(y)",
2078                    unnamed_arg0));
2079 }
2080
2081 /**
2082  * gsignond_dbus_auth_service_complete_restore_starts:
2083  * @object: A #GSignondDbusAuthService.
2084  * @invocation: (transfer full): A #GDBusMethodInvocation.
2085  * @unnamed_arg0: Parameter to return.
2086  *
2087  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreStarts">restoreStarts()</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.
2088  *
2089  * This method will free @invocation, you cannot use it afterwards.
2090  */
2091 void
2092 gsignond_dbus_auth_service_complete_restore_starts (
2093     GSignondDbusAuthService *object,
2094     GDBusMethodInvocation *invocation,
2095     guchar unnamed_arg0)
2096 {
2097   g_dbus_method_invocation_return_value (invocation,
2098     g_variant_new ("(y)",
2099                    unnamed_arg0));
2100 }
2101
2102 /**
2103  * gsignond_dbus_auth_service_complete_restore_finished:
2104  * @object: A #GSignondDbusAuthService.
2105  * @invocation: (transfer full): A #GDBusMethodInvocation.
2106  * @unnamed_arg0: Parameter to return.
2107  *
2108  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-AuthService.restoreFinished">restoreFinished()</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.
2109  *
2110  * This method will free @invocation, you cannot use it afterwards.
2111  */
2112 void
2113 gsignond_dbus_auth_service_complete_restore_finished (
2114     GSignondDbusAuthService *object,
2115     GDBusMethodInvocation *invocation,
2116     guchar unnamed_arg0)
2117 {
2118   g_dbus_method_invocation_return_value (invocation,
2119     g_variant_new ("(y)",
2120                    unnamed_arg0));
2121 }
2122
2123 /* ------------------------------------------------------------------------ */
2124
2125 /**
2126  * GSignondDbusAuthServiceProxy:
2127  *
2128  * The #GSignondDbusAuthServiceProxy structure contains only private data and should only be accessed using the provided API.
2129  */
2130
2131 /**
2132  * GSignondDbusAuthServiceProxyClass:
2133  * @parent_class: The parent class.
2134  *
2135  * Class structure for #GSignondDbusAuthServiceProxy.
2136  */
2137
2138 struct _GSignondDbusAuthServiceProxyPrivate
2139 {
2140   GData *qdata;
2141 };
2142
2143 static void gsignond_dbus_auth_service_proxy_iface_init (GSignondDbusAuthServiceIface *iface);
2144
2145 G_DEFINE_TYPE_WITH_CODE (GSignondDbusAuthServiceProxy, gsignond_dbus_auth_service_proxy, G_TYPE_DBUS_PROXY,
2146                          G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_AUTH_SERVICE, gsignond_dbus_auth_service_proxy_iface_init));
2147
2148 static void
2149 gsignond_dbus_auth_service_proxy_finalize (GObject *object)
2150 {
2151   GSignondDbusAuthServiceProxy *proxy = GSIGNOND_DBUS_AUTH_SERVICE_PROXY (object);
2152   g_datalist_clear (&proxy->priv->qdata);
2153   G_OBJECT_CLASS (gsignond_dbus_auth_service_proxy_parent_class)->finalize (object);
2154 }
2155
2156 static void
2157 gsignond_dbus_auth_service_proxy_get_property (GObject      *object,
2158   guint         prop_id,
2159   GValue       *value,
2160   GParamSpec   *pspec)
2161 {
2162 }
2163
2164 static void
2165 gsignond_dbus_auth_service_proxy_set_property (GObject      *object,
2166   guint         prop_id,
2167   const GValue *value,
2168   GParamSpec   *pspec)
2169 {
2170 }
2171
2172 static void
2173 gsignond_dbus_auth_service_proxy_g_signal (GDBusProxy *proxy,
2174   const gchar *sender_name,
2175   const gchar *signal_name,
2176   GVariant *parameters)
2177 {
2178   _ExtendedGDBusSignalInfo *info;
2179   GVariantIter iter;
2180   GVariant *child;
2181   GValue *paramv;
2182   guint num_params;
2183   guint n;
2184   guint signal_id;
2185   info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct, signal_name);
2186   if (info == NULL)
2187     return;
2188   num_params = g_variant_n_children (parameters);
2189   paramv = g_new0 (GValue, num_params + 1);
2190   g_value_init (&paramv[0], GSIGNOND_DBUS_TYPE_AUTH_SERVICE);
2191   g_value_set_object (&paramv[0], proxy);
2192   g_variant_iter_init (&iter, parameters);
2193   n = 1;
2194   while ((child = g_variant_iter_next_value (&iter)) != NULL)
2195     {
2196       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2197       if (arg_info->use_gvariant)
2198         {
2199           g_value_init (&paramv[n], G_TYPE_VARIANT);
2200           g_value_set_variant (&paramv[n], child);
2201           n++;
2202         }
2203       else
2204         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2205       g_variant_unref (child);
2206     }
2207   signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_AUTH_SERVICE);
2208   g_signal_emitv (paramv, signal_id, 0, NULL);
2209   for (n = 0; n < num_params + 1; n++)
2210     g_value_unset (&paramv[n]);
2211   g_free (paramv);
2212 }
2213
2214 static void
2215 gsignond_dbus_auth_service_proxy_g_properties_changed (GDBusProxy *_proxy,
2216   GVariant *changed_properties,
2217   const gchar *const *invalidated_properties)
2218 {
2219   GSignondDbusAuthServiceProxy *proxy = GSIGNOND_DBUS_AUTH_SERVICE_PROXY (_proxy);
2220   guint n;
2221   const gchar *key;
2222   GVariantIter *iter;
2223   _ExtendedGDBusPropertyInfo *info;
2224   g_variant_get (changed_properties, "a{sv}", &iter);
2225   while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2226     {
2227       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct, key);
2228       g_datalist_remove_data (&proxy->priv->qdata, key);
2229       if (info != NULL)
2230         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2231     }
2232   g_variant_iter_free (iter);
2233   for (n = 0; invalidated_properties[n] != NULL; n++)
2234     {
2235       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct, invalidated_properties[n]);
2236       g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2237       if (info != NULL)
2238         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2239     }
2240 }
2241
2242 static void
2243 gsignond_dbus_auth_service_proxy_init (GSignondDbusAuthServiceProxy *proxy)
2244 {
2245   proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GSIGNOND_DBUS_TYPE_AUTH_SERVICE_PROXY, GSignondDbusAuthServiceProxyPrivate);
2246   g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), gsignond_dbus_auth_service_interface_info ());
2247 }
2248
2249 static void
2250 gsignond_dbus_auth_service_proxy_class_init (GSignondDbusAuthServiceProxyClass *klass)
2251 {
2252   GObjectClass *gobject_class;
2253   GDBusProxyClass *proxy_class;
2254
2255   g_type_class_add_private (klass, sizeof (GSignondDbusAuthServiceProxyPrivate));
2256
2257   gobject_class = G_OBJECT_CLASS (klass);
2258   gobject_class->finalize     = gsignond_dbus_auth_service_proxy_finalize;
2259   gobject_class->get_property = gsignond_dbus_auth_service_proxy_get_property;
2260   gobject_class->set_property = gsignond_dbus_auth_service_proxy_set_property;
2261
2262   proxy_class = G_DBUS_PROXY_CLASS (klass);
2263   proxy_class->g_signal = gsignond_dbus_auth_service_proxy_g_signal;
2264   proxy_class->g_properties_changed = gsignond_dbus_auth_service_proxy_g_properties_changed;
2265
2266 }
2267
2268 static void
2269 gsignond_dbus_auth_service_proxy_iface_init (GSignondDbusAuthServiceIface *iface)
2270 {
2271 }
2272
2273 /**
2274  * gsignond_dbus_auth_service_proxy_new:
2275  * @connection: A #GDBusConnection.
2276  * @flags: Flags from the #GDBusProxyFlags enumeration.
2277  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2278  * @object_path: An object path.
2279  * @cancellable: (allow-none): A #GCancellable or %NULL.
2280  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2281  * @user_data: User data to pass to @callback.
2282  *
2283  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-AuthService.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.AuthService</link>. See g_dbus_proxy_new() for more details.
2284  *
2285  * 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.
2286  * You can then call gsignond_dbus_auth_service_proxy_new_finish() to get the result of the operation.
2287  *
2288  * See gsignond_dbus_auth_service_proxy_new_sync() for the synchronous, blocking version of this constructor.
2289  */
2290 void
2291 gsignond_dbus_auth_service_proxy_new (
2292     GDBusConnection     *connection,
2293     GDBusProxyFlags      flags,
2294     const gchar         *name,
2295     const gchar         *object_path,
2296     GCancellable        *cancellable,
2297     GAsyncReadyCallback  callback,
2298     gpointer             user_data)
2299 {
2300   g_async_initable_new_async (GSIGNOND_DBUS_TYPE_AUTH_SERVICE_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.AuthService", NULL);
2301 }
2302
2303 /**
2304  * gsignond_dbus_auth_service_proxy_new_finish:
2305  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_proxy_new().
2306  * @error: Return location for error or %NULL
2307  *
2308  * Finishes an operation started with gsignond_dbus_auth_service_proxy_new().
2309  *
2310  * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2311  */
2312 GSignondDbusAuthService *
2313 gsignond_dbus_auth_service_proxy_new_finish (
2314     GAsyncResult        *res,
2315     GError             **error)
2316 {
2317   GObject *ret;
2318   GObject *source_object;
2319   source_object = g_async_result_get_source_object (res);
2320   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2321   g_object_unref (source_object);
2322   if (ret != NULL)
2323     return GSIGNOND_DBUS_AUTH_SERVICE (ret);
2324   else
2325     return NULL;
2326 }
2327
2328 /**
2329  * gsignond_dbus_auth_service_proxy_new_sync:
2330  * @connection: A #GDBusConnection.
2331  * @flags: Flags from the #GDBusProxyFlags enumeration.
2332  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2333  * @object_path: An object path.
2334  * @cancellable: (allow-none): A #GCancellable or %NULL.
2335  * @error: Return location for error or %NULL
2336  *
2337  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-AuthService.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.AuthService</link>. See g_dbus_proxy_new_sync() for more details.
2338  *
2339  * The calling thread is blocked until a reply is received.
2340  *
2341  * See gsignond_dbus_auth_service_proxy_new() for the asynchronous version of this constructor.
2342  *
2343  * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2344  */
2345 GSignondDbusAuthService *
2346 gsignond_dbus_auth_service_proxy_new_sync (
2347     GDBusConnection     *connection,
2348     GDBusProxyFlags      flags,
2349     const gchar         *name,
2350     const gchar         *object_path,
2351     GCancellable        *cancellable,
2352     GError             **error)
2353 {
2354   GInitable *ret;
2355   ret = g_initable_new (GSIGNOND_DBUS_TYPE_AUTH_SERVICE_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.AuthService", NULL);
2356   if (ret != NULL)
2357     return GSIGNOND_DBUS_AUTH_SERVICE (ret);
2358   else
2359     return NULL;
2360 }
2361
2362
2363 /**
2364  * gsignond_dbus_auth_service_proxy_new_for_bus:
2365  * @bus_type: A #GBusType.
2366  * @flags: Flags from the #GDBusProxyFlags enumeration.
2367  * @name: A bus name (well-known or unique).
2368  * @object_path: An object path.
2369  * @cancellable: (allow-none): A #GCancellable or %NULL.
2370  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2371  * @user_data: User data to pass to @callback.
2372  *
2373  * Like gsignond_dbus_auth_service_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
2374  *
2375  * 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.
2376  * You can then call gsignond_dbus_auth_service_proxy_new_for_bus_finish() to get the result of the operation.
2377  *
2378  * See gsignond_dbus_auth_service_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2379  */
2380 void
2381 gsignond_dbus_auth_service_proxy_new_for_bus (
2382     GBusType             bus_type,
2383     GDBusProxyFlags      flags,
2384     const gchar         *name,
2385     const gchar         *object_path,
2386     GCancellable        *cancellable,
2387     GAsyncReadyCallback  callback,
2388     gpointer             user_data)
2389 {
2390   g_async_initable_new_async (GSIGNOND_DBUS_TYPE_AUTH_SERVICE_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.AuthService", NULL);
2391 }
2392
2393 /**
2394  * gsignond_dbus_auth_service_proxy_new_for_bus_finish:
2395  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_auth_service_proxy_new_for_bus().
2396  * @error: Return location for error or %NULL
2397  *
2398  * Finishes an operation started with gsignond_dbus_auth_service_proxy_new_for_bus().
2399  *
2400  * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2401  */
2402 GSignondDbusAuthService *
2403 gsignond_dbus_auth_service_proxy_new_for_bus_finish (
2404     GAsyncResult        *res,
2405     GError             **error)
2406 {
2407   GObject *ret;
2408   GObject *source_object;
2409   source_object = g_async_result_get_source_object (res);
2410   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2411   g_object_unref (source_object);
2412   if (ret != NULL)
2413     return GSIGNOND_DBUS_AUTH_SERVICE (ret);
2414   else
2415     return NULL;
2416 }
2417
2418 /**
2419  * gsignond_dbus_auth_service_proxy_new_for_bus_sync:
2420  * @bus_type: A #GBusType.
2421  * @flags: Flags from the #GDBusProxyFlags enumeration.
2422  * @name: A bus name (well-known or unique).
2423  * @object_path: An object path.
2424  * @cancellable: (allow-none): A #GCancellable or %NULL.
2425  * @error: Return location for error or %NULL
2426  *
2427  * Like gsignond_dbus_auth_service_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2428  *
2429  * The calling thread is blocked until a reply is received.
2430  *
2431  * See gsignond_dbus_auth_service_proxy_new_for_bus() for the asynchronous version of this constructor.
2432  *
2433  * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2434  */
2435 GSignondDbusAuthService *
2436 gsignond_dbus_auth_service_proxy_new_for_bus_sync (
2437     GBusType             bus_type,
2438     GDBusProxyFlags      flags,
2439     const gchar         *name,
2440     const gchar         *object_path,
2441     GCancellable        *cancellable,
2442     GError             **error)
2443 {
2444   GInitable *ret;
2445   ret = g_initable_new (GSIGNOND_DBUS_TYPE_AUTH_SERVICE_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.AuthService", NULL);
2446   if (ret != NULL)
2447     return GSIGNOND_DBUS_AUTH_SERVICE (ret);
2448   else
2449     return NULL;
2450 }
2451
2452
2453 /* ------------------------------------------------------------------------ */
2454
2455 /**
2456  * GSignondDbusAuthServiceSkeleton:
2457  *
2458  * The #GSignondDbusAuthServiceSkeleton structure contains only private data and should only be accessed using the provided API.
2459  */
2460
2461 /**
2462  * GSignondDbusAuthServiceSkeletonClass:
2463  * @parent_class: The parent class.
2464  *
2465  * Class structure for #GSignondDbusAuthServiceSkeleton.
2466  */
2467
2468 struct _GSignondDbusAuthServiceSkeletonPrivate
2469 {
2470   GValue *properties;
2471   GList *changed_properties;
2472   GSource *changed_properties_idle_source;
2473   GMainContext *context;
2474   GMutex lock;
2475 };
2476
2477 static void
2478 _gsignond_dbus_auth_service_skeleton_handle_method_call (
2479   GDBusConnection *connection,
2480   const gchar *sender,
2481   const gchar *object_path,
2482   const gchar *interface_name,
2483   const gchar *method_name,
2484   GVariant *parameters,
2485   GDBusMethodInvocation *invocation,
2486   gpointer user_data)
2487 {
2488   GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (user_data);
2489   _ExtendedGDBusMethodInfo *info;
2490   GVariantIter iter;
2491   GVariant *child;
2492   GValue *paramv;
2493   guint num_params;
2494   guint num_extra;
2495   guint n;
2496   guint signal_id;
2497   GValue return_value = G_VALUE_INIT;
2498   info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2499   g_assert (info != NULL);
2500   num_params = g_variant_n_children (parameters);
2501   num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
2502   n = 0;
2503   g_value_init (&paramv[n], GSIGNOND_DBUS_TYPE_AUTH_SERVICE);
2504   g_value_set_object (&paramv[n++], skeleton);
2505   g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2506   g_value_set_object (&paramv[n++], invocation);
2507   if (info->pass_fdlist)
2508     {
2509 #ifdef G_OS_UNIX
2510       g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
2511       g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2512 #else
2513       g_assert_not_reached ();
2514 #endif
2515     }
2516   g_variant_iter_init (&iter, parameters);
2517   while ((child = g_variant_iter_next_value (&iter)) != NULL)
2518     {
2519       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2520       if (arg_info->use_gvariant)
2521         {
2522           g_value_init (&paramv[n], G_TYPE_VARIANT);
2523           g_value_set_variant (&paramv[n], child);
2524           n++;
2525         }
2526       else
2527         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2528       g_variant_unref (child);
2529     }
2530   signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_AUTH_SERVICE);
2531   g_value_init (&return_value, G_TYPE_BOOLEAN);
2532   g_signal_emitv (paramv, signal_id, 0, &return_value);
2533   if (!g_value_get_boolean (&return_value))
2534     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);
2535   g_value_unset (&return_value);
2536   for (n = 0; n < num_params + num_extra; n++)
2537     g_value_unset (&paramv[n]);
2538   g_free (paramv);
2539 }
2540
2541 static GVariant *
2542 _gsignond_dbus_auth_service_skeleton_handle_get_property (
2543   GDBusConnection *connection,
2544   const gchar *sender,
2545   const gchar *object_path,
2546   const gchar *interface_name,
2547   const gchar *property_name,
2548   GError **error,
2549   gpointer user_data)
2550 {
2551   GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (user_data);
2552   GValue value = G_VALUE_INIT;
2553   GParamSpec *pspec;
2554   _ExtendedGDBusPropertyInfo *info;
2555   GVariant *ret;
2556   ret = NULL;
2557   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct, property_name);
2558   g_assert (info != NULL);
2559   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2560   if (pspec == NULL)
2561     {
2562       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2563     }
2564   else
2565     {
2566       g_value_init (&value, pspec->value_type);
2567       g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2568       ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2569       g_value_unset (&value);
2570     }
2571   return ret;
2572 }
2573
2574 static gboolean
2575 _gsignond_dbus_auth_service_skeleton_handle_set_property (
2576   GDBusConnection *connection,
2577   const gchar *sender,
2578   const gchar *object_path,
2579   const gchar *interface_name,
2580   const gchar *property_name,
2581   GVariant *variant,
2582   GError **error,
2583   gpointer user_data)
2584 {
2585   GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (user_data);
2586   GValue value = G_VALUE_INIT;
2587   GParamSpec *pspec;
2588   _ExtendedGDBusPropertyInfo *info;
2589   gboolean ret;
2590   ret = FALSE;
2591   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct, property_name);
2592   g_assert (info != NULL);
2593   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2594   if (pspec == NULL)
2595     {
2596       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2597     }
2598   else
2599     {
2600       if (info->use_gvariant)
2601         g_value_set_variant (&value, variant);
2602       else
2603         g_dbus_gvariant_to_gvalue (variant, &value);
2604       g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2605       g_value_unset (&value);
2606       ret = TRUE;
2607     }
2608   return ret;
2609 }
2610
2611 static const GDBusInterfaceVTable _gsignond_dbus_auth_service_skeleton_vtable =
2612 {
2613   _gsignond_dbus_auth_service_skeleton_handle_method_call,
2614   _gsignond_dbus_auth_service_skeleton_handle_get_property,
2615   _gsignond_dbus_auth_service_skeleton_handle_set_property
2616 };
2617
2618 static GDBusInterfaceInfo *
2619 gsignond_dbus_auth_service_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
2620 {
2621   return gsignond_dbus_auth_service_interface_info ();
2622 }
2623
2624 static GDBusInterfaceVTable *
2625 gsignond_dbus_auth_service_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
2626 {
2627   return (GDBusInterfaceVTable *) &_gsignond_dbus_auth_service_skeleton_vtable;
2628 }
2629
2630 static GVariant *
2631 gsignond_dbus_auth_service_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2632 {
2633   GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (_skeleton);
2634
2635   GVariantBuilder builder;
2636   guint n;
2637   g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2638   if (_gsignond_dbus_auth_service_interface_info.parent_struct.properties == NULL)
2639     goto out;
2640   for (n = 0; _gsignond_dbus_auth_service_interface_info.parent_struct.properties[n] != NULL; n++)
2641     {
2642       GDBusPropertyInfo *info = _gsignond_dbus_auth_service_interface_info.parent_struct.properties[n];
2643       if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2644         {
2645           GVariant *value;
2646           value = _gsignond_dbus_auth_service_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.AuthService", info->name, NULL, skeleton);
2647           if (value != NULL)
2648             {
2649               g_variant_take_ref (value);
2650               g_variant_builder_add (&builder, "{sv}", info->name, value);
2651               g_variant_unref (value);
2652             }
2653         }
2654     }
2655 out:
2656   return g_variant_builder_end (&builder);
2657 }
2658
2659 static void
2660 gsignond_dbus_auth_service_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
2661 {
2662 }
2663
2664 static void gsignond_dbus_auth_service_skeleton_iface_init (GSignondDbusAuthServiceIface *iface);
2665 G_DEFINE_TYPE_WITH_CODE (GSignondDbusAuthServiceSkeleton, gsignond_dbus_auth_service_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2666                          G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_AUTH_SERVICE, gsignond_dbus_auth_service_skeleton_iface_init));
2667
2668 static void
2669 gsignond_dbus_auth_service_skeleton_finalize (GObject *object)
2670 {
2671   GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (object);
2672   g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
2673   if (skeleton->priv->changed_properties_idle_source != NULL)
2674     g_source_destroy (skeleton->priv->changed_properties_idle_source);
2675   g_main_context_unref (skeleton->priv->context);
2676   g_mutex_clear (&skeleton->priv->lock);
2677   G_OBJECT_CLASS (gsignond_dbus_auth_service_skeleton_parent_class)->finalize (object);
2678 }
2679
2680 static void
2681 gsignond_dbus_auth_service_skeleton_init (GSignondDbusAuthServiceSkeleton *skeleton)
2682 {
2683   skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GSIGNOND_DBUS_TYPE_AUTH_SERVICE_SKELETON, GSignondDbusAuthServiceSkeletonPrivate);
2684   g_mutex_init (&skeleton->priv->lock);
2685   skeleton->priv->context = g_main_context_ref_thread_default ();
2686 }
2687
2688 static void
2689 gsignond_dbus_auth_service_skeleton_class_init (GSignondDbusAuthServiceSkeletonClass *klass)
2690 {
2691   GObjectClass *gobject_class;
2692   GDBusInterfaceSkeletonClass *skeleton_class;
2693
2694   g_type_class_add_private (klass, sizeof (GSignondDbusAuthServiceSkeletonPrivate));
2695
2696   gobject_class = G_OBJECT_CLASS (klass);
2697   gobject_class->finalize = gsignond_dbus_auth_service_skeleton_finalize;
2698
2699   skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
2700   skeleton_class->get_info = gsignond_dbus_auth_service_skeleton_dbus_interface_get_info;
2701   skeleton_class->get_properties = gsignond_dbus_auth_service_skeleton_dbus_interface_get_properties;
2702   skeleton_class->flush = gsignond_dbus_auth_service_skeleton_dbus_interface_flush;
2703   skeleton_class->get_vtable = gsignond_dbus_auth_service_skeleton_dbus_interface_get_vtable;
2704 }
2705
2706 static void
2707 gsignond_dbus_auth_service_skeleton_iface_init (GSignondDbusAuthServiceIface *iface)
2708 {
2709 }
2710
2711 /**
2712  * gsignond_dbus_auth_service_skeleton_new:
2713  *
2714  * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-AuthService.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.AuthService</link>.
2715  *
2716  * Returns: (transfer full) (type GSignondDbusAuthServiceSkeleton): The skeleton object.
2717  */
2718 GSignondDbusAuthService *
2719 gsignond_dbus_auth_service_skeleton_new (void)
2720 {
2721   return GSIGNOND_DBUS_AUTH_SERVICE (g_object_new (GSIGNOND_DBUS_TYPE_AUTH_SERVICE_SKELETON, NULL));
2722 }
2723