2 * Generated by gdbus-codegen 2.34.1. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
11 #include "gsignond-dbus-auth-service-gen.h"
15 # include <gio/gunixfdlist.h>
20 GDBusArgInfo parent_struct;
21 gboolean use_gvariant;
22 } _ExtendedGDBusArgInfo;
26 GDBusMethodInfo parent_struct;
27 const gchar *signal_name;
29 } _ExtendedGDBusMethodInfo;
33 GDBusSignalInfo parent_struct;
34 const gchar *signal_name;
35 } _ExtendedGDBusSignalInfo;
39 GDBusPropertyInfo parent_struct;
40 const gchar *hyphen_name;
41 gboolean use_gvariant;
42 } _ExtendedGDBusPropertyInfo;
46 GDBusInterfaceInfo parent_struct;
47 const gchar *hyphen_name;
48 } _ExtendedGDBusInterfaceInfo;
52 const _ExtendedGDBusPropertyInfo *info;
54 GValue orig_value; /* the value before the change */
58 _changed_property_free (ChangedProperty *data)
60 g_value_unset (&data->orig_value);
65 _g_strv_equal0 (gchar **a, gchar **b)
69 if (a == NULL && b == NULL)
74 if (a == NULL || b == NULL)
76 if (g_strv_length (a) != g_strv_length (b))
78 for (n = 0; a[n] != NULL; n++)
79 if (g_strcmp0 (a[n], b[n]) != 0)
87 _g_variant_equal0 (GVariant *a, GVariant *b)
90 if (a == NULL && b == NULL)
95 if (a == NULL || b == NULL)
97 ret = g_variant_equal (a, b);
102 G_GNUC_UNUSED static gboolean
103 _g_value_equal (const GValue *a, const GValue *b)
105 gboolean ret = FALSE;
106 g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
107 switch (G_VALUE_TYPE (a))
110 ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
113 ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
116 ret = (g_value_get_int (a) == g_value_get_int (b));
119 ret = (g_value_get_uint (a) == g_value_get_uint (b));
122 ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
125 ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
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;
136 ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
139 ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
142 if (G_VALUE_TYPE (a) == G_TYPE_STRV)
143 ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
145 g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
151 /* ------------------------------------------------------------------------
152 * Code for interface com.google.code.AccountsSSO.gSingleSignOn.AuthService
153 * ------------------------------------------------------------------------
157 * SECTION:GSignondDbusAuthService
158 * @title: GSignondDbusAuthService
159 * @short_description: Generated C code for the com.google.code.AccountsSSO.gSingleSignOn.AuthService D-Bus interface
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.
164 /* ---- Introspection data for com.google.code.AccountsSSO.gSingleSignOn.AuthService ---- */
166 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_register_new_identity_IN_ARG_applicationContext =
170 (gchar *) "applicationContext",
177 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_register_new_identity_IN_ARG_pointers[] =
179 &_gsignond_dbus_auth_service_method_info_register_new_identity_IN_ARG_applicationContext,
183 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_register_new_identity_OUT_ARG_objectPath =
187 (gchar *) "objectPath",
194 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_register_new_identity_OUT_ARG_pointers[] =
196 &_gsignond_dbus_auth_service_method_info_register_new_identity_OUT_ARG_objectPath,
200 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_register_new_identity =
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,
209 "handle-register-new-identity",
213 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_id =
224 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_applicationContext =
228 (gchar *) "applicationContext",
235 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_pointers[] =
237 &_gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_id,
238 &_gsignond_dbus_auth_service_method_info_get_identity_IN_ARG_applicationContext,
242 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_objectPath =
246 (gchar *) "objectPath",
253 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_identityData =
257 (gchar *) "identityData",
264 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_pointers[] =
266 &_gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_objectPath,
267 &_gsignond_dbus_auth_service_method_info_get_identity_OUT_ARG_identityData,
271 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_get_identity =
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,
280 "handle-get-identity",
284 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_authMethods =
288 (gchar *) "authMethods",
295 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_pointers[] =
297 &_gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_authMethods,
301 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_query_methods =
305 (gchar *) "queryMethods",
307 (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_query_methods_OUT_ARG_pointers,
310 "handle-query-methods",
314 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_mechanisms_IN_ARG_method =
325 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_mechanisms_IN_ARG_pointers[] =
327 &_gsignond_dbus_auth_service_method_info_query_mechanisms_IN_ARG_method,
331 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_mechanisms_OUT_ARG_mechanisms =
335 (gchar *) "mechanisms",
342 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_mechanisms_OUT_ARG_pointers[] =
344 &_gsignond_dbus_auth_service_method_info_query_mechanisms_OUT_ARG_mechanisms,
348 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_query_mechanisms =
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,
357 "handle-query-mechanisms",
361 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_filter =
372 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_applicationContext =
376 (gchar *) "applicationContext",
383 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_pointers[] =
385 &_gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_filter,
386 &_gsignond_dbus_auth_service_method_info_query_identities_IN_ARG_applicationContext,
390 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_query_identities_OUT_ARG_identities =
394 (gchar *) "identities",
401 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_query_identities_OUT_ARG_pointers[] =
403 &_gsignond_dbus_auth_service_method_info_query_identities_OUT_ARG_identities,
407 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_query_identities =
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,
416 "handle-query-identities",
420 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_clear_OUT_ARG_unnamed_arg0 =
424 (gchar *) "unnamed_arg0",
431 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_clear_OUT_ARG_pointers[] =
433 &_gsignond_dbus_auth_service_method_info_clear_OUT_ARG_unnamed_arg0,
437 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_clear =
443 (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_clear_OUT_ARG_pointers,
450 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_unnamed_arg0 =
454 (gchar *) "unnamed_arg0",
461 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_pointers[] =
463 &_gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_unnamed_arg0,
467 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_backup_starts =
471 (gchar *) "backupStarts",
473 (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_backup_starts_OUT_ARG_pointers,
476 "handle-backup-starts",
480 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_unnamed_arg0 =
484 (gchar *) "unnamed_arg0",
491 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_pointers[] =
493 &_gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_unnamed_arg0,
497 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_backup_finished =
501 (gchar *) "backupFinished",
503 (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_backup_finished_OUT_ARG_pointers,
506 "handle-backup-finished",
510 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_unnamed_arg0 =
514 (gchar *) "unnamed_arg0",
521 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_pointers[] =
523 &_gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_unnamed_arg0,
527 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_restore_starts =
531 (gchar *) "restoreStarts",
533 (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_restore_starts_OUT_ARG_pointers,
536 "handle-restore-starts",
540 static const _ExtendedGDBusArgInfo _gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_unnamed_arg0 =
544 (gchar *) "unnamed_arg0",
551 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_pointers[] =
553 &_gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_unnamed_arg0,
557 static const _ExtendedGDBusMethodInfo _gsignond_dbus_auth_service_method_info_restore_finished =
561 (gchar *) "restoreFinished",
563 (GDBusArgInfo **) &_gsignond_dbus_auth_service_method_info_restore_finished_OUT_ARG_pointers,
566 "handle-restore-finished",
570 static const _ExtendedGDBusMethodInfo * const _gsignond_dbus_auth_service_method_info_pointers[] =
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,
585 static const _ExtendedGDBusInterfaceInfo _gsignond_dbus_auth_service_interface_info =
589 (gchar *) "com.google.code.AccountsSSO.gSingleSignOn.AuthService",
590 (GDBusMethodInfo **) &_gsignond_dbus_auth_service_method_info_pointers,
600 * gsignond_dbus_auth_service_interface_info:
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.
604 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
607 gsignond_dbus_auth_service_interface_info (void)
609 return (GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct;
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.
617 * Overrides all #GObject properties in the #GSignondDbusAuthService interface for a concrete class.
618 * The properties are overridden in the order they are defined.
620 * Returns: The last property id.
623 gsignond_dbus_auth_service_override_properties (GObjectClass *klass, guint property_id_begin)
625 return property_id_begin - 1;
631 * GSignondDbusAuthService:
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>.
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.
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>.
654 gsignond_dbus_auth_service_default_init (GSignondDbusAuthServiceIface *iface)
656 /* GObject signals for incoming D-Bus method calls: */
658 * GSignondDbusAuthService::handle-register-new-identity:
659 * @object: A #GSignondDbusAuthService.
660 * @invocation: A #GDBusMethodInvocation.
661 * @arg_applicationContext: Argument passed by remote caller.
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.
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.
667 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
669 g_signal_new ("handle-register-new-identity",
670 G_TYPE_FROM_INTERFACE (iface),
672 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_register_new_identity),
673 g_signal_accumulator_true_handled,
675 g_cclosure_marshal_generic,
678 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
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.
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.
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.
691 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
693 g_signal_new ("handle-get-identity",
694 G_TYPE_FROM_INTERFACE (iface),
696 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_get_identity),
697 g_signal_accumulator_true_handled,
699 g_cclosure_marshal_generic,
702 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING);
705 * GSignondDbusAuthService::handle-query-methods:
706 * @object: A #GSignondDbusAuthService.
707 * @invocation: A #GDBusMethodInvocation.
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.
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.
713 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
715 g_signal_new ("handle-query-methods",
716 G_TYPE_FROM_INTERFACE (iface),
718 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_query_methods),
719 g_signal_accumulator_true_handled,
721 g_cclosure_marshal_generic,
724 G_TYPE_DBUS_METHOD_INVOCATION);
727 * GSignondDbusAuthService::handle-query-mechanisms:
728 * @object: A #GSignondDbusAuthService.
729 * @invocation: A #GDBusMethodInvocation.
730 * @arg_method: Argument passed by remote caller.
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.
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.
736 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
738 g_signal_new ("handle-query-mechanisms",
739 G_TYPE_FROM_INTERFACE (iface),
741 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_query_mechanisms),
742 g_signal_accumulator_true_handled,
744 g_cclosure_marshal_generic,
747 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
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.
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.
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.
760 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
762 g_signal_new ("handle-query-identities",
763 G_TYPE_FROM_INTERFACE (iface),
765 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_query_identities),
766 g_signal_accumulator_true_handled,
768 g_cclosure_marshal_generic,
771 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_STRING);
774 * GSignondDbusAuthService::handle-clear:
775 * @object: A #GSignondDbusAuthService.
776 * @invocation: A #GDBusMethodInvocation.
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.
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.
782 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
784 g_signal_new ("handle-clear",
785 G_TYPE_FROM_INTERFACE (iface),
787 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_clear),
788 g_signal_accumulator_true_handled,
790 g_cclosure_marshal_generic,
793 G_TYPE_DBUS_METHOD_INVOCATION);
796 * GSignondDbusAuthService::handle-backup-starts:
797 * @object: A #GSignondDbusAuthService.
798 * @invocation: A #GDBusMethodInvocation.
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.
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.
804 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
806 g_signal_new ("handle-backup-starts",
807 G_TYPE_FROM_INTERFACE (iface),
809 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_backup_starts),
810 g_signal_accumulator_true_handled,
812 g_cclosure_marshal_generic,
815 G_TYPE_DBUS_METHOD_INVOCATION);
818 * GSignondDbusAuthService::handle-backup-finished:
819 * @object: A #GSignondDbusAuthService.
820 * @invocation: A #GDBusMethodInvocation.
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.
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.
826 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
828 g_signal_new ("handle-backup-finished",
829 G_TYPE_FROM_INTERFACE (iface),
831 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_backup_finished),
832 g_signal_accumulator_true_handled,
834 g_cclosure_marshal_generic,
837 G_TYPE_DBUS_METHOD_INVOCATION);
840 * GSignondDbusAuthService::handle-restore-starts:
841 * @object: A #GSignondDbusAuthService.
842 * @invocation: A #GDBusMethodInvocation.
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.
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.
848 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
850 g_signal_new ("handle-restore-starts",
851 G_TYPE_FROM_INTERFACE (iface),
853 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_restore_starts),
854 g_signal_accumulator_true_handled,
856 g_cclosure_marshal_generic,
859 G_TYPE_DBUS_METHOD_INVOCATION);
862 * GSignondDbusAuthService::handle-restore-finished:
863 * @object: A #GSignondDbusAuthService.
864 * @invocation: A #GDBusMethodInvocation.
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.
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.
870 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
872 g_signal_new ("handle-restore-finished",
873 G_TYPE_FROM_INTERFACE (iface),
875 G_STRUCT_OFFSET (GSignondDbusAuthServiceIface, handle_restore_finished),
876 g_signal_accumulator_true_handled,
878 g_cclosure_marshal_generic,
881 G_TYPE_DBUS_METHOD_INVOCATION);
885 typedef GSignondDbusAuthServiceIface GSignondDbusAuthServiceInterface;
886 G_DEFINE_INTERFACE (GSignondDbusAuthService, gsignond_dbus_auth_service, G_TYPE_OBJECT);
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.
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.
900 * See gsignond_dbus_auth_service_call_register_new_identity_sync() for the synchronous, blocking version of this method.
903 gsignond_dbus_auth_service_call_register_new_identity (
904 GSignondDbusAuthService *proxy,
905 const gchar *arg_applicationContext,
906 GCancellable *cancellable,
907 GAsyncReadyCallback callback,
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,
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.
928 * Finishes an operation started with gsignond_dbus_auth_service_call_register_new_identity().
930 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
933 gsignond_dbus_auth_service_call_register_new_identity_finish (
934 GSignondDbusAuthService *proxy,
935 gchar **out_objectPath,
940 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
946 g_variant_unref (_ret);
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.
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.
961 * See gsignond_dbus_auth_service_call_register_new_identity() for the asynchronous version of this method.
963 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
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,
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,
987 g_variant_unref (_ret);
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.
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.
1005 * See gsignond_dbus_auth_service_call_get_identity_sync() for the synchronous, blocking version of this method.
1008 gsignond_dbus_auth_service_call_get_identity (
1009 GSignondDbusAuthService *proxy,
1011 const gchar *arg_applicationContext,
1012 GCancellable *cancellable,
1013 GAsyncReadyCallback callback,
1016 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1018 g_variant_new ("(us)",
1020 arg_applicationContext),
1021 G_DBUS_CALL_FLAGS_NONE,
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.
1036 * Finishes an operation started with gsignond_dbus_auth_service_call_get_identity().
1038 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1041 gsignond_dbus_auth_service_call_get_identity_finish (
1042 GSignondDbusAuthService *proxy,
1043 gchar **out_objectPath,
1044 GVariant **out_identityData,
1049 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1052 g_variant_get (_ret,
1056 g_variant_unref (_ret);
1058 return _ret != NULL;
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.
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.
1073 * See gsignond_dbus_auth_service_call_get_identity() for the asynchronous version of this method.
1075 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1078 gsignond_dbus_auth_service_call_get_identity_sync (
1079 GSignondDbusAuthService *proxy,
1081 const gchar *arg_applicationContext,
1082 gchar **out_objectPath,
1083 GVariant **out_identityData,
1084 GCancellable *cancellable,
1088 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1090 g_variant_new ("(us)",
1092 arg_applicationContext),
1093 G_DBUS_CALL_FLAGS_NONE,
1099 g_variant_get (_ret,
1103 g_variant_unref (_ret);
1105 return _ret != NULL;
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.
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.
1119 * See gsignond_dbus_auth_service_call_query_methods_sync() for the synchronous, blocking version of this method.
1122 gsignond_dbus_auth_service_call_query_methods (
1123 GSignondDbusAuthService *proxy,
1124 GCancellable *cancellable,
1125 GAsyncReadyCallback callback,
1128 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1130 g_variant_new ("()"),
1131 G_DBUS_CALL_FLAGS_NONE,
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.
1145 * Finishes an operation started with gsignond_dbus_auth_service_call_query_methods().
1147 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1150 gsignond_dbus_auth_service_call_query_methods_finish (
1151 GSignondDbusAuthService *proxy,
1152 gchar ***out_authMethods,
1157 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1160 g_variant_get (_ret,
1163 g_variant_unref (_ret);
1165 return _ret != NULL;
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.
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.
1177 * See gsignond_dbus_auth_service_call_query_methods() for the asynchronous version of this method.
1179 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1182 gsignond_dbus_auth_service_call_query_methods_sync (
1183 GSignondDbusAuthService *proxy,
1184 gchar ***out_authMethods,
1185 GCancellable *cancellable,
1189 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1191 g_variant_new ("()"),
1192 G_DBUS_CALL_FLAGS_NONE,
1198 g_variant_get (_ret,
1201 g_variant_unref (_ret);
1203 return _ret != NULL;
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.
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.
1218 * See gsignond_dbus_auth_service_call_query_mechanisms_sync() for the synchronous, blocking version of this method.
1221 gsignond_dbus_auth_service_call_query_mechanisms (
1222 GSignondDbusAuthService *proxy,
1223 const gchar *arg_method,
1224 GCancellable *cancellable,
1225 GAsyncReadyCallback callback,
1228 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1230 g_variant_new ("(s)",
1232 G_DBUS_CALL_FLAGS_NONE,
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.
1246 * Finishes an operation started with gsignond_dbus_auth_service_call_query_mechanisms().
1248 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1251 gsignond_dbus_auth_service_call_query_mechanisms_finish (
1252 GSignondDbusAuthService *proxy,
1253 gchar ***out_mechanisms,
1258 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1261 g_variant_get (_ret,
1264 g_variant_unref (_ret);
1266 return _ret != NULL;
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.
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.
1279 * See gsignond_dbus_auth_service_call_query_mechanisms() for the asynchronous version of this method.
1281 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1284 gsignond_dbus_auth_service_call_query_mechanisms_sync (
1285 GSignondDbusAuthService *proxy,
1286 const gchar *arg_method,
1287 gchar ***out_mechanisms,
1288 GCancellable *cancellable,
1292 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1294 g_variant_new ("(s)",
1296 G_DBUS_CALL_FLAGS_NONE,
1302 g_variant_get (_ret,
1305 g_variant_unref (_ret);
1307 return _ret != NULL;
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.
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.
1323 * See gsignond_dbus_auth_service_call_query_identities_sync() for the synchronous, blocking version of this method.
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,
1334 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1336 g_variant_new ("(@a{sv}s)",
1338 arg_applicationContext),
1339 G_DBUS_CALL_FLAGS_NONE,
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.
1353 * Finishes an operation started with gsignond_dbus_auth_service_call_query_identities().
1355 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1358 gsignond_dbus_auth_service_call_query_identities_finish (
1359 GSignondDbusAuthService *proxy,
1360 GVariant **out_identities,
1365 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1368 g_variant_get (_ret,
1371 g_variant_unref (_ret);
1373 return _ret != NULL;
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.
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.
1387 * See gsignond_dbus_auth_service_call_query_identities() for the asynchronous version of this method.
1389 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
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,
1401 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1403 g_variant_new ("(@a{sv}s)",
1405 arg_applicationContext),
1406 G_DBUS_CALL_FLAGS_NONE,
1412 g_variant_get (_ret,
1415 g_variant_unref (_ret);
1417 return _ret != NULL;
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.
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.
1431 * See gsignond_dbus_auth_service_call_clear_sync() for the synchronous, blocking version of this method.
1434 gsignond_dbus_auth_service_call_clear (
1435 GSignondDbusAuthService *proxy,
1436 GCancellable *cancellable,
1437 GAsyncReadyCallback callback,
1440 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1442 g_variant_new ("()"),
1443 G_DBUS_CALL_FLAGS_NONE,
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.
1457 * Finishes an operation started with gsignond_dbus_auth_service_call_clear().
1459 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1462 gsignond_dbus_auth_service_call_clear_finish (
1463 GSignondDbusAuthService *proxy,
1464 gboolean *out_unnamed_arg0,
1469 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1472 g_variant_get (_ret,
1475 g_variant_unref (_ret);
1477 return _ret != NULL;
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.
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.
1489 * See gsignond_dbus_auth_service_call_clear() for the asynchronous version of this method.
1491 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1494 gsignond_dbus_auth_service_call_clear_sync (
1495 GSignondDbusAuthService *proxy,
1496 gboolean *out_unnamed_arg0,
1497 GCancellable *cancellable,
1501 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1503 g_variant_new ("()"),
1504 G_DBUS_CALL_FLAGS_NONE,
1510 g_variant_get (_ret,
1513 g_variant_unref (_ret);
1515 return _ret != NULL;
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.
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.
1529 * See gsignond_dbus_auth_service_call_backup_starts_sync() for the synchronous, blocking version of this method.
1532 gsignond_dbus_auth_service_call_backup_starts (
1533 GSignondDbusAuthService *proxy,
1534 GCancellable *cancellable,
1535 GAsyncReadyCallback callback,
1538 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1540 g_variant_new ("()"),
1541 G_DBUS_CALL_FLAGS_NONE,
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.
1555 * Finishes an operation started with gsignond_dbus_auth_service_call_backup_starts().
1557 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1560 gsignond_dbus_auth_service_call_backup_starts_finish (
1561 GSignondDbusAuthService *proxy,
1562 guchar *out_unnamed_arg0,
1567 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1570 g_variant_get (_ret,
1573 g_variant_unref (_ret);
1575 return _ret != NULL;
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.
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.
1587 * See gsignond_dbus_auth_service_call_backup_starts() for the asynchronous version of this method.
1589 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1592 gsignond_dbus_auth_service_call_backup_starts_sync (
1593 GSignondDbusAuthService *proxy,
1594 guchar *out_unnamed_arg0,
1595 GCancellable *cancellable,
1599 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1601 g_variant_new ("()"),
1602 G_DBUS_CALL_FLAGS_NONE,
1608 g_variant_get (_ret,
1611 g_variant_unref (_ret);
1613 return _ret != NULL;
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.
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.
1627 * See gsignond_dbus_auth_service_call_backup_finished_sync() for the synchronous, blocking version of this method.
1630 gsignond_dbus_auth_service_call_backup_finished (
1631 GSignondDbusAuthService *proxy,
1632 GCancellable *cancellable,
1633 GAsyncReadyCallback callback,
1636 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1638 g_variant_new ("()"),
1639 G_DBUS_CALL_FLAGS_NONE,
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.
1653 * Finishes an operation started with gsignond_dbus_auth_service_call_backup_finished().
1655 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1658 gsignond_dbus_auth_service_call_backup_finished_finish (
1659 GSignondDbusAuthService *proxy,
1660 guchar *out_unnamed_arg0,
1665 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1668 g_variant_get (_ret,
1671 g_variant_unref (_ret);
1673 return _ret != NULL;
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.
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.
1685 * See gsignond_dbus_auth_service_call_backup_finished() for the asynchronous version of this method.
1687 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1690 gsignond_dbus_auth_service_call_backup_finished_sync (
1691 GSignondDbusAuthService *proxy,
1692 guchar *out_unnamed_arg0,
1693 GCancellable *cancellable,
1697 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1699 g_variant_new ("()"),
1700 G_DBUS_CALL_FLAGS_NONE,
1706 g_variant_get (_ret,
1709 g_variant_unref (_ret);
1711 return _ret != NULL;
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.
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.
1725 * See gsignond_dbus_auth_service_call_restore_starts_sync() for the synchronous, blocking version of this method.
1728 gsignond_dbus_auth_service_call_restore_starts (
1729 GSignondDbusAuthService *proxy,
1730 GCancellable *cancellable,
1731 GAsyncReadyCallback callback,
1734 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1736 g_variant_new ("()"),
1737 G_DBUS_CALL_FLAGS_NONE,
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.
1751 * Finishes an operation started with gsignond_dbus_auth_service_call_restore_starts().
1753 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1756 gsignond_dbus_auth_service_call_restore_starts_finish (
1757 GSignondDbusAuthService *proxy,
1758 guchar *out_unnamed_arg0,
1763 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1766 g_variant_get (_ret,
1769 g_variant_unref (_ret);
1771 return _ret != NULL;
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.
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.
1783 * See gsignond_dbus_auth_service_call_restore_starts() for the asynchronous version of this method.
1785 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1788 gsignond_dbus_auth_service_call_restore_starts_sync (
1789 GSignondDbusAuthService *proxy,
1790 guchar *out_unnamed_arg0,
1791 GCancellable *cancellable,
1795 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1797 g_variant_new ("()"),
1798 G_DBUS_CALL_FLAGS_NONE,
1804 g_variant_get (_ret,
1807 g_variant_unref (_ret);
1809 return _ret != NULL;
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.
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.
1823 * See gsignond_dbus_auth_service_call_restore_finished_sync() for the synchronous, blocking version of this method.
1826 gsignond_dbus_auth_service_call_restore_finished (
1827 GSignondDbusAuthService *proxy,
1828 GCancellable *cancellable,
1829 GAsyncReadyCallback callback,
1832 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1834 g_variant_new ("()"),
1835 G_DBUS_CALL_FLAGS_NONE,
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.
1849 * Finishes an operation started with gsignond_dbus_auth_service_call_restore_finished().
1851 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1854 gsignond_dbus_auth_service_call_restore_finished_finish (
1855 GSignondDbusAuthService *proxy,
1856 guchar *out_unnamed_arg0,
1861 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1864 g_variant_get (_ret,
1867 g_variant_unref (_ret);
1869 return _ret != NULL;
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.
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.
1881 * See gsignond_dbus_auth_service_call_restore_finished() for the asynchronous version of this method.
1883 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1886 gsignond_dbus_auth_service_call_restore_finished_sync (
1887 GSignondDbusAuthService *proxy,
1888 guchar *out_unnamed_arg0,
1889 GCancellable *cancellable,
1893 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1895 g_variant_new ("()"),
1896 G_DBUS_CALL_FLAGS_NONE,
1902 g_variant_get (_ret,
1905 g_variant_unref (_ret);
1907 return _ret != NULL;
1911 * gsignond_dbus_auth_service_complete_register_new_identity:
1912 * @object: A #GSignondDbusAuthService.
1913 * @invocation: (transfer full): A #GDBusMethodInvocation.
1914 * @objectPath: Parameter to return.
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.
1918 * This method will free @invocation, you cannot use it afterwards.
1921 gsignond_dbus_auth_service_complete_register_new_identity (
1922 GSignondDbusAuthService *object,
1923 GDBusMethodInvocation *invocation,
1924 const gchar *objectPath)
1926 g_dbus_method_invocation_return_value (invocation,
1927 g_variant_new ("(o)",
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.
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.
1940 * This method will free @invocation, you cannot use it afterwards.
1943 gsignond_dbus_auth_service_complete_get_identity (
1944 GSignondDbusAuthService *object,
1945 GDBusMethodInvocation *invocation,
1946 const gchar *objectPath,
1947 GVariant *identityData)
1949 g_dbus_method_invocation_return_value (invocation,
1950 g_variant_new ("(o@a{sv})",
1956 * gsignond_dbus_auth_service_complete_query_methods:
1957 * @object: A #GSignondDbusAuthService.
1958 * @invocation: (transfer full): A #GDBusMethodInvocation.
1959 * @authMethods: Parameter to return.
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.
1963 * This method will free @invocation, you cannot use it afterwards.
1966 gsignond_dbus_auth_service_complete_query_methods (
1967 GSignondDbusAuthService *object,
1968 GDBusMethodInvocation *invocation,
1969 const gchar *const *authMethods)
1971 g_dbus_method_invocation_return_value (invocation,
1972 g_variant_new ("(^as)",
1977 * gsignond_dbus_auth_service_complete_query_mechanisms:
1978 * @object: A #GSignondDbusAuthService.
1979 * @invocation: (transfer full): A #GDBusMethodInvocation.
1980 * @mechanisms: Parameter to return.
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.
1984 * This method will free @invocation, you cannot use it afterwards.
1987 gsignond_dbus_auth_service_complete_query_mechanisms (
1988 GSignondDbusAuthService *object,
1989 GDBusMethodInvocation *invocation,
1990 const gchar *const *mechanisms)
1992 g_dbus_method_invocation_return_value (invocation,
1993 g_variant_new ("(^as)",
1998 * gsignond_dbus_auth_service_complete_query_identities:
1999 * @object: A #GSignondDbusAuthService.
2000 * @invocation: (transfer full): A #GDBusMethodInvocation.
2001 * @identities: Parameter to return.
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.
2005 * This method will free @invocation, you cannot use it afterwards.
2008 gsignond_dbus_auth_service_complete_query_identities (
2009 GSignondDbusAuthService *object,
2010 GDBusMethodInvocation *invocation,
2011 GVariant *identities)
2013 g_dbus_method_invocation_return_value (invocation,
2014 g_variant_new ("(@aa{sv})",
2019 * gsignond_dbus_auth_service_complete_clear:
2020 * @object: A #GSignondDbusAuthService.
2021 * @invocation: (transfer full): A #GDBusMethodInvocation.
2022 * @unnamed_arg0: Parameter to return.
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.
2026 * This method will free @invocation, you cannot use it afterwards.
2029 gsignond_dbus_auth_service_complete_clear (
2030 GSignondDbusAuthService *object,
2031 GDBusMethodInvocation *invocation,
2032 gboolean unnamed_arg0)
2034 g_dbus_method_invocation_return_value (invocation,
2035 g_variant_new ("(b)",
2040 * gsignond_dbus_auth_service_complete_backup_starts:
2041 * @object: A #GSignondDbusAuthService.
2042 * @invocation: (transfer full): A #GDBusMethodInvocation.
2043 * @unnamed_arg0: Parameter to return.
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.
2047 * This method will free @invocation, you cannot use it afterwards.
2050 gsignond_dbus_auth_service_complete_backup_starts (
2051 GSignondDbusAuthService *object,
2052 GDBusMethodInvocation *invocation,
2053 guchar unnamed_arg0)
2055 g_dbus_method_invocation_return_value (invocation,
2056 g_variant_new ("(y)",
2061 * gsignond_dbus_auth_service_complete_backup_finished:
2062 * @object: A #GSignondDbusAuthService.
2063 * @invocation: (transfer full): A #GDBusMethodInvocation.
2064 * @unnamed_arg0: Parameter to return.
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.
2068 * This method will free @invocation, you cannot use it afterwards.
2071 gsignond_dbus_auth_service_complete_backup_finished (
2072 GSignondDbusAuthService *object,
2073 GDBusMethodInvocation *invocation,
2074 guchar unnamed_arg0)
2076 g_dbus_method_invocation_return_value (invocation,
2077 g_variant_new ("(y)",
2082 * gsignond_dbus_auth_service_complete_restore_starts:
2083 * @object: A #GSignondDbusAuthService.
2084 * @invocation: (transfer full): A #GDBusMethodInvocation.
2085 * @unnamed_arg0: Parameter to return.
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.
2089 * This method will free @invocation, you cannot use it afterwards.
2092 gsignond_dbus_auth_service_complete_restore_starts (
2093 GSignondDbusAuthService *object,
2094 GDBusMethodInvocation *invocation,
2095 guchar unnamed_arg0)
2097 g_dbus_method_invocation_return_value (invocation,
2098 g_variant_new ("(y)",
2103 * gsignond_dbus_auth_service_complete_restore_finished:
2104 * @object: A #GSignondDbusAuthService.
2105 * @invocation: (transfer full): A #GDBusMethodInvocation.
2106 * @unnamed_arg0: Parameter to return.
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.
2110 * This method will free @invocation, you cannot use it afterwards.
2113 gsignond_dbus_auth_service_complete_restore_finished (
2114 GSignondDbusAuthService *object,
2115 GDBusMethodInvocation *invocation,
2116 guchar unnamed_arg0)
2118 g_dbus_method_invocation_return_value (invocation,
2119 g_variant_new ("(y)",
2123 /* ------------------------------------------------------------------------ */
2126 * GSignondDbusAuthServiceProxy:
2128 * The #GSignondDbusAuthServiceProxy structure contains only private data and should only be accessed using the provided API.
2132 * GSignondDbusAuthServiceProxyClass:
2133 * @parent_class: The parent class.
2135 * Class structure for #GSignondDbusAuthServiceProxy.
2138 struct _GSignondDbusAuthServiceProxyPrivate
2143 static void gsignond_dbus_auth_service_proxy_iface_init (GSignondDbusAuthServiceIface *iface);
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));
2149 gsignond_dbus_auth_service_proxy_finalize (GObject *object)
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);
2157 gsignond_dbus_auth_service_proxy_get_property (GObject *object,
2165 gsignond_dbus_auth_service_proxy_set_property (GObject *object,
2167 const GValue *value,
2173 gsignond_dbus_auth_service_proxy_g_signal (GDBusProxy *proxy,
2174 const gchar *sender_name,
2175 const gchar *signal_name,
2176 GVariant *parameters)
2178 _ExtendedGDBusSignalInfo *info;
2185 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_gsignond_dbus_auth_service_interface_info.parent_struct, signal_name);
2188 num_params = g_variant_n_children (parameters);
2189 paramv = g_new0 (GValue, num_params + 1);
2190 g_value_init (¶mv[0], GSIGNOND_DBUS_TYPE_AUTH_SERVICE);
2191 g_value_set_object (¶mv[0], proxy);
2192 g_variant_iter_init (&iter, parameters);
2194 while ((child = g_variant_iter_next_value (&iter)) != NULL)
2196 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2197 if (arg_info->use_gvariant)
2199 g_value_init (¶mv[n], G_TYPE_VARIANT);
2200 g_value_set_variant (¶mv[n], child);
2204 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2205 g_variant_unref (child);
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 (¶mv[n]);
2215 gsignond_dbus_auth_service_proxy_g_properties_changed (GDBusProxy *_proxy,
2216 GVariant *changed_properties,
2217 const gchar *const *invalidated_properties)
2219 GSignondDbusAuthServiceProxy *proxy = GSIGNOND_DBUS_AUTH_SERVICE_PROXY (_proxy);
2223 _ExtendedGDBusPropertyInfo *info;
2224 g_variant_get (changed_properties, "a{sv}", &iter);
2225 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
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);
2230 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2232 g_variant_iter_free (iter);
2233 for (n = 0; invalidated_properties[n] != NULL; n++)
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]);
2238 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2243 gsignond_dbus_auth_service_proxy_init (GSignondDbusAuthServiceProxy *proxy)
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 ());
2250 gsignond_dbus_auth_service_proxy_class_init (GSignondDbusAuthServiceProxyClass *klass)
2252 GObjectClass *gobject_class;
2253 GDBusProxyClass *proxy_class;
2255 g_type_class_add_private (klass, sizeof (GSignondDbusAuthServiceProxyPrivate));
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;
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;
2269 gsignond_dbus_auth_service_proxy_iface_init (GSignondDbusAuthServiceIface *iface)
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.
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.
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.
2288 * See gsignond_dbus_auth_service_proxy_new_sync() for the synchronous, blocking version of this constructor.
2291 gsignond_dbus_auth_service_proxy_new (
2292 GDBusConnection *connection,
2293 GDBusProxyFlags flags,
2295 const gchar *object_path,
2296 GCancellable *cancellable,
2297 GAsyncReadyCallback callback,
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);
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
2308 * Finishes an operation started with gsignond_dbus_auth_service_proxy_new().
2310 * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2312 GSignondDbusAuthService *
2313 gsignond_dbus_auth_service_proxy_new_finish (
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);
2323 return GSIGNOND_DBUS_AUTH_SERVICE (ret);
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
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.
2339 * The calling thread is blocked until a reply is received.
2341 * See gsignond_dbus_auth_service_proxy_new() for the asynchronous version of this constructor.
2343 * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2345 GSignondDbusAuthService *
2346 gsignond_dbus_auth_service_proxy_new_sync (
2347 GDBusConnection *connection,
2348 GDBusProxyFlags flags,
2350 const gchar *object_path,
2351 GCancellable *cancellable,
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);
2357 return GSIGNOND_DBUS_AUTH_SERVICE (ret);
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.
2373 * Like gsignond_dbus_auth_service_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
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.
2378 * See gsignond_dbus_auth_service_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2381 gsignond_dbus_auth_service_proxy_new_for_bus (
2383 GDBusProxyFlags flags,
2385 const gchar *object_path,
2386 GCancellable *cancellable,
2387 GAsyncReadyCallback callback,
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);
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
2398 * Finishes an operation started with gsignond_dbus_auth_service_proxy_new_for_bus().
2400 * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2402 GSignondDbusAuthService *
2403 gsignond_dbus_auth_service_proxy_new_for_bus_finish (
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);
2413 return GSIGNOND_DBUS_AUTH_SERVICE (ret);
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
2427 * Like gsignond_dbus_auth_service_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2429 * The calling thread is blocked until a reply is received.
2431 * See gsignond_dbus_auth_service_proxy_new_for_bus() for the asynchronous version of this constructor.
2433 * Returns: (transfer full) (type GSignondDbusAuthServiceProxy): The constructed proxy object or %NULL if @error is set.
2435 GSignondDbusAuthService *
2436 gsignond_dbus_auth_service_proxy_new_for_bus_sync (
2438 GDBusProxyFlags flags,
2440 const gchar *object_path,
2441 GCancellable *cancellable,
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);
2447 return GSIGNOND_DBUS_AUTH_SERVICE (ret);
2453 /* ------------------------------------------------------------------------ */
2456 * GSignondDbusAuthServiceSkeleton:
2458 * The #GSignondDbusAuthServiceSkeleton structure contains only private data and should only be accessed using the provided API.
2462 * GSignondDbusAuthServiceSkeletonClass:
2463 * @parent_class: The parent class.
2465 * Class structure for #GSignondDbusAuthServiceSkeleton.
2468 struct _GSignondDbusAuthServiceSkeletonPrivate
2471 GList *changed_properties;
2472 GSource *changed_properties_idle_source;
2473 GMainContext *context;
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,
2488 GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (user_data);
2489 _ExtendedGDBusMethodInfo *info;
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);
2503 g_value_init (¶mv[n], GSIGNOND_DBUS_TYPE_AUTH_SERVICE);
2504 g_value_set_object (¶mv[n++], skeleton);
2505 g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2506 g_value_set_object (¶mv[n++], invocation);
2507 if (info->pass_fdlist)
2510 g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
2511 g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2513 g_assert_not_reached ();
2516 g_variant_iter_init (&iter, parameters);
2517 while ((child = g_variant_iter_next_value (&iter)) != NULL)
2519 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2520 if (arg_info->use_gvariant)
2522 g_value_init (¶mv[n], G_TYPE_VARIANT);
2523 g_value_set_variant (¶mv[n], child);
2527 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2528 g_variant_unref (child);
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 (¶mv[n]);
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,
2551 GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (user_data);
2552 GValue value = G_VALUE_INIT;
2554 _ExtendedGDBusPropertyInfo *info;
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);
2562 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
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);
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,
2585 GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (user_data);
2586 GValue value = G_VALUE_INIT;
2588 _ExtendedGDBusPropertyInfo *info;
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);
2596 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2600 if (info->use_gvariant)
2601 g_value_set_variant (&value, variant);
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);
2611 static const GDBusInterfaceVTable _gsignond_dbus_auth_service_skeleton_vtable =
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
2618 static GDBusInterfaceInfo *
2619 gsignond_dbus_auth_service_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
2621 return gsignond_dbus_auth_service_interface_info ();
2624 static GDBusInterfaceVTable *
2625 gsignond_dbus_auth_service_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
2627 return (GDBusInterfaceVTable *) &_gsignond_dbus_auth_service_skeleton_vtable;
2631 gsignond_dbus_auth_service_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2633 GSignondDbusAuthServiceSkeleton *skeleton = GSIGNOND_DBUS_AUTH_SERVICE_SKELETON (_skeleton);
2635 GVariantBuilder builder;
2637 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2638 if (_gsignond_dbus_auth_service_interface_info.parent_struct.properties == NULL)
2640 for (n = 0; _gsignond_dbus_auth_service_interface_info.parent_struct.properties[n] != NULL; n++)
2642 GDBusPropertyInfo *info = _gsignond_dbus_auth_service_interface_info.parent_struct.properties[n];
2643 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
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);
2649 g_variant_take_ref (value);
2650 g_variant_builder_add (&builder, "{sv}", info->name, value);
2651 g_variant_unref (value);
2656 return g_variant_builder_end (&builder);
2660 gsignond_dbus_auth_service_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
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));
2669 gsignond_dbus_auth_service_skeleton_finalize (GObject *object)
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);
2681 gsignond_dbus_auth_service_skeleton_init (GSignondDbusAuthServiceSkeleton *skeleton)
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 ();
2689 gsignond_dbus_auth_service_skeleton_class_init (GSignondDbusAuthServiceSkeletonClass *klass)
2691 GObjectClass *gobject_class;
2692 GDBusInterfaceSkeletonClass *skeleton_class;
2694 g_type_class_add_private (klass, sizeof (GSignondDbusAuthServiceSkeletonPrivate));
2696 gobject_class = G_OBJECT_CLASS (klass);
2697 gobject_class->finalize = gsignond_dbus_auth_service_skeleton_finalize;
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;
2707 gsignond_dbus_auth_service_skeleton_iface_init (GSignondDbusAuthServiceIface *iface)
2712 * gsignond_dbus_auth_service_skeleton_new:
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>.
2716 * Returns: (transfer full) (type GSignondDbusAuthServiceSkeleton): The skeleton object.
2718 GSignondDbusAuthService *
2719 gsignond_dbus_auth_service_skeleton_new (void)
2721 return GSIGNOND_DBUS_AUTH_SERVICE (g_object_new (GSIGNOND_DBUS_TYPE_AUTH_SERVICE_SKELETON, NULL));