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-identity-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.Identity
153 * ------------------------------------------------------------------------
157 * SECTION:GSignondDbusIdentity
158 * @title: GSignondDbusIdentity
159 * @short_description: Generated C code for the com.google.code.AccountsSSO.gSingleSignOn.Identity D-Bus interface
161 * This section contains code for working with the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link> D-Bus interface in C.
164 /* ---- Introspection data for com.google.code.AccountsSSO.gSingleSignOn.Identity ---- */
166 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_message =
177 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_pointers[] =
179 &_gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_message,
183 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_unnamed_arg1 =
187 (gchar *) "unnamed_arg1",
194 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_pointers[] =
196 &_gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_unnamed_arg1,
200 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_request_credentials_update =
204 (gchar *) "requestCredentialsUpdate",
205 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_request_credentials_update_IN_ARG_pointers,
206 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_request_credentials_update_OUT_ARG_pointers,
209 "handle-request-credentials-update",
213 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_get_info_OUT_ARG_identityInfo =
217 (gchar *) "identityInfo",
224 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_get_info_OUT_ARG_pointers[] =
226 &_gsignond_dbus_identity_method_info_get_info_OUT_ARG_identityInfo,
230 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_get_info =
236 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_get_info_OUT_ARG_pointers,
243 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_method =
254 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_pointers[] =
256 &_gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_method,
260 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_objectPath =
264 (gchar *) "objectPath",
271 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_pointers[] =
273 &_gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_objectPath,
277 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_get_auth_session =
281 (gchar *) "getAuthSession",
282 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_get_auth_session_IN_ARG_pointers,
283 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_get_auth_session_OUT_ARG_pointers,
286 "handle-get-auth-session",
290 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_user_IN_ARG_params =
301 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_user_IN_ARG_pointers[] =
303 &_gsignond_dbus_identity_method_info_verify_user_IN_ARG_params,
307 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_user_OUT_ARG_unnamed_arg1 =
311 (gchar *) "unnamed_arg1",
318 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_user_OUT_ARG_pointers[] =
320 &_gsignond_dbus_identity_method_info_verify_user_OUT_ARG_unnamed_arg1,
324 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_verify_user =
328 (gchar *) "verifyUser",
329 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_user_IN_ARG_pointers,
330 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_user_OUT_ARG_pointers,
333 "handle-verify-user",
337 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_secret_IN_ARG_secret =
348 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_secret_IN_ARG_pointers[] =
350 &_gsignond_dbus_identity_method_info_verify_secret_IN_ARG_secret,
354 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_unnamed_arg1 =
358 (gchar *) "unnamed_arg1",
365 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_pointers[] =
367 &_gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_unnamed_arg1,
371 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_verify_secret =
375 (gchar *) "verifySecret",
376 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_secret_IN_ARG_pointers,
377 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_verify_secret_OUT_ARG_pointers,
380 "handle-verify-secret",
384 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_remove =
397 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_sign_out_OUT_ARG_unnamed_arg0 =
401 (gchar *) "unnamed_arg0",
408 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_sign_out_OUT_ARG_pointers[] =
410 &_gsignond_dbus_identity_method_info_sign_out_OUT_ARG_unnamed_arg0,
414 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_sign_out =
420 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_sign_out_OUT_ARG_pointers,
427 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_store_IN_ARG_unnamed_arg0 =
431 (gchar *) "unnamed_arg0",
438 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_store_IN_ARG_pointers[] =
440 &_gsignond_dbus_identity_method_info_store_IN_ARG_unnamed_arg0,
444 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_store_OUT_ARG_unnamed_arg1 =
448 (gchar *) "unnamed_arg1",
455 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_store_OUT_ARG_pointers[] =
457 &_gsignond_dbus_identity_method_info_store_OUT_ARG_unnamed_arg1,
461 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_store =
466 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_store_IN_ARG_pointers,
467 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_store_OUT_ARG_pointers,
474 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_add_reference_IN_ARG_reference =
478 (gchar *) "reference",
485 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_add_reference_IN_ARG_pointers[] =
487 &_gsignond_dbus_identity_method_info_add_reference_IN_ARG_reference,
491 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_add_reference_OUT_ARG_unnamed_arg1 =
495 (gchar *) "unnamed_arg1",
502 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_add_reference_OUT_ARG_pointers[] =
504 &_gsignond_dbus_identity_method_info_add_reference_OUT_ARG_unnamed_arg1,
508 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_add_reference =
512 (gchar *) "addReference",
513 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_add_reference_IN_ARG_pointers,
514 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_add_reference_OUT_ARG_pointers,
517 "handle-add-reference",
521 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_remove_reference_IN_ARG_reference =
525 (gchar *) "reference",
532 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_remove_reference_IN_ARG_pointers[] =
534 &_gsignond_dbus_identity_method_info_remove_reference_IN_ARG_reference,
538 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_unnamed_arg1 =
542 (gchar *) "unnamed_arg1",
549 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_pointers[] =
551 &_gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_unnamed_arg1,
555 static const _ExtendedGDBusMethodInfo _gsignond_dbus_identity_method_info_remove_reference =
559 (gchar *) "removeReference",
560 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_remove_reference_IN_ARG_pointers,
561 (GDBusArgInfo **) &_gsignond_dbus_identity_method_info_remove_reference_OUT_ARG_pointers,
564 "handle-remove-reference",
568 static const _ExtendedGDBusMethodInfo * const _gsignond_dbus_identity_method_info_pointers[] =
570 &_gsignond_dbus_identity_method_info_request_credentials_update,
571 &_gsignond_dbus_identity_method_info_get_info,
572 &_gsignond_dbus_identity_method_info_get_auth_session,
573 &_gsignond_dbus_identity_method_info_verify_user,
574 &_gsignond_dbus_identity_method_info_verify_secret,
575 &_gsignond_dbus_identity_method_info_remove,
576 &_gsignond_dbus_identity_method_info_sign_out,
577 &_gsignond_dbus_identity_method_info_store,
578 &_gsignond_dbus_identity_method_info_add_reference,
579 &_gsignond_dbus_identity_method_info_remove_reference,
583 static const _ExtendedGDBusSignalInfo _gsignond_dbus_identity_signal_info_unregistered =
587 (gchar *) "unregistered",
594 static const _ExtendedGDBusArgInfo _gsignond_dbus_identity_signal_info_info_updated_ARG_unnamed_arg0 =
598 (gchar *) "unnamed_arg0",
605 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_identity_signal_info_info_updated_ARG_pointers[] =
607 &_gsignond_dbus_identity_signal_info_info_updated_ARG_unnamed_arg0,
611 static const _ExtendedGDBusSignalInfo _gsignond_dbus_identity_signal_info_info_updated =
615 (gchar *) "infoUpdated",
616 (GDBusArgInfo **) &_gsignond_dbus_identity_signal_info_info_updated_ARG_pointers,
622 static const _ExtendedGDBusSignalInfo * const _gsignond_dbus_identity_signal_info_pointers[] =
624 &_gsignond_dbus_identity_signal_info_unregistered,
625 &_gsignond_dbus_identity_signal_info_info_updated,
629 static const _ExtendedGDBusInterfaceInfo _gsignond_dbus_identity_interface_info =
633 (gchar *) "com.google.code.AccountsSSO.gSingleSignOn.Identity",
634 (GDBusMethodInfo **) &_gsignond_dbus_identity_method_info_pointers,
635 (GDBusSignalInfo **) &_gsignond_dbus_identity_signal_info_pointers,
644 * gsignond_dbus_identity_interface_info:
646 * Gets a machine-readable description of the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link> D-Bus interface.
648 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
651 gsignond_dbus_identity_interface_info (void)
653 return (GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info.parent_struct;
657 * gsignond_dbus_identity_override_properties:
658 * @klass: The class structure for a #GObject<!-- -->-derived class.
659 * @property_id_begin: The property id to assign to the first overridden property.
661 * Overrides all #GObject properties in the #GSignondDbusIdentity interface for a concrete class.
662 * The properties are overridden in the order they are defined.
664 * Returns: The last property id.
667 gsignond_dbus_identity_override_properties (GObjectClass *klass, guint property_id_begin)
669 return property_id_begin - 1;
675 * GSignondDbusIdentity:
677 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>.
681 * GSignondDbusIdentityIface:
682 * @parent_iface: The parent interface.
683 * @handle_add_reference: Handler for the #GSignondDbusIdentity::handle-add-reference signal.
684 * @handle_get_auth_session: Handler for the #GSignondDbusIdentity::handle-get-auth-session signal.
685 * @handle_get_info: Handler for the #GSignondDbusIdentity::handle-get-info signal.
686 * @handle_remove: Handler for the #GSignondDbusIdentity::handle-remove signal.
687 * @handle_remove_reference: Handler for the #GSignondDbusIdentity::handle-remove-reference signal.
688 * @handle_request_credentials_update: Handler for the #GSignondDbusIdentity::handle-request-credentials-update signal.
689 * @handle_sign_out: Handler for the #GSignondDbusIdentity::handle-sign-out signal.
690 * @handle_store: Handler for the #GSignondDbusIdentity::handle-store signal.
691 * @handle_verify_secret: Handler for the #GSignondDbusIdentity::handle-verify-secret signal.
692 * @handle_verify_user: Handler for the #GSignondDbusIdentity::handle-verify-user signal.
693 * @info_updated: Handler for the #GSignondDbusIdentity::info-updated signal.
694 * @unregistered: Handler for the #GSignondDbusIdentity::unregistered signal.
696 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>.
700 gsignond_dbus_identity_default_init (GSignondDbusIdentityIface *iface)
702 /* GObject signals for incoming D-Bus method calls: */
704 * GSignondDbusIdentity::handle-request-credentials-update:
705 * @object: A #GSignondDbusIdentity.
706 * @invocation: A #GDBusMethodInvocation.
707 * @arg_message: Argument passed by remote caller.
709 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method.
711 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_request_credentials_update() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
713 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
715 g_signal_new ("handle-request-credentials-update",
716 G_TYPE_FROM_INTERFACE (iface),
718 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_request_credentials_update),
719 g_signal_accumulator_true_handled,
721 g_cclosure_marshal_generic,
724 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
727 * GSignondDbusIdentity::handle-get-info:
728 * @object: A #GSignondDbusIdentity.
729 * @invocation: A #GDBusMethodInvocation.
731 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method.
733 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_get_info() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
735 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
737 g_signal_new ("handle-get-info",
738 G_TYPE_FROM_INTERFACE (iface),
740 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_get_info),
741 g_signal_accumulator_true_handled,
743 g_cclosure_marshal_generic,
746 G_TYPE_DBUS_METHOD_INVOCATION);
749 * GSignondDbusIdentity::handle-get-auth-session:
750 * @object: A #GSignondDbusIdentity.
751 * @invocation: A #GDBusMethodInvocation.
752 * @arg_method: Argument passed by remote caller.
754 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method.
756 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_get_auth_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
758 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
760 g_signal_new ("handle-get-auth-session",
761 G_TYPE_FROM_INTERFACE (iface),
763 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_get_auth_session),
764 g_signal_accumulator_true_handled,
766 g_cclosure_marshal_generic,
769 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
772 * GSignondDbusIdentity::handle-verify-user:
773 * @object: A #GSignondDbusIdentity.
774 * @invocation: A #GDBusMethodInvocation.
775 * @arg_params: Argument passed by remote caller.
777 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method.
779 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_verify_user() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
781 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
783 g_signal_new ("handle-verify-user",
784 G_TYPE_FROM_INTERFACE (iface),
786 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_verify_user),
787 g_signal_accumulator_true_handled,
789 g_cclosure_marshal_generic,
792 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
795 * GSignondDbusIdentity::handle-verify-secret:
796 * @object: A #GSignondDbusIdentity.
797 * @invocation: A #GDBusMethodInvocation.
798 * @arg_secret: Argument passed by remote caller.
800 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method.
802 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_verify_secret() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
804 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
806 g_signal_new ("handle-verify-secret",
807 G_TYPE_FROM_INTERFACE (iface),
809 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_verify_secret),
810 g_signal_accumulator_true_handled,
812 g_cclosure_marshal_generic,
815 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
818 * GSignondDbusIdentity::handle-remove:
819 * @object: A #GSignondDbusIdentity.
820 * @invocation: A #GDBusMethodInvocation.
822 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method.
824 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_remove() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
826 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
828 g_signal_new ("handle-remove",
829 G_TYPE_FROM_INTERFACE (iface),
831 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_remove),
832 g_signal_accumulator_true_handled,
834 g_cclosure_marshal_generic,
837 G_TYPE_DBUS_METHOD_INVOCATION);
840 * GSignondDbusIdentity::handle-sign-out:
841 * @object: A #GSignondDbusIdentity.
842 * @invocation: A #GDBusMethodInvocation.
844 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method.
846 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_sign_out() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
848 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
850 g_signal_new ("handle-sign-out",
851 G_TYPE_FROM_INTERFACE (iface),
853 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_sign_out),
854 g_signal_accumulator_true_handled,
856 g_cclosure_marshal_generic,
859 G_TYPE_DBUS_METHOD_INVOCATION);
862 * GSignondDbusIdentity::handle-store:
863 * @object: A #GSignondDbusIdentity.
864 * @invocation: A #GDBusMethodInvocation.
865 * @arg_unnamed_arg0: Argument passed by remote caller.
867 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method.
869 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_store() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
871 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
873 g_signal_new ("handle-store",
874 G_TYPE_FROM_INTERFACE (iface),
876 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_store),
877 g_signal_accumulator_true_handled,
879 g_cclosure_marshal_generic,
882 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
885 * GSignondDbusIdentity::handle-add-reference:
886 * @object: A #GSignondDbusIdentity.
887 * @invocation: A #GDBusMethodInvocation.
888 * @arg_reference: Argument passed by remote caller.
890 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method.
892 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_add_reference() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
894 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
896 g_signal_new ("handle-add-reference",
897 G_TYPE_FROM_INTERFACE (iface),
899 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_add_reference),
900 g_signal_accumulator_true_handled,
902 g_cclosure_marshal_generic,
905 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
908 * GSignondDbusIdentity::handle-remove-reference:
909 * @object: A #GSignondDbusIdentity.
910 * @invocation: A #GDBusMethodInvocation.
911 * @arg_reference: Argument passed by remote caller.
913 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method.
915 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gsignond_dbus_identity_complete_remove_reference() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
917 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
919 g_signal_new ("handle-remove-reference",
920 G_TYPE_FROM_INTERFACE (iface),
922 G_STRUCT_OFFSET (GSignondDbusIdentityIface, handle_remove_reference),
923 g_signal_accumulator_true_handled,
925 g_cclosure_marshal_generic,
928 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
930 /* GObject signals for received D-Bus signals: */
932 * GSignondDbusIdentity::unregistered:
933 * @object: A #GSignondDbusIdentity.
935 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.unregistered">"unregistered"</link> is received.
937 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
939 g_signal_new ("unregistered",
940 G_TYPE_FROM_INTERFACE (iface),
942 G_STRUCT_OFFSET (GSignondDbusIdentityIface, unregistered),
945 g_cclosure_marshal_generic,
950 * GSignondDbusIdentity::info-updated:
951 * @object: A #GSignondDbusIdentity.
952 * @arg_unnamed_arg0: Argument.
954 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.infoUpdated">"infoUpdated"</link> is received.
956 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
958 g_signal_new ("info-updated",
959 G_TYPE_FROM_INTERFACE (iface),
961 G_STRUCT_OFFSET (GSignondDbusIdentityIface, info_updated),
964 g_cclosure_marshal_generic,
970 typedef GSignondDbusIdentityIface GSignondDbusIdentityInterface;
971 G_DEFINE_INTERFACE (GSignondDbusIdentity, gsignond_dbus_identity, G_TYPE_OBJECT);
974 * gsignond_dbus_identity_emit_unregistered:
975 * @object: A #GSignondDbusIdentity.
977 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.unregistered">"unregistered"</link> D-Bus signal.
980 gsignond_dbus_identity_emit_unregistered (
981 GSignondDbusIdentity *object)
983 g_signal_emit_by_name (object, "unregistered");
987 * gsignond_dbus_identity_emit_info_updated:
988 * @object: A #GSignondDbusIdentity.
989 * @arg_unnamed_arg0: Argument to pass with the signal.
991 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-Identity.infoUpdated">"infoUpdated"</link> D-Bus signal.
994 gsignond_dbus_identity_emit_info_updated (
995 GSignondDbusIdentity *object,
996 gint arg_unnamed_arg0)
998 g_signal_emit_by_name (object, "info-updated", arg_unnamed_arg0);
1002 * gsignond_dbus_identity_call_request_credentials_update:
1003 * @proxy: A #GSignondDbusIdentityProxy.
1004 * @arg_message: Argument to pass with the method invocation.
1005 * @cancellable: (allow-none): A #GCancellable or %NULL.
1006 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1007 * @user_data: User data to pass to @callback.
1009 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method on @proxy.
1010 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1011 * You can then call gsignond_dbus_identity_call_request_credentials_update_finish() to get the result of the operation.
1013 * See gsignond_dbus_identity_call_request_credentials_update_sync() for the synchronous, blocking version of this method.
1016 gsignond_dbus_identity_call_request_credentials_update (
1017 GSignondDbusIdentity *proxy,
1018 const gchar *arg_message,
1019 GCancellable *cancellable,
1020 GAsyncReadyCallback callback,
1023 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1024 "requestCredentialsUpdate",
1025 g_variant_new ("(s)",
1027 G_DBUS_CALL_FLAGS_NONE,
1035 * gsignond_dbus_identity_call_request_credentials_update_finish:
1036 * @proxy: A #GSignondDbusIdentityProxy.
1037 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1038 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_request_credentials_update().
1039 * @error: Return location for error or %NULL.
1041 * Finishes an operation started with gsignond_dbus_identity_call_request_credentials_update().
1043 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1046 gsignond_dbus_identity_call_request_credentials_update_finish (
1047 GSignondDbusIdentity *proxy,
1048 guint *out_unnamed_arg1,
1053 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1056 g_variant_get (_ret,
1059 g_variant_unref (_ret);
1061 return _ret != NULL;
1065 * gsignond_dbus_identity_call_request_credentials_update_sync:
1066 * @proxy: A #GSignondDbusIdentityProxy.
1067 * @arg_message: Argument to pass with the method invocation.
1068 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1069 * @cancellable: (allow-none): A #GCancellable or %NULL.
1070 * @error: Return location for error or %NULL.
1072 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1074 * See gsignond_dbus_identity_call_request_credentials_update() for the asynchronous version of this method.
1076 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1079 gsignond_dbus_identity_call_request_credentials_update_sync (
1080 GSignondDbusIdentity *proxy,
1081 const gchar *arg_message,
1082 guint *out_unnamed_arg1,
1083 GCancellable *cancellable,
1087 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1088 "requestCredentialsUpdate",
1089 g_variant_new ("(s)",
1091 G_DBUS_CALL_FLAGS_NONE,
1097 g_variant_get (_ret,
1100 g_variant_unref (_ret);
1102 return _ret != NULL;
1106 * gsignond_dbus_identity_call_get_info:
1107 * @proxy: A #GSignondDbusIdentityProxy.
1108 * @cancellable: (allow-none): A #GCancellable or %NULL.
1109 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1110 * @user_data: User data to pass to @callback.
1112 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method on @proxy.
1113 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1114 * You can then call gsignond_dbus_identity_call_get_info_finish() to get the result of the operation.
1116 * See gsignond_dbus_identity_call_get_info_sync() for the synchronous, blocking version of this method.
1119 gsignond_dbus_identity_call_get_info (
1120 GSignondDbusIdentity *proxy,
1121 GCancellable *cancellable,
1122 GAsyncReadyCallback callback,
1125 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1127 g_variant_new ("()"),
1128 G_DBUS_CALL_FLAGS_NONE,
1136 * gsignond_dbus_identity_call_get_info_finish:
1137 * @proxy: A #GSignondDbusIdentityProxy.
1138 * @out_identityInfo: (out): Return location for return parameter or %NULL to ignore.
1139 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_get_info().
1140 * @error: Return location for error or %NULL.
1142 * Finishes an operation started with gsignond_dbus_identity_call_get_info().
1144 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1147 gsignond_dbus_identity_call_get_info_finish (
1148 GSignondDbusIdentity *proxy,
1149 GVariant **out_identityInfo,
1154 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1157 g_variant_get (_ret,
1160 g_variant_unref (_ret);
1162 return _ret != NULL;
1166 * gsignond_dbus_identity_call_get_info_sync:
1167 * @proxy: A #GSignondDbusIdentityProxy.
1168 * @out_identityInfo: (out): Return location for return parameter or %NULL to ignore.
1169 * @cancellable: (allow-none): A #GCancellable or %NULL.
1170 * @error: Return location for error or %NULL.
1172 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1174 * See gsignond_dbus_identity_call_get_info() for the asynchronous version of this method.
1176 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1179 gsignond_dbus_identity_call_get_info_sync (
1180 GSignondDbusIdentity *proxy,
1181 GVariant **out_identityInfo,
1182 GCancellable *cancellable,
1186 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1188 g_variant_new ("()"),
1189 G_DBUS_CALL_FLAGS_NONE,
1195 g_variant_get (_ret,
1198 g_variant_unref (_ret);
1200 return _ret != NULL;
1204 * gsignond_dbus_identity_call_get_auth_session:
1205 * @proxy: A #GSignondDbusIdentityProxy.
1206 * @arg_method: Argument to pass with the method invocation.
1207 * @cancellable: (allow-none): A #GCancellable or %NULL.
1208 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1209 * @user_data: User data to pass to @callback.
1211 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method on @proxy.
1212 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1213 * You can then call gsignond_dbus_identity_call_get_auth_session_finish() to get the result of the operation.
1215 * See gsignond_dbus_identity_call_get_auth_session_sync() for the synchronous, blocking version of this method.
1218 gsignond_dbus_identity_call_get_auth_session (
1219 GSignondDbusIdentity *proxy,
1220 const gchar *arg_method,
1221 GCancellable *cancellable,
1222 GAsyncReadyCallback callback,
1225 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1227 g_variant_new ("(s)",
1229 G_DBUS_CALL_FLAGS_NONE,
1237 * gsignond_dbus_identity_call_get_auth_session_finish:
1238 * @proxy: A #GSignondDbusIdentityProxy.
1239 * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
1240 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_get_auth_session().
1241 * @error: Return location for error or %NULL.
1243 * Finishes an operation started with gsignond_dbus_identity_call_get_auth_session().
1245 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1248 gsignond_dbus_identity_call_get_auth_session_finish (
1249 GSignondDbusIdentity *proxy,
1250 gchar **out_objectPath,
1255 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1258 g_variant_get (_ret,
1261 g_variant_unref (_ret);
1263 return _ret != NULL;
1267 * gsignond_dbus_identity_call_get_auth_session_sync:
1268 * @proxy: A #GSignondDbusIdentityProxy.
1269 * @arg_method: Argument to pass with the method invocation.
1270 * @out_objectPath: (out): Return location for return parameter or %NULL to ignore.
1271 * @cancellable: (allow-none): A #GCancellable or %NULL.
1272 * @error: Return location for error or %NULL.
1274 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1276 * See gsignond_dbus_identity_call_get_auth_session() for the asynchronous version of this method.
1278 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1281 gsignond_dbus_identity_call_get_auth_session_sync (
1282 GSignondDbusIdentity *proxy,
1283 const gchar *arg_method,
1284 gchar **out_objectPath,
1285 GCancellable *cancellable,
1289 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1291 g_variant_new ("(s)",
1293 G_DBUS_CALL_FLAGS_NONE,
1299 g_variant_get (_ret,
1302 g_variant_unref (_ret);
1304 return _ret != NULL;
1308 * gsignond_dbus_identity_call_verify_user:
1309 * @proxy: A #GSignondDbusIdentityProxy.
1310 * @arg_params: Argument to pass with the method invocation.
1311 * @cancellable: (allow-none): A #GCancellable or %NULL.
1312 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1313 * @user_data: User data to pass to @callback.
1315 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method on @proxy.
1316 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1317 * You can then call gsignond_dbus_identity_call_verify_user_finish() to get the result of the operation.
1319 * See gsignond_dbus_identity_call_verify_user_sync() for the synchronous, blocking version of this method.
1322 gsignond_dbus_identity_call_verify_user (
1323 GSignondDbusIdentity *proxy,
1324 GVariant *arg_params,
1325 GCancellable *cancellable,
1326 GAsyncReadyCallback callback,
1329 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1331 g_variant_new ("(@a{sv})",
1333 G_DBUS_CALL_FLAGS_NONE,
1341 * gsignond_dbus_identity_call_verify_user_finish:
1342 * @proxy: A #GSignondDbusIdentityProxy.
1343 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1344 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_verify_user().
1345 * @error: Return location for error or %NULL.
1347 * Finishes an operation started with gsignond_dbus_identity_call_verify_user().
1349 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1352 gsignond_dbus_identity_call_verify_user_finish (
1353 GSignondDbusIdentity *proxy,
1354 gboolean *out_unnamed_arg1,
1359 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1362 g_variant_get (_ret,
1365 g_variant_unref (_ret);
1367 return _ret != NULL;
1371 * gsignond_dbus_identity_call_verify_user_sync:
1372 * @proxy: A #GSignondDbusIdentityProxy.
1373 * @arg_params: Argument to pass with the method invocation.
1374 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1375 * @cancellable: (allow-none): A #GCancellable or %NULL.
1376 * @error: Return location for error or %NULL.
1378 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1380 * See gsignond_dbus_identity_call_verify_user() for the asynchronous version of this method.
1382 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1385 gsignond_dbus_identity_call_verify_user_sync (
1386 GSignondDbusIdentity *proxy,
1387 GVariant *arg_params,
1388 gboolean *out_unnamed_arg1,
1389 GCancellable *cancellable,
1393 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1395 g_variant_new ("(@a{sv})",
1397 G_DBUS_CALL_FLAGS_NONE,
1403 g_variant_get (_ret,
1406 g_variant_unref (_ret);
1408 return _ret != NULL;
1412 * gsignond_dbus_identity_call_verify_secret:
1413 * @proxy: A #GSignondDbusIdentityProxy.
1414 * @arg_secret: Argument to pass with the method invocation.
1415 * @cancellable: (allow-none): A #GCancellable or %NULL.
1416 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1417 * @user_data: User data to pass to @callback.
1419 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method on @proxy.
1420 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1421 * You can then call gsignond_dbus_identity_call_verify_secret_finish() to get the result of the operation.
1423 * See gsignond_dbus_identity_call_verify_secret_sync() for the synchronous, blocking version of this method.
1426 gsignond_dbus_identity_call_verify_secret (
1427 GSignondDbusIdentity *proxy,
1428 const gchar *arg_secret,
1429 GCancellable *cancellable,
1430 GAsyncReadyCallback callback,
1433 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1435 g_variant_new ("(s)",
1437 G_DBUS_CALL_FLAGS_NONE,
1445 * gsignond_dbus_identity_call_verify_secret_finish:
1446 * @proxy: A #GSignondDbusIdentityProxy.
1447 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1448 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_verify_secret().
1449 * @error: Return location for error or %NULL.
1451 * Finishes an operation started with gsignond_dbus_identity_call_verify_secret().
1453 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1456 gsignond_dbus_identity_call_verify_secret_finish (
1457 GSignondDbusIdentity *proxy,
1458 gboolean *out_unnamed_arg1,
1463 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1466 g_variant_get (_ret,
1469 g_variant_unref (_ret);
1471 return _ret != NULL;
1475 * gsignond_dbus_identity_call_verify_secret_sync:
1476 * @proxy: A #GSignondDbusIdentityProxy.
1477 * @arg_secret: Argument to pass with the method invocation.
1478 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1479 * @cancellable: (allow-none): A #GCancellable or %NULL.
1480 * @error: Return location for error or %NULL.
1482 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1484 * See gsignond_dbus_identity_call_verify_secret() for the asynchronous version of this method.
1486 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1489 gsignond_dbus_identity_call_verify_secret_sync (
1490 GSignondDbusIdentity *proxy,
1491 const gchar *arg_secret,
1492 gboolean *out_unnamed_arg1,
1493 GCancellable *cancellable,
1497 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1499 g_variant_new ("(s)",
1501 G_DBUS_CALL_FLAGS_NONE,
1507 g_variant_get (_ret,
1510 g_variant_unref (_ret);
1512 return _ret != NULL;
1516 * gsignond_dbus_identity_call_remove:
1517 * @proxy: A #GSignondDbusIdentityProxy.
1518 * @cancellable: (allow-none): A #GCancellable or %NULL.
1519 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1520 * @user_data: User data to pass to @callback.
1522 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method on @proxy.
1523 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1524 * You can then call gsignond_dbus_identity_call_remove_finish() to get the result of the operation.
1526 * See gsignond_dbus_identity_call_remove_sync() for the synchronous, blocking version of this method.
1529 gsignond_dbus_identity_call_remove (
1530 GSignondDbusIdentity *proxy,
1531 GCancellable *cancellable,
1532 GAsyncReadyCallback callback,
1535 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1537 g_variant_new ("()"),
1538 G_DBUS_CALL_FLAGS_NONE,
1546 * gsignond_dbus_identity_call_remove_finish:
1547 * @proxy: A #GSignondDbusIdentityProxy.
1548 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_remove().
1549 * @error: Return location for error or %NULL.
1551 * Finishes an operation started with gsignond_dbus_identity_call_remove().
1553 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1556 gsignond_dbus_identity_call_remove_finish (
1557 GSignondDbusIdentity *proxy,
1562 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1565 g_variant_get (_ret,
1567 g_variant_unref (_ret);
1569 return _ret != NULL;
1573 * gsignond_dbus_identity_call_remove_sync:
1574 * @proxy: A #GSignondDbusIdentityProxy.
1575 * @cancellable: (allow-none): A #GCancellable or %NULL.
1576 * @error: Return location for error or %NULL.
1578 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1580 * See gsignond_dbus_identity_call_remove() for the asynchronous version of this method.
1582 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1585 gsignond_dbus_identity_call_remove_sync (
1586 GSignondDbusIdentity *proxy,
1587 GCancellable *cancellable,
1591 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1593 g_variant_new ("()"),
1594 G_DBUS_CALL_FLAGS_NONE,
1600 g_variant_get (_ret,
1602 g_variant_unref (_ret);
1604 return _ret != NULL;
1608 * gsignond_dbus_identity_call_sign_out:
1609 * @proxy: A #GSignondDbusIdentityProxy.
1610 * @cancellable: (allow-none): A #GCancellable or %NULL.
1611 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1612 * @user_data: User data to pass to @callback.
1614 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method on @proxy.
1615 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1616 * You can then call gsignond_dbus_identity_call_sign_out_finish() to get the result of the operation.
1618 * See gsignond_dbus_identity_call_sign_out_sync() for the synchronous, blocking version of this method.
1621 gsignond_dbus_identity_call_sign_out (
1622 GSignondDbusIdentity *proxy,
1623 GCancellable *cancellable,
1624 GAsyncReadyCallback callback,
1627 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1629 g_variant_new ("()"),
1630 G_DBUS_CALL_FLAGS_NONE,
1638 * gsignond_dbus_identity_call_sign_out_finish:
1639 * @proxy: A #GSignondDbusIdentityProxy.
1640 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1641 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_sign_out().
1642 * @error: Return location for error or %NULL.
1644 * Finishes an operation started with gsignond_dbus_identity_call_sign_out().
1646 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1649 gsignond_dbus_identity_call_sign_out_finish (
1650 GSignondDbusIdentity *proxy,
1651 gboolean *out_unnamed_arg0,
1656 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1659 g_variant_get (_ret,
1662 g_variant_unref (_ret);
1664 return _ret != NULL;
1668 * gsignond_dbus_identity_call_sign_out_sync:
1669 * @proxy: A #GSignondDbusIdentityProxy.
1670 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1671 * @cancellable: (allow-none): A #GCancellable or %NULL.
1672 * @error: Return location for error or %NULL.
1674 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1676 * See gsignond_dbus_identity_call_sign_out() for the asynchronous version of this method.
1678 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1681 gsignond_dbus_identity_call_sign_out_sync (
1682 GSignondDbusIdentity *proxy,
1683 gboolean *out_unnamed_arg0,
1684 GCancellable *cancellable,
1688 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1690 g_variant_new ("()"),
1691 G_DBUS_CALL_FLAGS_NONE,
1697 g_variant_get (_ret,
1700 g_variant_unref (_ret);
1702 return _ret != NULL;
1706 * gsignond_dbus_identity_call_store:
1707 * @proxy: A #GSignondDbusIdentityProxy.
1708 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1709 * @cancellable: (allow-none): A #GCancellable or %NULL.
1710 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1711 * @user_data: User data to pass to @callback.
1713 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method on @proxy.
1714 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1715 * You can then call gsignond_dbus_identity_call_store_finish() to get the result of the operation.
1717 * See gsignond_dbus_identity_call_store_sync() for the synchronous, blocking version of this method.
1720 gsignond_dbus_identity_call_store (
1721 GSignondDbusIdentity *proxy,
1722 GVariant *arg_unnamed_arg0,
1723 GCancellable *cancellable,
1724 GAsyncReadyCallback callback,
1727 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1729 g_variant_new ("(@a{sv})",
1731 G_DBUS_CALL_FLAGS_NONE,
1739 * gsignond_dbus_identity_call_store_finish:
1740 * @proxy: A #GSignondDbusIdentityProxy.
1741 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1742 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_store().
1743 * @error: Return location for error or %NULL.
1745 * Finishes an operation started with gsignond_dbus_identity_call_store().
1747 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1750 gsignond_dbus_identity_call_store_finish (
1751 GSignondDbusIdentity *proxy,
1752 guint *out_unnamed_arg1,
1757 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1760 g_variant_get (_ret,
1763 g_variant_unref (_ret);
1765 return _ret != NULL;
1769 * gsignond_dbus_identity_call_store_sync:
1770 * @proxy: A #GSignondDbusIdentityProxy.
1771 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1772 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1773 * @cancellable: (allow-none): A #GCancellable or %NULL.
1774 * @error: Return location for error or %NULL.
1776 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1778 * See gsignond_dbus_identity_call_store() for the asynchronous version of this method.
1780 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1783 gsignond_dbus_identity_call_store_sync (
1784 GSignondDbusIdentity *proxy,
1785 GVariant *arg_unnamed_arg0,
1786 guint *out_unnamed_arg1,
1787 GCancellable *cancellable,
1791 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1793 g_variant_new ("(@a{sv})",
1795 G_DBUS_CALL_FLAGS_NONE,
1801 g_variant_get (_ret,
1804 g_variant_unref (_ret);
1806 return _ret != NULL;
1810 * gsignond_dbus_identity_call_add_reference:
1811 * @proxy: A #GSignondDbusIdentityProxy.
1812 * @arg_reference: Argument to pass with the method invocation.
1813 * @cancellable: (allow-none): A #GCancellable or %NULL.
1814 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1815 * @user_data: User data to pass to @callback.
1817 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method on @proxy.
1818 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1819 * You can then call gsignond_dbus_identity_call_add_reference_finish() to get the result of the operation.
1821 * See gsignond_dbus_identity_call_add_reference_sync() for the synchronous, blocking version of this method.
1824 gsignond_dbus_identity_call_add_reference (
1825 GSignondDbusIdentity *proxy,
1826 const gchar *arg_reference,
1827 GCancellable *cancellable,
1828 GAsyncReadyCallback callback,
1831 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1833 g_variant_new ("(s)",
1835 G_DBUS_CALL_FLAGS_NONE,
1843 * gsignond_dbus_identity_call_add_reference_finish:
1844 * @proxy: A #GSignondDbusIdentityProxy.
1845 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1846 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_add_reference().
1847 * @error: Return location for error or %NULL.
1849 * Finishes an operation started with gsignond_dbus_identity_call_add_reference().
1851 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1854 gsignond_dbus_identity_call_add_reference_finish (
1855 GSignondDbusIdentity *proxy,
1856 gint *out_unnamed_arg1,
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_identity_call_add_reference_sync:
1874 * @proxy: A #GSignondDbusIdentityProxy.
1875 * @arg_reference: Argument to pass with the method invocation.
1876 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1877 * @cancellable: (allow-none): A #GCancellable or %NULL.
1878 * @error: Return location for error or %NULL.
1880 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1882 * See gsignond_dbus_identity_call_add_reference() for the asynchronous version of this method.
1884 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1887 gsignond_dbus_identity_call_add_reference_sync (
1888 GSignondDbusIdentity *proxy,
1889 const gchar *arg_reference,
1890 gint *out_unnamed_arg1,
1891 GCancellable *cancellable,
1895 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1897 g_variant_new ("(s)",
1899 G_DBUS_CALL_FLAGS_NONE,
1905 g_variant_get (_ret,
1908 g_variant_unref (_ret);
1910 return _ret != NULL;
1914 * gsignond_dbus_identity_call_remove_reference:
1915 * @proxy: A #GSignondDbusIdentityProxy.
1916 * @arg_reference: Argument to pass with the method invocation.
1917 * @cancellable: (allow-none): A #GCancellable or %NULL.
1918 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1919 * @user_data: User data to pass to @callback.
1921 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method on @proxy.
1922 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1923 * You can then call gsignond_dbus_identity_call_remove_reference_finish() to get the result of the operation.
1925 * See gsignond_dbus_identity_call_remove_reference_sync() for the synchronous, blocking version of this method.
1928 gsignond_dbus_identity_call_remove_reference (
1929 GSignondDbusIdentity *proxy,
1930 const gchar *arg_reference,
1931 GCancellable *cancellable,
1932 GAsyncReadyCallback callback,
1935 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1937 g_variant_new ("(s)",
1939 G_DBUS_CALL_FLAGS_NONE,
1947 * gsignond_dbus_identity_call_remove_reference_finish:
1948 * @proxy: A #GSignondDbusIdentityProxy.
1949 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1950 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_call_remove_reference().
1951 * @error: Return location for error or %NULL.
1953 * Finishes an operation started with gsignond_dbus_identity_call_remove_reference().
1955 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1958 gsignond_dbus_identity_call_remove_reference_finish (
1959 GSignondDbusIdentity *proxy,
1960 gint *out_unnamed_arg1,
1965 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1968 g_variant_get (_ret,
1971 g_variant_unref (_ret);
1973 return _ret != NULL;
1977 * gsignond_dbus_identity_call_remove_reference_sync:
1978 * @proxy: A #GSignondDbusIdentityProxy.
1979 * @arg_reference: Argument to pass with the method invocation.
1980 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1981 * @cancellable: (allow-none): A #GCancellable or %NULL.
1982 * @error: Return location for error or %NULL.
1984 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1986 * See gsignond_dbus_identity_call_remove_reference() for the asynchronous version of this method.
1988 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1991 gsignond_dbus_identity_call_remove_reference_sync (
1992 GSignondDbusIdentity *proxy,
1993 const gchar *arg_reference,
1994 gint *out_unnamed_arg1,
1995 GCancellable *cancellable,
1999 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2001 g_variant_new ("(s)",
2003 G_DBUS_CALL_FLAGS_NONE,
2009 g_variant_get (_ret,
2012 g_variant_unref (_ret);
2014 return _ret != NULL;
2018 * gsignond_dbus_identity_complete_request_credentials_update:
2019 * @object: A #GSignondDbusIdentity.
2020 * @invocation: (transfer full): A #GDBusMethodInvocation.
2021 * @unnamed_arg1: Parameter to return.
2023 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.requestCredentialsUpdate">requestCredentialsUpdate()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2025 * This method will free @invocation, you cannot use it afterwards.
2028 gsignond_dbus_identity_complete_request_credentials_update (
2029 GSignondDbusIdentity *object,
2030 GDBusMethodInvocation *invocation,
2033 g_dbus_method_invocation_return_value (invocation,
2034 g_variant_new ("(u)",
2039 * gsignond_dbus_identity_complete_get_info:
2040 * @object: A #GSignondDbusIdentity.
2041 * @invocation: (transfer full): A #GDBusMethodInvocation.
2042 * @identityInfo: Parameter to return.
2044 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getInfo">getInfo()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2046 * This method will free @invocation, you cannot use it afterwards.
2049 gsignond_dbus_identity_complete_get_info (
2050 GSignondDbusIdentity *object,
2051 GDBusMethodInvocation *invocation,
2052 GVariant *identityInfo)
2054 g_dbus_method_invocation_return_value (invocation,
2055 g_variant_new ("(@a{sv})",
2060 * gsignond_dbus_identity_complete_get_auth_session:
2061 * @object: A #GSignondDbusIdentity.
2062 * @invocation: (transfer full): A #GDBusMethodInvocation.
2063 * @objectPath: Parameter to return.
2065 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.getAuthSession">getAuthSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2067 * This method will free @invocation, you cannot use it afterwards.
2070 gsignond_dbus_identity_complete_get_auth_session (
2071 GSignondDbusIdentity *object,
2072 GDBusMethodInvocation *invocation,
2073 const gchar *objectPath)
2075 g_dbus_method_invocation_return_value (invocation,
2076 g_variant_new ("(o)",
2081 * gsignond_dbus_identity_complete_verify_user:
2082 * @object: A #GSignondDbusIdentity.
2083 * @invocation: (transfer full): A #GDBusMethodInvocation.
2084 * @unnamed_arg1: Parameter to return.
2086 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifyUser">verifyUser()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2088 * This method will free @invocation, you cannot use it afterwards.
2091 gsignond_dbus_identity_complete_verify_user (
2092 GSignondDbusIdentity *object,
2093 GDBusMethodInvocation *invocation,
2094 gboolean unnamed_arg1)
2096 g_dbus_method_invocation_return_value (invocation,
2097 g_variant_new ("(b)",
2102 * gsignond_dbus_identity_complete_verify_secret:
2103 * @object: A #GSignondDbusIdentity.
2104 * @invocation: (transfer full): A #GDBusMethodInvocation.
2105 * @unnamed_arg1: Parameter to return.
2107 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.verifySecret">verifySecret()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2109 * This method will free @invocation, you cannot use it afterwards.
2112 gsignond_dbus_identity_complete_verify_secret (
2113 GSignondDbusIdentity *object,
2114 GDBusMethodInvocation *invocation,
2115 gboolean unnamed_arg1)
2117 g_dbus_method_invocation_return_value (invocation,
2118 g_variant_new ("(b)",
2123 * gsignond_dbus_identity_complete_remove:
2124 * @object: A #GSignondDbusIdentity.
2125 * @invocation: (transfer full): A #GDBusMethodInvocation.
2127 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.remove">remove()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2129 * This method will free @invocation, you cannot use it afterwards.
2132 gsignond_dbus_identity_complete_remove (
2133 GSignondDbusIdentity *object,
2134 GDBusMethodInvocation *invocation)
2136 g_dbus_method_invocation_return_value (invocation,
2137 g_variant_new ("()"));
2141 * gsignond_dbus_identity_complete_sign_out:
2142 * @object: A #GSignondDbusIdentity.
2143 * @invocation: (transfer full): A #GDBusMethodInvocation.
2144 * @unnamed_arg0: Parameter to return.
2146 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.signOut">signOut()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2148 * This method will free @invocation, you cannot use it afterwards.
2151 gsignond_dbus_identity_complete_sign_out (
2152 GSignondDbusIdentity *object,
2153 GDBusMethodInvocation *invocation,
2154 gboolean unnamed_arg0)
2156 g_dbus_method_invocation_return_value (invocation,
2157 g_variant_new ("(b)",
2162 * gsignond_dbus_identity_complete_store:
2163 * @object: A #GSignondDbusIdentity.
2164 * @invocation: (transfer full): A #GDBusMethodInvocation.
2165 * @unnamed_arg1: Parameter to return.
2167 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.store">store()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2169 * This method will free @invocation, you cannot use it afterwards.
2172 gsignond_dbus_identity_complete_store (
2173 GSignondDbusIdentity *object,
2174 GDBusMethodInvocation *invocation,
2177 g_dbus_method_invocation_return_value (invocation,
2178 g_variant_new ("(u)",
2183 * gsignond_dbus_identity_complete_add_reference:
2184 * @object: A #GSignondDbusIdentity.
2185 * @invocation: (transfer full): A #GDBusMethodInvocation.
2186 * @unnamed_arg1: Parameter to return.
2188 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.addReference">addReference()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2190 * This method will free @invocation, you cannot use it afterwards.
2193 gsignond_dbus_identity_complete_add_reference (
2194 GSignondDbusIdentity *object,
2195 GDBusMethodInvocation *invocation,
2198 g_dbus_method_invocation_return_value (invocation,
2199 g_variant_new ("(i)",
2204 * gsignond_dbus_identity_complete_remove_reference:
2205 * @object: A #GSignondDbusIdentity.
2206 * @invocation: (transfer full): A #GDBusMethodInvocation.
2207 * @unnamed_arg1: Parameter to return.
2209 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-Identity.removeReference">removeReference()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2211 * This method will free @invocation, you cannot use it afterwards.
2214 gsignond_dbus_identity_complete_remove_reference (
2215 GSignondDbusIdentity *object,
2216 GDBusMethodInvocation *invocation,
2219 g_dbus_method_invocation_return_value (invocation,
2220 g_variant_new ("(i)",
2224 /* ------------------------------------------------------------------------ */
2227 * GSignondDbusIdentityProxy:
2229 * The #GSignondDbusIdentityProxy structure contains only private data and should only be accessed using the provided API.
2233 * GSignondDbusIdentityProxyClass:
2234 * @parent_class: The parent class.
2236 * Class structure for #GSignondDbusIdentityProxy.
2239 struct _GSignondDbusIdentityProxyPrivate
2244 static void gsignond_dbus_identity_proxy_iface_init (GSignondDbusIdentityIface *iface);
2246 G_DEFINE_TYPE_WITH_CODE (GSignondDbusIdentityProxy, gsignond_dbus_identity_proxy, G_TYPE_DBUS_PROXY,
2247 G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_IDENTITY, gsignond_dbus_identity_proxy_iface_init));
2250 gsignond_dbus_identity_proxy_finalize (GObject *object)
2252 GSignondDbusIdentityProxy *proxy = GSIGNOND_DBUS_IDENTITY_PROXY (object);
2253 g_datalist_clear (&proxy->priv->qdata);
2254 G_OBJECT_CLASS (gsignond_dbus_identity_proxy_parent_class)->finalize (object);
2258 gsignond_dbus_identity_proxy_get_property (GObject *object,
2266 gsignond_dbus_identity_proxy_set_property (GObject *object,
2268 const GValue *value,
2274 gsignond_dbus_identity_proxy_g_signal (GDBusProxy *proxy,
2275 const gchar *sender_name,
2276 const gchar *signal_name,
2277 GVariant *parameters)
2279 _ExtendedGDBusSignalInfo *info;
2286 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info.parent_struct, signal_name);
2289 num_params = g_variant_n_children (parameters);
2290 paramv = g_new0 (GValue, num_params + 1);
2291 g_value_init (¶mv[0], GSIGNOND_DBUS_TYPE_IDENTITY);
2292 g_value_set_object (¶mv[0], proxy);
2293 g_variant_iter_init (&iter, parameters);
2295 while ((child = g_variant_iter_next_value (&iter)) != NULL)
2297 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2298 if (arg_info->use_gvariant)
2300 g_value_init (¶mv[n], G_TYPE_VARIANT);
2301 g_value_set_variant (¶mv[n], child);
2305 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2306 g_variant_unref (child);
2308 signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_IDENTITY);
2309 g_signal_emitv (paramv, signal_id, 0, NULL);
2310 for (n = 0; n < num_params + 1; n++)
2311 g_value_unset (¶mv[n]);
2316 gsignond_dbus_identity_proxy_g_properties_changed (GDBusProxy *_proxy,
2317 GVariant *changed_properties,
2318 const gchar *const *invalidated_properties)
2320 GSignondDbusIdentityProxy *proxy = GSIGNOND_DBUS_IDENTITY_PROXY (_proxy);
2324 _ExtendedGDBusPropertyInfo *info;
2325 g_variant_get (changed_properties, "a{sv}", &iter);
2326 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2328 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info.parent_struct, key);
2329 g_datalist_remove_data (&proxy->priv->qdata, key);
2331 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2333 g_variant_iter_free (iter);
2334 for (n = 0; invalidated_properties[n] != NULL; n++)
2336 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info.parent_struct, invalidated_properties[n]);
2337 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2339 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2344 gsignond_dbus_identity_proxy_init (GSignondDbusIdentityProxy *proxy)
2346 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, GSignondDbusIdentityProxyPrivate);
2347 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), gsignond_dbus_identity_interface_info ());
2351 gsignond_dbus_identity_proxy_class_init (GSignondDbusIdentityProxyClass *klass)
2353 GObjectClass *gobject_class;
2354 GDBusProxyClass *proxy_class;
2356 g_type_class_add_private (klass, sizeof (GSignondDbusIdentityProxyPrivate));
2358 gobject_class = G_OBJECT_CLASS (klass);
2359 gobject_class->finalize = gsignond_dbus_identity_proxy_finalize;
2360 gobject_class->get_property = gsignond_dbus_identity_proxy_get_property;
2361 gobject_class->set_property = gsignond_dbus_identity_proxy_set_property;
2363 proxy_class = G_DBUS_PROXY_CLASS (klass);
2364 proxy_class->g_signal = gsignond_dbus_identity_proxy_g_signal;
2365 proxy_class->g_properties_changed = gsignond_dbus_identity_proxy_g_properties_changed;
2370 gsignond_dbus_identity_proxy_iface_init (GSignondDbusIdentityIface *iface)
2375 * gsignond_dbus_identity_proxy_new:
2376 * @connection: A #GDBusConnection.
2377 * @flags: Flags from the #GDBusProxyFlags enumeration.
2378 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2379 * @object_path: An object path.
2380 * @cancellable: (allow-none): A #GCancellable or %NULL.
2381 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2382 * @user_data: User data to pass to @callback.
2384 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>. See g_dbus_proxy_new() for more details.
2386 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2387 * You can then call gsignond_dbus_identity_proxy_new_finish() to get the result of the operation.
2389 * See gsignond_dbus_identity_proxy_new_sync() for the synchronous, blocking version of this constructor.
2392 gsignond_dbus_identity_proxy_new (
2393 GDBusConnection *connection,
2394 GDBusProxyFlags flags,
2396 const gchar *object_path,
2397 GCancellable *cancellable,
2398 GAsyncReadyCallback callback,
2401 g_async_initable_new_async (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2405 * gsignond_dbus_identity_proxy_new_finish:
2406 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_proxy_new().
2407 * @error: Return location for error or %NULL
2409 * Finishes an operation started with gsignond_dbus_identity_proxy_new().
2411 * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2413 GSignondDbusIdentity *
2414 gsignond_dbus_identity_proxy_new_finish (
2419 GObject *source_object;
2420 source_object = g_async_result_get_source_object (res);
2421 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2422 g_object_unref (source_object);
2424 return GSIGNOND_DBUS_IDENTITY (ret);
2430 * gsignond_dbus_identity_proxy_new_sync:
2431 * @connection: A #GDBusConnection.
2432 * @flags: Flags from the #GDBusProxyFlags enumeration.
2433 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2434 * @object_path: An object path.
2435 * @cancellable: (allow-none): A #GCancellable or %NULL.
2436 * @error: Return location for error or %NULL
2438 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>. See g_dbus_proxy_new_sync() for more details.
2440 * The calling thread is blocked until a reply is received.
2442 * See gsignond_dbus_identity_proxy_new() for the asynchronous version of this constructor.
2444 * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2446 GSignondDbusIdentity *
2447 gsignond_dbus_identity_proxy_new_sync (
2448 GDBusConnection *connection,
2449 GDBusProxyFlags flags,
2451 const gchar *object_path,
2452 GCancellable *cancellable,
2456 ret = g_initable_new (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2458 return GSIGNOND_DBUS_IDENTITY (ret);
2465 * gsignond_dbus_identity_proxy_new_for_bus:
2466 * @bus_type: A #GBusType.
2467 * @flags: Flags from the #GDBusProxyFlags enumeration.
2468 * @name: A bus name (well-known or unique).
2469 * @object_path: An object path.
2470 * @cancellable: (allow-none): A #GCancellable or %NULL.
2471 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2472 * @user_data: User data to pass to @callback.
2474 * Like gsignond_dbus_identity_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
2476 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2477 * You can then call gsignond_dbus_identity_proxy_new_for_bus_finish() to get the result of the operation.
2479 * See gsignond_dbus_identity_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2482 gsignond_dbus_identity_proxy_new_for_bus (
2484 GDBusProxyFlags flags,
2486 const gchar *object_path,
2487 GCancellable *cancellable,
2488 GAsyncReadyCallback callback,
2491 g_async_initable_new_async (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2495 * gsignond_dbus_identity_proxy_new_for_bus_finish:
2496 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_identity_proxy_new_for_bus().
2497 * @error: Return location for error or %NULL
2499 * Finishes an operation started with gsignond_dbus_identity_proxy_new_for_bus().
2501 * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2503 GSignondDbusIdentity *
2504 gsignond_dbus_identity_proxy_new_for_bus_finish (
2509 GObject *source_object;
2510 source_object = g_async_result_get_source_object (res);
2511 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2512 g_object_unref (source_object);
2514 return GSIGNOND_DBUS_IDENTITY (ret);
2520 * gsignond_dbus_identity_proxy_new_for_bus_sync:
2521 * @bus_type: A #GBusType.
2522 * @flags: Flags from the #GDBusProxyFlags enumeration.
2523 * @name: A bus name (well-known or unique).
2524 * @object_path: An object path.
2525 * @cancellable: (allow-none): A #GCancellable or %NULL.
2526 * @error: Return location for error or %NULL
2528 * Like gsignond_dbus_identity_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2530 * The calling thread is blocked until a reply is received.
2532 * See gsignond_dbus_identity_proxy_new_for_bus() for the asynchronous version of this constructor.
2534 * Returns: (transfer full) (type GSignondDbusIdentityProxy): The constructed proxy object or %NULL if @error is set.
2536 GSignondDbusIdentity *
2537 gsignond_dbus_identity_proxy_new_for_bus_sync (
2539 GDBusProxyFlags flags,
2541 const gchar *object_path,
2542 GCancellable *cancellable,
2546 ret = g_initable_new (GSIGNOND_DBUS_TYPE_IDENTITY_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.Identity", NULL);
2548 return GSIGNOND_DBUS_IDENTITY (ret);
2554 /* ------------------------------------------------------------------------ */
2557 * GSignondDbusIdentitySkeleton:
2559 * The #GSignondDbusIdentitySkeleton structure contains only private data and should only be accessed using the provided API.
2563 * GSignondDbusIdentitySkeletonClass:
2564 * @parent_class: The parent class.
2566 * Class structure for #GSignondDbusIdentitySkeleton.
2569 struct _GSignondDbusIdentitySkeletonPrivate
2572 GList *changed_properties;
2573 GSource *changed_properties_idle_source;
2574 GMainContext *context;
2579 _gsignond_dbus_identity_skeleton_handle_method_call (
2580 GDBusConnection *connection,
2581 const gchar *sender,
2582 const gchar *object_path,
2583 const gchar *interface_name,
2584 const gchar *method_name,
2585 GVariant *parameters,
2586 GDBusMethodInvocation *invocation,
2589 GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (user_data);
2590 _ExtendedGDBusMethodInfo *info;
2598 GValue return_value = G_VALUE_INIT;
2599 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2600 g_assert (info != NULL);
2601 num_params = g_variant_n_children (parameters);
2602 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
2604 g_value_init (¶mv[n], GSIGNOND_DBUS_TYPE_IDENTITY);
2605 g_value_set_object (¶mv[n++], skeleton);
2606 g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2607 g_value_set_object (¶mv[n++], invocation);
2608 if (info->pass_fdlist)
2611 g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
2612 g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2614 g_assert_not_reached ();
2617 g_variant_iter_init (&iter, parameters);
2618 while ((child = g_variant_iter_next_value (&iter)) != NULL)
2620 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2621 if (arg_info->use_gvariant)
2623 g_value_init (¶mv[n], G_TYPE_VARIANT);
2624 g_value_set_variant (¶mv[n], child);
2628 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2629 g_variant_unref (child);
2631 signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_IDENTITY);
2632 g_value_init (&return_value, G_TYPE_BOOLEAN);
2633 g_signal_emitv (paramv, signal_id, 0, &return_value);
2634 if (!g_value_get_boolean (&return_value))
2635 g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
2636 g_value_unset (&return_value);
2637 for (n = 0; n < num_params + num_extra; n++)
2638 g_value_unset (¶mv[n]);
2643 _gsignond_dbus_identity_skeleton_handle_get_property (
2644 GDBusConnection *connection,
2645 const gchar *sender,
2646 const gchar *object_path,
2647 const gchar *interface_name,
2648 const gchar *property_name,
2652 GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (user_data);
2653 GValue value = G_VALUE_INIT;
2655 _ExtendedGDBusPropertyInfo *info;
2658 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info.parent_struct, property_name);
2659 g_assert (info != NULL);
2660 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2663 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2667 g_value_init (&value, pspec->value_type);
2668 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2669 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2670 g_value_unset (&value);
2676 _gsignond_dbus_identity_skeleton_handle_set_property (
2677 GDBusConnection *connection,
2678 const gchar *sender,
2679 const gchar *object_path,
2680 const gchar *interface_name,
2681 const gchar *property_name,
2686 GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (user_data);
2687 GValue value = G_VALUE_INIT;
2689 _ExtendedGDBusPropertyInfo *info;
2692 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_identity_interface_info.parent_struct, property_name);
2693 g_assert (info != NULL);
2694 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2697 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2701 if (info->use_gvariant)
2702 g_value_set_variant (&value, variant);
2704 g_dbus_gvariant_to_gvalue (variant, &value);
2705 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2706 g_value_unset (&value);
2712 static const GDBusInterfaceVTable _gsignond_dbus_identity_skeleton_vtable =
2714 _gsignond_dbus_identity_skeleton_handle_method_call,
2715 _gsignond_dbus_identity_skeleton_handle_get_property,
2716 _gsignond_dbus_identity_skeleton_handle_set_property
2719 static GDBusInterfaceInfo *
2720 gsignond_dbus_identity_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
2722 return gsignond_dbus_identity_interface_info ();
2725 static GDBusInterfaceVTable *
2726 gsignond_dbus_identity_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
2728 return (GDBusInterfaceVTable *) &_gsignond_dbus_identity_skeleton_vtable;
2732 gsignond_dbus_identity_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2734 GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (_skeleton);
2736 GVariantBuilder builder;
2738 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2739 if (_gsignond_dbus_identity_interface_info.parent_struct.properties == NULL)
2741 for (n = 0; _gsignond_dbus_identity_interface_info.parent_struct.properties[n] != NULL; n++)
2743 GDBusPropertyInfo *info = _gsignond_dbus_identity_interface_info.parent_struct.properties[n];
2744 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2747 value = _gsignond_dbus_identity_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.Identity", info->name, NULL, skeleton);
2750 g_variant_take_ref (value);
2751 g_variant_builder_add (&builder, "{sv}", info->name, value);
2752 g_variant_unref (value);
2757 return g_variant_builder_end (&builder);
2761 gsignond_dbus_identity_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
2766 _gsignond_dbus_identity_on_signal_unregistered (
2767 GSignondDbusIdentity *object)
2769 GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (object);
2771 GList *connections, *l;
2772 GVariant *signal_variant;
2773 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2775 signal_variant = g_variant_ref_sink (g_variant_new ("()"));
2776 for (l = connections; l != NULL; l = l->next)
2778 GDBusConnection *connection = l->data;
2779 g_dbus_connection_emit_signal (connection,
2780 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.Identity", "unregistered",
2781 signal_variant, NULL);
2783 g_variant_unref (signal_variant);
2784 g_list_free_full (connections, g_object_unref);
2788 _gsignond_dbus_identity_on_signal_info_updated (
2789 GSignondDbusIdentity *object,
2790 gint arg_unnamed_arg0)
2792 GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (object);
2794 GList *connections, *l;
2795 GVariant *signal_variant;
2796 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2798 signal_variant = g_variant_ref_sink (g_variant_new ("(i)",
2800 for (l = connections; l != NULL; l = l->next)
2802 GDBusConnection *connection = l->data;
2803 g_dbus_connection_emit_signal (connection,
2804 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.Identity", "infoUpdated",
2805 signal_variant, NULL);
2807 g_variant_unref (signal_variant);
2808 g_list_free_full (connections, g_object_unref);
2811 static void gsignond_dbus_identity_skeleton_iface_init (GSignondDbusIdentityIface *iface);
2812 G_DEFINE_TYPE_WITH_CODE (GSignondDbusIdentitySkeleton, gsignond_dbus_identity_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2813 G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_IDENTITY, gsignond_dbus_identity_skeleton_iface_init));
2816 gsignond_dbus_identity_skeleton_finalize (GObject *object)
2818 GSignondDbusIdentitySkeleton *skeleton = GSIGNOND_DBUS_IDENTITY_SKELETON (object);
2819 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
2820 if (skeleton->priv->changed_properties_idle_source != NULL)
2821 g_source_destroy (skeleton->priv->changed_properties_idle_source);
2822 g_main_context_unref (skeleton->priv->context);
2823 g_mutex_clear (&skeleton->priv->lock);
2824 G_OBJECT_CLASS (gsignond_dbus_identity_skeleton_parent_class)->finalize (object);
2828 gsignond_dbus_identity_skeleton_init (GSignondDbusIdentitySkeleton *skeleton)
2830 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GSIGNOND_DBUS_TYPE_IDENTITY_SKELETON, GSignondDbusIdentitySkeletonPrivate);
2831 g_mutex_init (&skeleton->priv->lock);
2832 skeleton->priv->context = g_main_context_ref_thread_default ();
2836 gsignond_dbus_identity_skeleton_class_init (GSignondDbusIdentitySkeletonClass *klass)
2838 GObjectClass *gobject_class;
2839 GDBusInterfaceSkeletonClass *skeleton_class;
2841 g_type_class_add_private (klass, sizeof (GSignondDbusIdentitySkeletonPrivate));
2843 gobject_class = G_OBJECT_CLASS (klass);
2844 gobject_class->finalize = gsignond_dbus_identity_skeleton_finalize;
2846 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
2847 skeleton_class->get_info = gsignond_dbus_identity_skeleton_dbus_interface_get_info;
2848 skeleton_class->get_properties = gsignond_dbus_identity_skeleton_dbus_interface_get_properties;
2849 skeleton_class->flush = gsignond_dbus_identity_skeleton_dbus_interface_flush;
2850 skeleton_class->get_vtable = gsignond_dbus_identity_skeleton_dbus_interface_get_vtable;
2854 gsignond_dbus_identity_skeleton_iface_init (GSignondDbusIdentityIface *iface)
2856 iface->unregistered = _gsignond_dbus_identity_on_signal_unregistered;
2857 iface->info_updated = _gsignond_dbus_identity_on_signal_info_updated;
2861 * gsignond_dbus_identity_skeleton_new:
2863 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-Identity.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.Identity</link>.
2865 * Returns: (transfer full) (type GSignondDbusIdentitySkeleton): The skeleton object.
2867 GSignondDbusIdentity *
2868 gsignond_dbus_identity_skeleton_new (void)
2870 return GSIGNOND_DBUS_IDENTITY (g_object_new (GSIGNOND_DBUS_TYPE_IDENTITY_SKELETON, NULL));