2 * Generated by gdbus-codegen 2.50.2. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
11 #include "gdbus-daemon-generated.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 org.freedesktop.DBus
153 * ------------------------------------------------------------------------
157 * SECTION:_GFreedesktopDBus
158 * @title: _GFreedesktopDBus
159 * @short_description: Generated C code for the org.freedesktop.DBus D-Bus interface
161 * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-DBus.top_of_page">org.freedesktop.DBus</link> D-Bus interface in C.
164 /* ---- Introspection data for org.freedesktop.DBus ---- */
166 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_hello_OUT_ARG_assigned_name =
170 (gchar *) "assigned_name",
177 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_hello_OUT_ARG_pointers[] =
179 &__g_freedesktop_dbus_method_info_hello_OUT_ARG_assigned_name,
183 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_hello =
189 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_hello_OUT_ARG_pointers,
196 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_request_name_IN_ARG_name =
207 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_request_name_IN_ARG_flags =
218 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_request_name_IN_ARG_pointers[] =
220 &__g_freedesktop_dbus_method_info_request_name_IN_ARG_name,
221 &__g_freedesktop_dbus_method_info_request_name_IN_ARG_flags,
225 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_request_name_OUT_ARG_value =
236 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_request_name_OUT_ARG_pointers[] =
238 &__g_freedesktop_dbus_method_info_request_name_OUT_ARG_value,
242 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_request_name =
246 (gchar *) "RequestName",
247 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_request_name_IN_ARG_pointers,
248 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_request_name_OUT_ARG_pointers,
251 "handle-request-name",
255 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_release_name_IN_ARG_name =
266 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_release_name_IN_ARG_pointers[] =
268 &__g_freedesktop_dbus_method_info_release_name_IN_ARG_name,
272 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_release_name_OUT_ARG_value =
283 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_release_name_OUT_ARG_pointers[] =
285 &__g_freedesktop_dbus_method_info_release_name_OUT_ARG_value,
289 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_release_name =
293 (gchar *) "ReleaseName",
294 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_release_name_IN_ARG_pointers,
295 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_release_name_OUT_ARG_pointers,
298 "handle-release-name",
302 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_start_service_by_name_IN_ARG_name =
313 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_start_service_by_name_IN_ARG_flags =
324 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_start_service_by_name_IN_ARG_pointers[] =
326 &__g_freedesktop_dbus_method_info_start_service_by_name_IN_ARG_name,
327 &__g_freedesktop_dbus_method_info_start_service_by_name_IN_ARG_flags,
331 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_start_service_by_name_OUT_ARG_value =
342 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_start_service_by_name_OUT_ARG_pointers[] =
344 &__g_freedesktop_dbus_method_info_start_service_by_name_OUT_ARG_value,
348 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_start_service_by_name =
352 (gchar *) "StartServiceByName",
353 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_start_service_by_name_IN_ARG_pointers,
354 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_start_service_by_name_OUT_ARG_pointers,
357 "handle-start-service-by-name",
361 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_name_has_owner_IN_ARG_name =
372 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_name_has_owner_IN_ARG_pointers[] =
374 &__g_freedesktop_dbus_method_info_name_has_owner_IN_ARG_name,
378 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_name_has_owner_OUT_ARG_has_owner =
382 (gchar *) "has_owner",
389 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_name_has_owner_OUT_ARG_pointers[] =
391 &__g_freedesktop_dbus_method_info_name_has_owner_OUT_ARG_has_owner,
395 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_name_has_owner =
399 (gchar *) "NameHasOwner",
400 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_name_has_owner_IN_ARG_pointers,
401 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_name_has_owner_OUT_ARG_pointers,
404 "handle-name-has-owner",
408 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_list_names_OUT_ARG_names =
419 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_list_names_OUT_ARG_pointers[] =
421 &__g_freedesktop_dbus_method_info_list_names_OUT_ARG_names,
425 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_list_names =
429 (gchar *) "ListNames",
431 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_list_names_OUT_ARG_pointers,
438 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_list_activatable_names_OUT_ARG_activatable_names =
442 (gchar *) "activatable_names",
449 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_list_activatable_names_OUT_ARG_pointers[] =
451 &__g_freedesktop_dbus_method_info_list_activatable_names_OUT_ARG_activatable_names,
455 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_list_activatable_names =
459 (gchar *) "ListActivatableNames",
461 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_list_activatable_names_OUT_ARG_pointers,
464 "handle-list-activatable-names",
468 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_add_match_IN_ARG_rule =
479 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_add_match_IN_ARG_pointers[] =
481 &__g_freedesktop_dbus_method_info_add_match_IN_ARG_rule,
485 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_add_match =
489 (gchar *) "AddMatch",
490 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_add_match_IN_ARG_pointers,
498 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_remove_match_IN_ARG_rule =
509 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_remove_match_IN_ARG_pointers[] =
511 &__g_freedesktop_dbus_method_info_remove_match_IN_ARG_rule,
515 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_remove_match =
519 (gchar *) "RemoveMatch",
520 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_remove_match_IN_ARG_pointers,
524 "handle-remove-match",
528 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_name_owner_IN_ARG_name =
539 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_name_owner_IN_ARG_pointers[] =
541 &__g_freedesktop_dbus_method_info_get_name_owner_IN_ARG_name,
545 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_name_owner_OUT_ARG_unique_name =
549 (gchar *) "unique_name",
556 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_name_owner_OUT_ARG_pointers[] =
558 &__g_freedesktop_dbus_method_info_get_name_owner_OUT_ARG_unique_name,
562 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_get_name_owner =
566 (gchar *) "GetNameOwner",
567 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_name_owner_IN_ARG_pointers,
568 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_name_owner_OUT_ARG_pointers,
571 "handle-get-name-owner",
575 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_list_queued_owners_IN_ARG_name =
586 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_list_queued_owners_IN_ARG_pointers[] =
588 &__g_freedesktop_dbus_method_info_list_queued_owners_IN_ARG_name,
592 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_list_queued_owners_OUT_ARG_queued_owners =
596 (gchar *) "queued_owners",
603 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_list_queued_owners_OUT_ARG_pointers[] =
605 &__g_freedesktop_dbus_method_info_list_queued_owners_OUT_ARG_queued_owners,
609 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_list_queued_owners =
613 (gchar *) "ListQueuedOwners",
614 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_list_queued_owners_IN_ARG_pointers,
615 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_list_queued_owners_OUT_ARG_pointers,
618 "handle-list-queued-owners",
622 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_connection_unix_user_IN_ARG_name =
633 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_connection_unix_user_IN_ARG_pointers[] =
635 &__g_freedesktop_dbus_method_info_get_connection_unix_user_IN_ARG_name,
639 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_connection_unix_user_OUT_ARG_uid =
650 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_connection_unix_user_OUT_ARG_pointers[] =
652 &__g_freedesktop_dbus_method_info_get_connection_unix_user_OUT_ARG_uid,
656 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_get_connection_unix_user =
660 (gchar *) "GetConnectionUnixUser",
661 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_connection_unix_user_IN_ARG_pointers,
662 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_connection_unix_user_OUT_ARG_pointers,
665 "handle-get-connection-unix-user",
669 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_connection_unix_process_id_IN_ARG_name =
680 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_connection_unix_process_id_IN_ARG_pointers[] =
682 &__g_freedesktop_dbus_method_info_get_connection_unix_process_id_IN_ARG_name,
686 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_connection_unix_process_id_OUT_ARG_pid =
697 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_connection_unix_process_id_OUT_ARG_pointers[] =
699 &__g_freedesktop_dbus_method_info_get_connection_unix_process_id_OUT_ARG_pid,
703 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_get_connection_unix_process_id =
707 (gchar *) "GetConnectionUnixProcessID",
708 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_connection_unix_process_id_IN_ARG_pointers,
709 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_connection_unix_process_id_OUT_ARG_pointers,
712 "handle-get-connection-unix-process-id",
716 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_connection_selinux_security_context_IN_ARG_name =
727 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_connection_selinux_security_context_IN_ARG_pointers[] =
729 &__g_freedesktop_dbus_method_info_get_connection_selinux_security_context_IN_ARG_name,
733 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_connection_selinux_security_context_OUT_ARG_security_context =
737 (gchar *) "security_context",
744 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_connection_selinux_security_context_OUT_ARG_pointers[] =
746 &__g_freedesktop_dbus_method_info_get_connection_selinux_security_context_OUT_ARG_security_context,
750 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_get_connection_selinux_security_context =
754 (gchar *) "GetConnectionSELinuxSecurityContext",
755 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_connection_selinux_security_context_IN_ARG_pointers,
756 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_connection_selinux_security_context_OUT_ARG_pointers,
759 "handle-get-connection-selinux-security-context",
763 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_update_activation_environment_IN_ARG_environment =
767 (gchar *) "environment",
774 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_update_activation_environment_IN_ARG_pointers[] =
776 &__g_freedesktop_dbus_method_info_update_activation_environment_IN_ARG_environment,
780 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_update_activation_environment =
784 (gchar *) "UpdateActivationEnvironment",
785 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_update_activation_environment_IN_ARG_pointers,
789 "handle-update-activation-environment",
793 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_reload_config =
797 (gchar *) "ReloadConfig",
802 "handle-reload-config",
806 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_method_info_get_id_OUT_ARG_unique_id =
810 (gchar *) "unique_id",
817 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_method_info_get_id_OUT_ARG_pointers[] =
819 &__g_freedesktop_dbus_method_info_get_id_OUT_ARG_unique_id,
823 static const _ExtendedGDBusMethodInfo __g_freedesktop_dbus_method_info_get_id =
829 (GDBusArgInfo **) &__g_freedesktop_dbus_method_info_get_id_OUT_ARG_pointers,
836 static const _ExtendedGDBusMethodInfo * const __g_freedesktop_dbus_method_info_pointers[] =
838 &__g_freedesktop_dbus_method_info_hello,
839 &__g_freedesktop_dbus_method_info_request_name,
840 &__g_freedesktop_dbus_method_info_release_name,
841 &__g_freedesktop_dbus_method_info_start_service_by_name,
842 &__g_freedesktop_dbus_method_info_name_has_owner,
843 &__g_freedesktop_dbus_method_info_list_names,
844 &__g_freedesktop_dbus_method_info_list_activatable_names,
845 &__g_freedesktop_dbus_method_info_add_match,
846 &__g_freedesktop_dbus_method_info_remove_match,
847 &__g_freedesktop_dbus_method_info_get_name_owner,
848 &__g_freedesktop_dbus_method_info_list_queued_owners,
849 &__g_freedesktop_dbus_method_info_get_connection_unix_user,
850 &__g_freedesktop_dbus_method_info_get_connection_unix_process_id,
851 &__g_freedesktop_dbus_method_info_get_connection_selinux_security_context,
852 &__g_freedesktop_dbus_method_info_update_activation_environment,
853 &__g_freedesktop_dbus_method_info_reload_config,
854 &__g_freedesktop_dbus_method_info_get_id,
858 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_signal_info_name_owner_changed_ARG_name =
869 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_signal_info_name_owner_changed_ARG_old_owner =
873 (gchar *) "old_owner",
880 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_signal_info_name_owner_changed_ARG_new_owner =
884 (gchar *) "new_owner",
891 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_signal_info_name_owner_changed_ARG_pointers[] =
893 &__g_freedesktop_dbus_signal_info_name_owner_changed_ARG_name,
894 &__g_freedesktop_dbus_signal_info_name_owner_changed_ARG_old_owner,
895 &__g_freedesktop_dbus_signal_info_name_owner_changed_ARG_new_owner,
899 static const _ExtendedGDBusSignalInfo __g_freedesktop_dbus_signal_info_name_owner_changed =
903 (gchar *) "NameOwnerChanged",
904 (GDBusArgInfo **) &__g_freedesktop_dbus_signal_info_name_owner_changed_ARG_pointers,
910 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_signal_info_name_lost_ARG_name =
921 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_signal_info_name_lost_ARG_pointers[] =
923 &__g_freedesktop_dbus_signal_info_name_lost_ARG_name,
927 static const _ExtendedGDBusSignalInfo __g_freedesktop_dbus_signal_info_name_lost =
931 (gchar *) "NameLost",
932 (GDBusArgInfo **) &__g_freedesktop_dbus_signal_info_name_lost_ARG_pointers,
938 static const _ExtendedGDBusArgInfo __g_freedesktop_dbus_signal_info_name_acquired_ARG_name =
949 static const _ExtendedGDBusArgInfo * const __g_freedesktop_dbus_signal_info_name_acquired_ARG_pointers[] =
951 &__g_freedesktop_dbus_signal_info_name_acquired_ARG_name,
955 static const _ExtendedGDBusSignalInfo __g_freedesktop_dbus_signal_info_name_acquired =
959 (gchar *) "NameAcquired",
960 (GDBusArgInfo **) &__g_freedesktop_dbus_signal_info_name_acquired_ARG_pointers,
966 static const _ExtendedGDBusSignalInfo * const __g_freedesktop_dbus_signal_info_pointers[] =
968 &__g_freedesktop_dbus_signal_info_name_owner_changed,
969 &__g_freedesktop_dbus_signal_info_name_lost,
970 &__g_freedesktop_dbus_signal_info_name_acquired,
974 static const _ExtendedGDBusInterfaceInfo __g_freedesktop_dbus_interface_info =
978 (gchar *) "org.freedesktop.DBus",
979 (GDBusMethodInfo **) &__g_freedesktop_dbus_method_info_pointers,
980 (GDBusSignalInfo **) &__g_freedesktop_dbus_signal_info_pointers,
989 * _g_freedesktop_dbus_interface_info:
991 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-DBus.top_of_page">org.freedesktop.DBus</link> D-Bus interface.
993 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
996 _g_freedesktop_dbus_interface_info (void)
998 return (GDBusInterfaceInfo *) &__g_freedesktop_dbus_interface_info.parent_struct;
1002 * _g_freedesktop_dbus_override_properties:
1003 * @klass: The class structure for a #GObject<!-- -->-derived class.
1004 * @property_id_begin: The property id to assign to the first overridden property.
1006 * Overrides all #GObject properties in the #_GFreedesktopDBus interface for a concrete class.
1007 * The properties are overridden in the order they are defined.
1009 * Returns: The last property id.
1012 _g_freedesktop_dbus_override_properties (GObjectClass *klass, guint property_id_begin)
1014 return property_id_begin - 1;
1020 * _GFreedesktopDBus:
1022 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-DBus.top_of_page">org.freedesktop.DBus</link>.
1026 * _GFreedesktopDBusIface:
1027 * @parent_iface: The parent interface.
1028 * @handle_add_match: Handler for the #_GFreedesktopDBus::handle-add-match signal.
1029 * @handle_get_connection_selinux_security_context: Handler for the #_GFreedesktopDBus::handle-get-connection-selinux-security-context signal.
1030 * @handle_get_connection_unix_process_id: Handler for the #_GFreedesktopDBus::handle-get-connection-unix-process-id signal.
1031 * @handle_get_connection_unix_user: Handler for the #_GFreedesktopDBus::handle-get-connection-unix-user signal.
1032 * @handle_get_id: Handler for the #_GFreedesktopDBus::handle-get-id signal.
1033 * @handle_get_name_owner: Handler for the #_GFreedesktopDBus::handle-get-name-owner signal.
1034 * @handle_hello: Handler for the #_GFreedesktopDBus::handle-hello signal.
1035 * @handle_list_activatable_names: Handler for the #_GFreedesktopDBus::handle-list-activatable-names signal.
1036 * @handle_list_names: Handler for the #_GFreedesktopDBus::handle-list-names signal.
1037 * @handle_list_queued_owners: Handler for the #_GFreedesktopDBus::handle-list-queued-owners signal.
1038 * @handle_name_has_owner: Handler for the #_GFreedesktopDBus::handle-name-has-owner signal.
1039 * @handle_release_name: Handler for the #_GFreedesktopDBus::handle-release-name signal.
1040 * @handle_reload_config: Handler for the #_GFreedesktopDBus::handle-reload-config signal.
1041 * @handle_remove_match: Handler for the #_GFreedesktopDBus::handle-remove-match signal.
1042 * @handle_request_name: Handler for the #_GFreedesktopDBus::handle-request-name signal.
1043 * @handle_start_service_by_name: Handler for the #_GFreedesktopDBus::handle-start-service-by-name signal.
1044 * @handle_update_activation_environment: Handler for the #_GFreedesktopDBus::handle-update-activation-environment signal.
1045 * @name_acquired: Handler for the #_GFreedesktopDBus::name-acquired signal.
1046 * @name_lost: Handler for the #_GFreedesktopDBus::name-lost signal.
1047 * @name_owner_changed: Handler for the #_GFreedesktopDBus::name-owner-changed signal.
1049 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-DBus.top_of_page">org.freedesktop.DBus</link>.
1052 typedef _GFreedesktopDBusIface _GFreedesktopDBusInterface;
1053 G_DEFINE_INTERFACE (_GFreedesktopDBus, _g_freedesktop_dbus, G_TYPE_OBJECT);
1056 _g_freedesktop_dbus_default_init (_GFreedesktopDBusIface *iface)
1058 /* GObject signals for incoming D-Bus method calls: */
1060 * _GFreedesktopDBus::handle-hello:
1061 * @object: A #_GFreedesktopDBus.
1062 * @invocation: A #GDBusMethodInvocation.
1064 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.Hello">Hello()</link> D-Bus method.
1066 * 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 _g_freedesktop_dbus_complete_hello() 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.
1068 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1070 g_signal_new ("handle-hello",
1071 G_TYPE_FROM_INTERFACE (iface),
1073 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_hello),
1074 g_signal_accumulator_true_handled,
1076 g_cclosure_marshal_generic,
1079 G_TYPE_DBUS_METHOD_INVOCATION);
1082 * _GFreedesktopDBus::handle-request-name:
1083 * @object: A #_GFreedesktopDBus.
1084 * @invocation: A #GDBusMethodInvocation.
1085 * @arg_name: Argument passed by remote caller.
1086 * @arg_flags: Argument passed by remote caller.
1088 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.RequestName">RequestName()</link> D-Bus method.
1090 * 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 _g_freedesktop_dbus_complete_request_name() 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.
1092 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1094 g_signal_new ("handle-request-name",
1095 G_TYPE_FROM_INTERFACE (iface),
1097 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_request_name),
1098 g_signal_accumulator_true_handled,
1100 g_cclosure_marshal_generic,
1103 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT);
1106 * _GFreedesktopDBus::handle-release-name:
1107 * @object: A #_GFreedesktopDBus.
1108 * @invocation: A #GDBusMethodInvocation.
1109 * @arg_name: Argument passed by remote caller.
1111 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.ReleaseName">ReleaseName()</link> D-Bus method.
1113 * 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 _g_freedesktop_dbus_complete_release_name() 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.
1115 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1117 g_signal_new ("handle-release-name",
1118 G_TYPE_FROM_INTERFACE (iface),
1120 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_release_name),
1121 g_signal_accumulator_true_handled,
1123 g_cclosure_marshal_generic,
1126 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1129 * _GFreedesktopDBus::handle-start-service-by-name:
1130 * @object: A #_GFreedesktopDBus.
1131 * @invocation: A #GDBusMethodInvocation.
1132 * @arg_name: Argument passed by remote caller.
1133 * @arg_flags: Argument passed by remote caller.
1135 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.StartServiceByName">StartServiceByName()</link> D-Bus method.
1137 * 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 _g_freedesktop_dbus_complete_start_service_by_name() 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.
1139 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1141 g_signal_new ("handle-start-service-by-name",
1142 G_TYPE_FROM_INTERFACE (iface),
1144 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_start_service_by_name),
1145 g_signal_accumulator_true_handled,
1147 g_cclosure_marshal_generic,
1150 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT);
1153 * _GFreedesktopDBus::handle-name-has-owner:
1154 * @object: A #_GFreedesktopDBus.
1155 * @invocation: A #GDBusMethodInvocation.
1156 * @arg_name: Argument passed by remote caller.
1158 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.NameHasOwner">NameHasOwner()</link> D-Bus method.
1160 * 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 _g_freedesktop_dbus_complete_name_has_owner() 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.
1162 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1164 g_signal_new ("handle-name-has-owner",
1165 G_TYPE_FROM_INTERFACE (iface),
1167 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_name_has_owner),
1168 g_signal_accumulator_true_handled,
1170 g_cclosure_marshal_generic,
1173 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1176 * _GFreedesktopDBus::handle-list-names:
1177 * @object: A #_GFreedesktopDBus.
1178 * @invocation: A #GDBusMethodInvocation.
1180 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.ListNames">ListNames()</link> D-Bus method.
1182 * 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 _g_freedesktop_dbus_complete_list_names() 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.
1184 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1186 g_signal_new ("handle-list-names",
1187 G_TYPE_FROM_INTERFACE (iface),
1189 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_list_names),
1190 g_signal_accumulator_true_handled,
1192 g_cclosure_marshal_generic,
1195 G_TYPE_DBUS_METHOD_INVOCATION);
1198 * _GFreedesktopDBus::handle-list-activatable-names:
1199 * @object: A #_GFreedesktopDBus.
1200 * @invocation: A #GDBusMethodInvocation.
1202 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.ListActivatableNames">ListActivatableNames()</link> D-Bus method.
1204 * 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 _g_freedesktop_dbus_complete_list_activatable_names() 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.
1206 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1208 g_signal_new ("handle-list-activatable-names",
1209 G_TYPE_FROM_INTERFACE (iface),
1211 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_list_activatable_names),
1212 g_signal_accumulator_true_handled,
1214 g_cclosure_marshal_generic,
1217 G_TYPE_DBUS_METHOD_INVOCATION);
1220 * _GFreedesktopDBus::handle-add-match:
1221 * @object: A #_GFreedesktopDBus.
1222 * @invocation: A #GDBusMethodInvocation.
1223 * @arg_rule: Argument passed by remote caller.
1225 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.AddMatch">AddMatch()</link> D-Bus method.
1227 * 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 _g_freedesktop_dbus_complete_add_match() 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.
1229 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1231 g_signal_new ("handle-add-match",
1232 G_TYPE_FROM_INTERFACE (iface),
1234 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_add_match),
1235 g_signal_accumulator_true_handled,
1237 g_cclosure_marshal_generic,
1240 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1243 * _GFreedesktopDBus::handle-remove-match:
1244 * @object: A #_GFreedesktopDBus.
1245 * @invocation: A #GDBusMethodInvocation.
1246 * @arg_rule: Argument passed by remote caller.
1248 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.RemoveMatch">RemoveMatch()</link> D-Bus method.
1250 * 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 _g_freedesktop_dbus_complete_remove_match() 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.
1252 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1254 g_signal_new ("handle-remove-match",
1255 G_TYPE_FROM_INTERFACE (iface),
1257 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_remove_match),
1258 g_signal_accumulator_true_handled,
1260 g_cclosure_marshal_generic,
1263 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1266 * _GFreedesktopDBus::handle-get-name-owner:
1267 * @object: A #_GFreedesktopDBus.
1268 * @invocation: A #GDBusMethodInvocation.
1269 * @arg_name: Argument passed by remote caller.
1271 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.GetNameOwner">GetNameOwner()</link> D-Bus method.
1273 * 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 _g_freedesktop_dbus_complete_get_name_owner() 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.
1275 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1277 g_signal_new ("handle-get-name-owner",
1278 G_TYPE_FROM_INTERFACE (iface),
1280 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_get_name_owner),
1281 g_signal_accumulator_true_handled,
1283 g_cclosure_marshal_generic,
1286 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1289 * _GFreedesktopDBus::handle-list-queued-owners:
1290 * @object: A #_GFreedesktopDBus.
1291 * @invocation: A #GDBusMethodInvocation.
1292 * @arg_name: Argument passed by remote caller.
1294 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.ListQueuedOwners">ListQueuedOwners()</link> D-Bus method.
1296 * 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 _g_freedesktop_dbus_complete_list_queued_owners() 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.
1298 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1300 g_signal_new ("handle-list-queued-owners",
1301 G_TYPE_FROM_INTERFACE (iface),
1303 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_list_queued_owners),
1304 g_signal_accumulator_true_handled,
1306 g_cclosure_marshal_generic,
1309 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1312 * _GFreedesktopDBus::handle-get-connection-unix-user:
1313 * @object: A #_GFreedesktopDBus.
1314 * @invocation: A #GDBusMethodInvocation.
1315 * @arg_name: Argument passed by remote caller.
1317 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixUser">GetConnectionUnixUser()</link> D-Bus method.
1319 * 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 _g_freedesktop_dbus_complete_get_connection_unix_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.
1321 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1323 g_signal_new ("handle-get-connection-unix-user",
1324 G_TYPE_FROM_INTERFACE (iface),
1326 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_get_connection_unix_user),
1327 g_signal_accumulator_true_handled,
1329 g_cclosure_marshal_generic,
1332 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1335 * _GFreedesktopDBus::handle-get-connection-unix-process-id:
1336 * @object: A #_GFreedesktopDBus.
1337 * @invocation: A #GDBusMethodInvocation.
1338 * @arg_name: Argument passed by remote caller.
1340 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixProcessID">GetConnectionUnixProcessID()</link> D-Bus method.
1342 * 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 _g_freedesktop_dbus_complete_get_connection_unix_process_id() 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.
1344 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1346 g_signal_new ("handle-get-connection-unix-process-id",
1347 G_TYPE_FROM_INTERFACE (iface),
1349 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_get_connection_unix_process_id),
1350 g_signal_accumulator_true_handled,
1352 g_cclosure_marshal_generic,
1355 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1358 * _GFreedesktopDBus::handle-get-connection-selinux-security-context:
1359 * @object: A #_GFreedesktopDBus.
1360 * @invocation: A #GDBusMethodInvocation.
1361 * @arg_name: Argument passed by remote caller.
1363 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionSELinuxSecurityContext">GetConnectionSELinuxSecurityContext()</link> D-Bus method.
1365 * 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 _g_freedesktop_dbus_complete_get_connection_selinux_security_context() 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.
1367 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1369 g_signal_new ("handle-get-connection-selinux-security-context",
1370 G_TYPE_FROM_INTERFACE (iface),
1372 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_get_connection_selinux_security_context),
1373 g_signal_accumulator_true_handled,
1375 g_cclosure_marshal_generic,
1378 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1381 * _GFreedesktopDBus::handle-update-activation-environment:
1382 * @object: A #_GFreedesktopDBus.
1383 * @invocation: A #GDBusMethodInvocation.
1384 * @arg_environment: Argument passed by remote caller.
1386 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.UpdateActivationEnvironment">UpdateActivationEnvironment()</link> D-Bus method.
1388 * 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 _g_freedesktop_dbus_complete_update_activation_environment() 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.
1390 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1392 g_signal_new ("handle-update-activation-environment",
1393 G_TYPE_FROM_INTERFACE (iface),
1395 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_update_activation_environment),
1396 g_signal_accumulator_true_handled,
1398 g_cclosure_marshal_generic,
1401 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
1404 * _GFreedesktopDBus::handle-reload-config:
1405 * @object: A #_GFreedesktopDBus.
1406 * @invocation: A #GDBusMethodInvocation.
1408 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.ReloadConfig">ReloadConfig()</link> D-Bus method.
1410 * 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 _g_freedesktop_dbus_complete_reload_config() 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.
1412 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1414 g_signal_new ("handle-reload-config",
1415 G_TYPE_FROM_INTERFACE (iface),
1417 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_reload_config),
1418 g_signal_accumulator_true_handled,
1420 g_cclosure_marshal_generic,
1423 G_TYPE_DBUS_METHOD_INVOCATION);
1426 * _GFreedesktopDBus::handle-get-id:
1427 * @object: A #_GFreedesktopDBus.
1428 * @invocation: A #GDBusMethodInvocation.
1430 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-DBus.GetId">GetId()</link> D-Bus method.
1432 * 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 _g_freedesktop_dbus_complete_get_id() 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.
1434 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1436 g_signal_new ("handle-get-id",
1437 G_TYPE_FROM_INTERFACE (iface),
1439 G_STRUCT_OFFSET (_GFreedesktopDBusIface, handle_get_id),
1440 g_signal_accumulator_true_handled,
1442 g_cclosure_marshal_generic,
1445 G_TYPE_DBUS_METHOD_INVOCATION);
1447 /* GObject signals for received D-Bus signals: */
1449 * _GFreedesktopDBus::name-owner-changed:
1450 * @object: A #_GFreedesktopDBus.
1451 * @arg_name: Argument.
1452 * @arg_old_owner: Argument.
1453 * @arg_new_owner: Argument.
1455 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-DBus.NameOwnerChanged">"NameOwnerChanged"</link> is received.
1457 * 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.
1459 g_signal_new ("name-owner-changed",
1460 G_TYPE_FROM_INTERFACE (iface),
1462 G_STRUCT_OFFSET (_GFreedesktopDBusIface, name_owner_changed),
1465 g_cclosure_marshal_generic,
1467 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
1470 * _GFreedesktopDBus::name-lost:
1471 * @object: A #_GFreedesktopDBus.
1472 * @arg_name: Argument.
1474 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-DBus.NameLost">"NameLost"</link> is received.
1476 * 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.
1478 g_signal_new ("name-lost",
1479 G_TYPE_FROM_INTERFACE (iface),
1481 G_STRUCT_OFFSET (_GFreedesktopDBusIface, name_lost),
1484 g_cclosure_marshal_generic,
1489 * _GFreedesktopDBus::name-acquired:
1490 * @object: A #_GFreedesktopDBus.
1491 * @arg_name: Argument.
1493 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-DBus.NameAcquired">"NameAcquired"</link> is received.
1495 * 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.
1497 g_signal_new ("name-acquired",
1498 G_TYPE_FROM_INTERFACE (iface),
1500 G_STRUCT_OFFSET (_GFreedesktopDBusIface, name_acquired),
1503 g_cclosure_marshal_generic,
1510 * _g_freedesktop_dbus_emit_name_owner_changed:
1511 * @object: A #_GFreedesktopDBus.
1512 * @arg_name: Argument to pass with the signal.
1513 * @arg_old_owner: Argument to pass with the signal.
1514 * @arg_new_owner: Argument to pass with the signal.
1516 * Emits the <link linkend="gdbus-signal-org-freedesktop-DBus.NameOwnerChanged">"NameOwnerChanged"</link> D-Bus signal.
1519 _g_freedesktop_dbus_emit_name_owner_changed (
1520 _GFreedesktopDBus *object,
1521 const gchar *arg_name,
1522 const gchar *arg_old_owner,
1523 const gchar *arg_new_owner)
1525 g_signal_emit_by_name (object, "name-owner-changed", arg_name, arg_old_owner, arg_new_owner);
1529 * _g_freedesktop_dbus_emit_name_lost:
1530 * @object: A #_GFreedesktopDBus.
1531 * @arg_name: Argument to pass with the signal.
1533 * Emits the <link linkend="gdbus-signal-org-freedesktop-DBus.NameLost">"NameLost"</link> D-Bus signal.
1536 _g_freedesktop_dbus_emit_name_lost (
1537 _GFreedesktopDBus *object,
1538 const gchar *arg_name)
1540 g_signal_emit_by_name (object, "name-lost", arg_name);
1544 * _g_freedesktop_dbus_emit_name_acquired:
1545 * @object: A #_GFreedesktopDBus.
1546 * @arg_name: Argument to pass with the signal.
1548 * Emits the <link linkend="gdbus-signal-org-freedesktop-DBus.NameAcquired">"NameAcquired"</link> D-Bus signal.
1551 _g_freedesktop_dbus_emit_name_acquired (
1552 _GFreedesktopDBus *object,
1553 const gchar *arg_name)
1555 g_signal_emit_by_name (object, "name-acquired", arg_name);
1559 * _g_freedesktop_dbus_call_hello:
1560 * @proxy: A #_GFreedesktopDBusProxy.
1561 * @cancellable: (allow-none): A #GCancellable or %NULL.
1562 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1563 * @user_data: User data to pass to @callback.
1565 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.Hello">Hello()</link> D-Bus method on @proxy.
1566 * 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.
1567 * You can then call _g_freedesktop_dbus_call_hello_finish() to get the result of the operation.
1569 * See _g_freedesktop_dbus_call_hello_sync() for the synchronous, blocking version of this method.
1572 _g_freedesktop_dbus_call_hello (
1573 _GFreedesktopDBus *proxy,
1574 GCancellable *cancellable,
1575 GAsyncReadyCallback callback,
1578 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1580 g_variant_new ("()"),
1581 G_DBUS_CALL_FLAGS_NONE,
1589 * _g_freedesktop_dbus_call_hello_finish:
1590 * @proxy: A #_GFreedesktopDBusProxy.
1591 * @out_assigned_name: (out): Return location for return parameter or %NULL to ignore.
1592 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_hello().
1593 * @error: Return location for error or %NULL.
1595 * Finishes an operation started with _g_freedesktop_dbus_call_hello().
1597 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1600 _g_freedesktop_dbus_call_hello_finish (
1601 _GFreedesktopDBus *proxy,
1602 gchar **out_assigned_name,
1607 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1610 g_variant_get (_ret,
1613 g_variant_unref (_ret);
1615 return _ret != NULL;
1619 * _g_freedesktop_dbus_call_hello_sync:
1620 * @proxy: A #_GFreedesktopDBusProxy.
1621 * @out_assigned_name: (out): Return location for return parameter or %NULL to ignore.
1622 * @cancellable: (allow-none): A #GCancellable or %NULL.
1623 * @error: Return location for error or %NULL.
1625 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.Hello">Hello()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1627 * See _g_freedesktop_dbus_call_hello() for the asynchronous version of this method.
1629 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1632 _g_freedesktop_dbus_call_hello_sync (
1633 _GFreedesktopDBus *proxy,
1634 gchar **out_assigned_name,
1635 GCancellable *cancellable,
1639 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1641 g_variant_new ("()"),
1642 G_DBUS_CALL_FLAGS_NONE,
1648 g_variant_get (_ret,
1651 g_variant_unref (_ret);
1653 return _ret != NULL;
1657 * _g_freedesktop_dbus_call_request_name:
1658 * @proxy: A #_GFreedesktopDBusProxy.
1659 * @arg_name: Argument to pass with the method invocation.
1660 * @arg_flags: Argument to pass with the method invocation.
1661 * @cancellable: (allow-none): A #GCancellable or %NULL.
1662 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1663 * @user_data: User data to pass to @callback.
1665 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.RequestName">RequestName()</link> D-Bus method on @proxy.
1666 * 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.
1667 * You can then call _g_freedesktop_dbus_call_request_name_finish() to get the result of the operation.
1669 * See _g_freedesktop_dbus_call_request_name_sync() for the synchronous, blocking version of this method.
1672 _g_freedesktop_dbus_call_request_name (
1673 _GFreedesktopDBus *proxy,
1674 const gchar *arg_name,
1676 GCancellable *cancellable,
1677 GAsyncReadyCallback callback,
1680 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1682 g_variant_new ("(su)",
1685 G_DBUS_CALL_FLAGS_NONE,
1693 * _g_freedesktop_dbus_call_request_name_finish:
1694 * @proxy: A #_GFreedesktopDBusProxy.
1695 * @out_value: (out): Return location for return parameter or %NULL to ignore.
1696 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_request_name().
1697 * @error: Return location for error or %NULL.
1699 * Finishes an operation started with _g_freedesktop_dbus_call_request_name().
1701 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1704 _g_freedesktop_dbus_call_request_name_finish (
1705 _GFreedesktopDBus *proxy,
1711 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1714 g_variant_get (_ret,
1717 g_variant_unref (_ret);
1719 return _ret != NULL;
1723 * _g_freedesktop_dbus_call_request_name_sync:
1724 * @proxy: A #_GFreedesktopDBusProxy.
1725 * @arg_name: Argument to pass with the method invocation.
1726 * @arg_flags: Argument to pass with the method invocation.
1727 * @out_value: (out): Return location for return parameter or %NULL to ignore.
1728 * @cancellable: (allow-none): A #GCancellable or %NULL.
1729 * @error: Return location for error or %NULL.
1731 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.RequestName">RequestName()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1733 * See _g_freedesktop_dbus_call_request_name() for the asynchronous version of this method.
1735 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1738 _g_freedesktop_dbus_call_request_name_sync (
1739 _GFreedesktopDBus *proxy,
1740 const gchar *arg_name,
1743 GCancellable *cancellable,
1747 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1749 g_variant_new ("(su)",
1752 G_DBUS_CALL_FLAGS_NONE,
1758 g_variant_get (_ret,
1761 g_variant_unref (_ret);
1763 return _ret != NULL;
1767 * _g_freedesktop_dbus_call_release_name:
1768 * @proxy: A #_GFreedesktopDBusProxy.
1769 * @arg_name: Argument to pass with the method invocation.
1770 * @cancellable: (allow-none): A #GCancellable or %NULL.
1771 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1772 * @user_data: User data to pass to @callback.
1774 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ReleaseName">ReleaseName()</link> D-Bus method on @proxy.
1775 * 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.
1776 * You can then call _g_freedesktop_dbus_call_release_name_finish() to get the result of the operation.
1778 * See _g_freedesktop_dbus_call_release_name_sync() for the synchronous, blocking version of this method.
1781 _g_freedesktop_dbus_call_release_name (
1782 _GFreedesktopDBus *proxy,
1783 const gchar *arg_name,
1784 GCancellable *cancellable,
1785 GAsyncReadyCallback callback,
1788 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1790 g_variant_new ("(s)",
1792 G_DBUS_CALL_FLAGS_NONE,
1800 * _g_freedesktop_dbus_call_release_name_finish:
1801 * @proxy: A #_GFreedesktopDBusProxy.
1802 * @out_value: (out): Return location for return parameter or %NULL to ignore.
1803 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_release_name().
1804 * @error: Return location for error or %NULL.
1806 * Finishes an operation started with _g_freedesktop_dbus_call_release_name().
1808 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1811 _g_freedesktop_dbus_call_release_name_finish (
1812 _GFreedesktopDBus *proxy,
1818 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1821 g_variant_get (_ret,
1824 g_variant_unref (_ret);
1826 return _ret != NULL;
1830 * _g_freedesktop_dbus_call_release_name_sync:
1831 * @proxy: A #_GFreedesktopDBusProxy.
1832 * @arg_name: Argument to pass with the method invocation.
1833 * @out_value: (out): Return location for return parameter or %NULL to ignore.
1834 * @cancellable: (allow-none): A #GCancellable or %NULL.
1835 * @error: Return location for error or %NULL.
1837 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ReleaseName">ReleaseName()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1839 * See _g_freedesktop_dbus_call_release_name() for the asynchronous version of this method.
1841 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1844 _g_freedesktop_dbus_call_release_name_sync (
1845 _GFreedesktopDBus *proxy,
1846 const gchar *arg_name,
1848 GCancellable *cancellable,
1852 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1854 g_variant_new ("(s)",
1856 G_DBUS_CALL_FLAGS_NONE,
1862 g_variant_get (_ret,
1865 g_variant_unref (_ret);
1867 return _ret != NULL;
1871 * _g_freedesktop_dbus_call_start_service_by_name:
1872 * @proxy: A #_GFreedesktopDBusProxy.
1873 * @arg_name: Argument to pass with the method invocation.
1874 * @arg_flags: Argument to pass with the method invocation.
1875 * @cancellable: (allow-none): A #GCancellable or %NULL.
1876 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1877 * @user_data: User data to pass to @callback.
1879 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.StartServiceByName">StartServiceByName()</link> D-Bus method on @proxy.
1880 * 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.
1881 * You can then call _g_freedesktop_dbus_call_start_service_by_name_finish() to get the result of the operation.
1883 * See _g_freedesktop_dbus_call_start_service_by_name_sync() for the synchronous, blocking version of this method.
1886 _g_freedesktop_dbus_call_start_service_by_name (
1887 _GFreedesktopDBus *proxy,
1888 const gchar *arg_name,
1890 GCancellable *cancellable,
1891 GAsyncReadyCallback callback,
1894 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1895 "StartServiceByName",
1896 g_variant_new ("(su)",
1899 G_DBUS_CALL_FLAGS_NONE,
1907 * _g_freedesktop_dbus_call_start_service_by_name_finish:
1908 * @proxy: A #_GFreedesktopDBusProxy.
1909 * @out_value: (out): Return location for return parameter or %NULL to ignore.
1910 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_start_service_by_name().
1911 * @error: Return location for error or %NULL.
1913 * Finishes an operation started with _g_freedesktop_dbus_call_start_service_by_name().
1915 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1918 _g_freedesktop_dbus_call_start_service_by_name_finish (
1919 _GFreedesktopDBus *proxy,
1925 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1928 g_variant_get (_ret,
1931 g_variant_unref (_ret);
1933 return _ret != NULL;
1937 * _g_freedesktop_dbus_call_start_service_by_name_sync:
1938 * @proxy: A #_GFreedesktopDBusProxy.
1939 * @arg_name: Argument to pass with the method invocation.
1940 * @arg_flags: Argument to pass with the method invocation.
1941 * @out_value: (out): Return location for return parameter or %NULL to ignore.
1942 * @cancellable: (allow-none): A #GCancellable or %NULL.
1943 * @error: Return location for error or %NULL.
1945 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.StartServiceByName">StartServiceByName()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1947 * See _g_freedesktop_dbus_call_start_service_by_name() for the asynchronous version of this method.
1949 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1952 _g_freedesktop_dbus_call_start_service_by_name_sync (
1953 _GFreedesktopDBus *proxy,
1954 const gchar *arg_name,
1957 GCancellable *cancellable,
1961 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1962 "StartServiceByName",
1963 g_variant_new ("(su)",
1966 G_DBUS_CALL_FLAGS_NONE,
1972 g_variant_get (_ret,
1975 g_variant_unref (_ret);
1977 return _ret != NULL;
1981 * _g_freedesktop_dbus_call_name_has_owner:
1982 * @proxy: A #_GFreedesktopDBusProxy.
1983 * @arg_name: Argument to pass with the method invocation.
1984 * @cancellable: (allow-none): A #GCancellable or %NULL.
1985 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1986 * @user_data: User data to pass to @callback.
1988 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.NameHasOwner">NameHasOwner()</link> D-Bus method on @proxy.
1989 * 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.
1990 * You can then call _g_freedesktop_dbus_call_name_has_owner_finish() to get the result of the operation.
1992 * See _g_freedesktop_dbus_call_name_has_owner_sync() for the synchronous, blocking version of this method.
1995 _g_freedesktop_dbus_call_name_has_owner (
1996 _GFreedesktopDBus *proxy,
1997 const gchar *arg_name,
1998 GCancellable *cancellable,
1999 GAsyncReadyCallback callback,
2002 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2004 g_variant_new ("(s)",
2006 G_DBUS_CALL_FLAGS_NONE,
2014 * _g_freedesktop_dbus_call_name_has_owner_finish:
2015 * @proxy: A #_GFreedesktopDBusProxy.
2016 * @out_has_owner: (out): Return location for return parameter or %NULL to ignore.
2017 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_name_has_owner().
2018 * @error: Return location for error or %NULL.
2020 * Finishes an operation started with _g_freedesktop_dbus_call_name_has_owner().
2022 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2025 _g_freedesktop_dbus_call_name_has_owner_finish (
2026 _GFreedesktopDBus *proxy,
2027 gboolean *out_has_owner,
2032 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2035 g_variant_get (_ret,
2038 g_variant_unref (_ret);
2040 return _ret != NULL;
2044 * _g_freedesktop_dbus_call_name_has_owner_sync:
2045 * @proxy: A #_GFreedesktopDBusProxy.
2046 * @arg_name: Argument to pass with the method invocation.
2047 * @out_has_owner: (out): Return location for return parameter or %NULL to ignore.
2048 * @cancellable: (allow-none): A #GCancellable or %NULL.
2049 * @error: Return location for error or %NULL.
2051 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.NameHasOwner">NameHasOwner()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2053 * See _g_freedesktop_dbus_call_name_has_owner() for the asynchronous version of this method.
2055 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2058 _g_freedesktop_dbus_call_name_has_owner_sync (
2059 _GFreedesktopDBus *proxy,
2060 const gchar *arg_name,
2061 gboolean *out_has_owner,
2062 GCancellable *cancellable,
2066 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2068 g_variant_new ("(s)",
2070 G_DBUS_CALL_FLAGS_NONE,
2076 g_variant_get (_ret,
2079 g_variant_unref (_ret);
2081 return _ret != NULL;
2085 * _g_freedesktop_dbus_call_list_names:
2086 * @proxy: A #_GFreedesktopDBusProxy.
2087 * @cancellable: (allow-none): A #GCancellable or %NULL.
2088 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2089 * @user_data: User data to pass to @callback.
2091 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ListNames">ListNames()</link> D-Bus method on @proxy.
2092 * 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.
2093 * You can then call _g_freedesktop_dbus_call_list_names_finish() to get the result of the operation.
2095 * See _g_freedesktop_dbus_call_list_names_sync() for the synchronous, blocking version of this method.
2098 _g_freedesktop_dbus_call_list_names (
2099 _GFreedesktopDBus *proxy,
2100 GCancellable *cancellable,
2101 GAsyncReadyCallback callback,
2104 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2106 g_variant_new ("()"),
2107 G_DBUS_CALL_FLAGS_NONE,
2115 * _g_freedesktop_dbus_call_list_names_finish:
2116 * @proxy: A #_GFreedesktopDBusProxy.
2117 * @out_names: (out): Return location for return parameter or %NULL to ignore.
2118 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_list_names().
2119 * @error: Return location for error or %NULL.
2121 * Finishes an operation started with _g_freedesktop_dbus_call_list_names().
2123 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2126 _g_freedesktop_dbus_call_list_names_finish (
2127 _GFreedesktopDBus *proxy,
2133 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2136 g_variant_get (_ret,
2139 g_variant_unref (_ret);
2141 return _ret != NULL;
2145 * _g_freedesktop_dbus_call_list_names_sync:
2146 * @proxy: A #_GFreedesktopDBusProxy.
2147 * @out_names: (out): Return location for return parameter or %NULL to ignore.
2148 * @cancellable: (allow-none): A #GCancellable or %NULL.
2149 * @error: Return location for error or %NULL.
2151 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ListNames">ListNames()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2153 * See _g_freedesktop_dbus_call_list_names() for the asynchronous version of this method.
2155 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2158 _g_freedesktop_dbus_call_list_names_sync (
2159 _GFreedesktopDBus *proxy,
2161 GCancellable *cancellable,
2165 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2167 g_variant_new ("()"),
2168 G_DBUS_CALL_FLAGS_NONE,
2174 g_variant_get (_ret,
2177 g_variant_unref (_ret);
2179 return _ret != NULL;
2183 * _g_freedesktop_dbus_call_list_activatable_names:
2184 * @proxy: A #_GFreedesktopDBusProxy.
2185 * @cancellable: (allow-none): A #GCancellable or %NULL.
2186 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2187 * @user_data: User data to pass to @callback.
2189 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ListActivatableNames">ListActivatableNames()</link> D-Bus method on @proxy.
2190 * 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.
2191 * You can then call _g_freedesktop_dbus_call_list_activatable_names_finish() to get the result of the operation.
2193 * See _g_freedesktop_dbus_call_list_activatable_names_sync() for the synchronous, blocking version of this method.
2196 _g_freedesktop_dbus_call_list_activatable_names (
2197 _GFreedesktopDBus *proxy,
2198 GCancellable *cancellable,
2199 GAsyncReadyCallback callback,
2202 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2203 "ListActivatableNames",
2204 g_variant_new ("()"),
2205 G_DBUS_CALL_FLAGS_NONE,
2213 * _g_freedesktop_dbus_call_list_activatable_names_finish:
2214 * @proxy: A #_GFreedesktopDBusProxy.
2215 * @out_activatable_names: (out): Return location for return parameter or %NULL to ignore.
2216 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_list_activatable_names().
2217 * @error: Return location for error or %NULL.
2219 * Finishes an operation started with _g_freedesktop_dbus_call_list_activatable_names().
2221 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2224 _g_freedesktop_dbus_call_list_activatable_names_finish (
2225 _GFreedesktopDBus *proxy,
2226 gchar ***out_activatable_names,
2231 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2234 g_variant_get (_ret,
2236 out_activatable_names);
2237 g_variant_unref (_ret);
2239 return _ret != NULL;
2243 * _g_freedesktop_dbus_call_list_activatable_names_sync:
2244 * @proxy: A #_GFreedesktopDBusProxy.
2245 * @out_activatable_names: (out): Return location for return parameter or %NULL to ignore.
2246 * @cancellable: (allow-none): A #GCancellable or %NULL.
2247 * @error: Return location for error or %NULL.
2249 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ListActivatableNames">ListActivatableNames()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2251 * See _g_freedesktop_dbus_call_list_activatable_names() for the asynchronous version of this method.
2253 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2256 _g_freedesktop_dbus_call_list_activatable_names_sync (
2257 _GFreedesktopDBus *proxy,
2258 gchar ***out_activatable_names,
2259 GCancellable *cancellable,
2263 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2264 "ListActivatableNames",
2265 g_variant_new ("()"),
2266 G_DBUS_CALL_FLAGS_NONE,
2272 g_variant_get (_ret,
2274 out_activatable_names);
2275 g_variant_unref (_ret);
2277 return _ret != NULL;
2281 * _g_freedesktop_dbus_call_add_match:
2282 * @proxy: A #_GFreedesktopDBusProxy.
2283 * @arg_rule: Argument to pass with the method invocation.
2284 * @cancellable: (allow-none): A #GCancellable or %NULL.
2285 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2286 * @user_data: User data to pass to @callback.
2288 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.AddMatch">AddMatch()</link> D-Bus method on @proxy.
2289 * 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.
2290 * You can then call _g_freedesktop_dbus_call_add_match_finish() to get the result of the operation.
2292 * See _g_freedesktop_dbus_call_add_match_sync() for the synchronous, blocking version of this method.
2295 _g_freedesktop_dbus_call_add_match (
2296 _GFreedesktopDBus *proxy,
2297 const gchar *arg_rule,
2298 GCancellable *cancellable,
2299 GAsyncReadyCallback callback,
2302 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2304 g_variant_new ("(s)",
2306 G_DBUS_CALL_FLAGS_NONE,
2314 * _g_freedesktop_dbus_call_add_match_finish:
2315 * @proxy: A #_GFreedesktopDBusProxy.
2316 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_add_match().
2317 * @error: Return location for error or %NULL.
2319 * Finishes an operation started with _g_freedesktop_dbus_call_add_match().
2321 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2324 _g_freedesktop_dbus_call_add_match_finish (
2325 _GFreedesktopDBus *proxy,
2330 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2333 g_variant_get (_ret,
2335 g_variant_unref (_ret);
2337 return _ret != NULL;
2341 * _g_freedesktop_dbus_call_add_match_sync:
2342 * @proxy: A #_GFreedesktopDBusProxy.
2343 * @arg_rule: Argument to pass with the method invocation.
2344 * @cancellable: (allow-none): A #GCancellable or %NULL.
2345 * @error: Return location for error or %NULL.
2347 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.AddMatch">AddMatch()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2349 * See _g_freedesktop_dbus_call_add_match() for the asynchronous version of this method.
2351 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2354 _g_freedesktop_dbus_call_add_match_sync (
2355 _GFreedesktopDBus *proxy,
2356 const gchar *arg_rule,
2357 GCancellable *cancellable,
2361 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2363 g_variant_new ("(s)",
2365 G_DBUS_CALL_FLAGS_NONE,
2371 g_variant_get (_ret,
2373 g_variant_unref (_ret);
2375 return _ret != NULL;
2379 * _g_freedesktop_dbus_call_remove_match:
2380 * @proxy: A #_GFreedesktopDBusProxy.
2381 * @arg_rule: Argument to pass with the method invocation.
2382 * @cancellable: (allow-none): A #GCancellable or %NULL.
2383 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2384 * @user_data: User data to pass to @callback.
2386 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.RemoveMatch">RemoveMatch()</link> D-Bus method on @proxy.
2387 * 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.
2388 * You can then call _g_freedesktop_dbus_call_remove_match_finish() to get the result of the operation.
2390 * See _g_freedesktop_dbus_call_remove_match_sync() for the synchronous, blocking version of this method.
2393 _g_freedesktop_dbus_call_remove_match (
2394 _GFreedesktopDBus *proxy,
2395 const gchar *arg_rule,
2396 GCancellable *cancellable,
2397 GAsyncReadyCallback callback,
2400 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2402 g_variant_new ("(s)",
2404 G_DBUS_CALL_FLAGS_NONE,
2412 * _g_freedesktop_dbus_call_remove_match_finish:
2413 * @proxy: A #_GFreedesktopDBusProxy.
2414 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_remove_match().
2415 * @error: Return location for error or %NULL.
2417 * Finishes an operation started with _g_freedesktop_dbus_call_remove_match().
2419 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2422 _g_freedesktop_dbus_call_remove_match_finish (
2423 _GFreedesktopDBus *proxy,
2428 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2431 g_variant_get (_ret,
2433 g_variant_unref (_ret);
2435 return _ret != NULL;
2439 * _g_freedesktop_dbus_call_remove_match_sync:
2440 * @proxy: A #_GFreedesktopDBusProxy.
2441 * @arg_rule: Argument to pass with the method invocation.
2442 * @cancellable: (allow-none): A #GCancellable or %NULL.
2443 * @error: Return location for error or %NULL.
2445 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.RemoveMatch">RemoveMatch()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2447 * See _g_freedesktop_dbus_call_remove_match() for the asynchronous version of this method.
2449 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2452 _g_freedesktop_dbus_call_remove_match_sync (
2453 _GFreedesktopDBus *proxy,
2454 const gchar *arg_rule,
2455 GCancellable *cancellable,
2459 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2461 g_variant_new ("(s)",
2463 G_DBUS_CALL_FLAGS_NONE,
2469 g_variant_get (_ret,
2471 g_variant_unref (_ret);
2473 return _ret != NULL;
2477 * _g_freedesktop_dbus_call_get_name_owner:
2478 * @proxy: A #_GFreedesktopDBusProxy.
2479 * @arg_name: Argument to pass with the method invocation.
2480 * @cancellable: (allow-none): A #GCancellable or %NULL.
2481 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2482 * @user_data: User data to pass to @callback.
2484 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetNameOwner">GetNameOwner()</link> D-Bus method on @proxy.
2485 * 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.
2486 * You can then call _g_freedesktop_dbus_call_get_name_owner_finish() to get the result of the operation.
2488 * See _g_freedesktop_dbus_call_get_name_owner_sync() for the synchronous, blocking version of this method.
2491 _g_freedesktop_dbus_call_get_name_owner (
2492 _GFreedesktopDBus *proxy,
2493 const gchar *arg_name,
2494 GCancellable *cancellable,
2495 GAsyncReadyCallback callback,
2498 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2500 g_variant_new ("(s)",
2502 G_DBUS_CALL_FLAGS_NONE,
2510 * _g_freedesktop_dbus_call_get_name_owner_finish:
2511 * @proxy: A #_GFreedesktopDBusProxy.
2512 * @out_unique_name: (out): Return location for return parameter or %NULL to ignore.
2513 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_get_name_owner().
2514 * @error: Return location for error or %NULL.
2516 * Finishes an operation started with _g_freedesktop_dbus_call_get_name_owner().
2518 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2521 _g_freedesktop_dbus_call_get_name_owner_finish (
2522 _GFreedesktopDBus *proxy,
2523 gchar **out_unique_name,
2528 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2531 g_variant_get (_ret,
2534 g_variant_unref (_ret);
2536 return _ret != NULL;
2540 * _g_freedesktop_dbus_call_get_name_owner_sync:
2541 * @proxy: A #_GFreedesktopDBusProxy.
2542 * @arg_name: Argument to pass with the method invocation.
2543 * @out_unique_name: (out): Return location for return parameter or %NULL to ignore.
2544 * @cancellable: (allow-none): A #GCancellable or %NULL.
2545 * @error: Return location for error or %NULL.
2547 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetNameOwner">GetNameOwner()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2549 * See _g_freedesktop_dbus_call_get_name_owner() for the asynchronous version of this method.
2551 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2554 _g_freedesktop_dbus_call_get_name_owner_sync (
2555 _GFreedesktopDBus *proxy,
2556 const gchar *arg_name,
2557 gchar **out_unique_name,
2558 GCancellable *cancellable,
2562 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2564 g_variant_new ("(s)",
2566 G_DBUS_CALL_FLAGS_NONE,
2572 g_variant_get (_ret,
2575 g_variant_unref (_ret);
2577 return _ret != NULL;
2581 * _g_freedesktop_dbus_call_list_queued_owners:
2582 * @proxy: A #_GFreedesktopDBusProxy.
2583 * @arg_name: Argument to pass with the method invocation.
2584 * @cancellable: (allow-none): A #GCancellable or %NULL.
2585 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2586 * @user_data: User data to pass to @callback.
2588 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ListQueuedOwners">ListQueuedOwners()</link> D-Bus method on @proxy.
2589 * 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.
2590 * You can then call _g_freedesktop_dbus_call_list_queued_owners_finish() to get the result of the operation.
2592 * See _g_freedesktop_dbus_call_list_queued_owners_sync() for the synchronous, blocking version of this method.
2595 _g_freedesktop_dbus_call_list_queued_owners (
2596 _GFreedesktopDBus *proxy,
2597 const gchar *arg_name,
2598 GCancellable *cancellable,
2599 GAsyncReadyCallback callback,
2602 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2604 g_variant_new ("(s)",
2606 G_DBUS_CALL_FLAGS_NONE,
2614 * _g_freedesktop_dbus_call_list_queued_owners_finish:
2615 * @proxy: A #_GFreedesktopDBusProxy.
2616 * @out_queued_owners: (out): Return location for return parameter or %NULL to ignore.
2617 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_list_queued_owners().
2618 * @error: Return location for error or %NULL.
2620 * Finishes an operation started with _g_freedesktop_dbus_call_list_queued_owners().
2622 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2625 _g_freedesktop_dbus_call_list_queued_owners_finish (
2626 _GFreedesktopDBus *proxy,
2627 gchar ***out_queued_owners,
2632 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2635 g_variant_get (_ret,
2638 g_variant_unref (_ret);
2640 return _ret != NULL;
2644 * _g_freedesktop_dbus_call_list_queued_owners_sync:
2645 * @proxy: A #_GFreedesktopDBusProxy.
2646 * @arg_name: Argument to pass with the method invocation.
2647 * @out_queued_owners: (out): Return location for return parameter or %NULL to ignore.
2648 * @cancellable: (allow-none): A #GCancellable or %NULL.
2649 * @error: Return location for error or %NULL.
2651 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ListQueuedOwners">ListQueuedOwners()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2653 * See _g_freedesktop_dbus_call_list_queued_owners() for the asynchronous version of this method.
2655 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2658 _g_freedesktop_dbus_call_list_queued_owners_sync (
2659 _GFreedesktopDBus *proxy,
2660 const gchar *arg_name,
2661 gchar ***out_queued_owners,
2662 GCancellable *cancellable,
2666 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2668 g_variant_new ("(s)",
2670 G_DBUS_CALL_FLAGS_NONE,
2676 g_variant_get (_ret,
2679 g_variant_unref (_ret);
2681 return _ret != NULL;
2685 * _g_freedesktop_dbus_call_get_connection_unix_user:
2686 * @proxy: A #_GFreedesktopDBusProxy.
2687 * @arg_name: Argument to pass with the method invocation.
2688 * @cancellable: (allow-none): A #GCancellable or %NULL.
2689 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2690 * @user_data: User data to pass to @callback.
2692 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixUser">GetConnectionUnixUser()</link> D-Bus method on @proxy.
2693 * 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.
2694 * You can then call _g_freedesktop_dbus_call_get_connection_unix_user_finish() to get the result of the operation.
2696 * See _g_freedesktop_dbus_call_get_connection_unix_user_sync() for the synchronous, blocking version of this method.
2699 _g_freedesktop_dbus_call_get_connection_unix_user (
2700 _GFreedesktopDBus *proxy,
2701 const gchar *arg_name,
2702 GCancellable *cancellable,
2703 GAsyncReadyCallback callback,
2706 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2707 "GetConnectionUnixUser",
2708 g_variant_new ("(s)",
2710 G_DBUS_CALL_FLAGS_NONE,
2718 * _g_freedesktop_dbus_call_get_connection_unix_user_finish:
2719 * @proxy: A #_GFreedesktopDBusProxy.
2720 * @out_uid: (out): Return location for return parameter or %NULL to ignore.
2721 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_get_connection_unix_user().
2722 * @error: Return location for error or %NULL.
2724 * Finishes an operation started with _g_freedesktop_dbus_call_get_connection_unix_user().
2726 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2729 _g_freedesktop_dbus_call_get_connection_unix_user_finish (
2730 _GFreedesktopDBus *proxy,
2736 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2739 g_variant_get (_ret,
2742 g_variant_unref (_ret);
2744 return _ret != NULL;
2748 * _g_freedesktop_dbus_call_get_connection_unix_user_sync:
2749 * @proxy: A #_GFreedesktopDBusProxy.
2750 * @arg_name: Argument to pass with the method invocation.
2751 * @out_uid: (out): Return location for return parameter or %NULL to ignore.
2752 * @cancellable: (allow-none): A #GCancellable or %NULL.
2753 * @error: Return location for error or %NULL.
2755 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixUser">GetConnectionUnixUser()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2757 * See _g_freedesktop_dbus_call_get_connection_unix_user() for the asynchronous version of this method.
2759 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2762 _g_freedesktop_dbus_call_get_connection_unix_user_sync (
2763 _GFreedesktopDBus *proxy,
2764 const gchar *arg_name,
2766 GCancellable *cancellable,
2770 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2771 "GetConnectionUnixUser",
2772 g_variant_new ("(s)",
2774 G_DBUS_CALL_FLAGS_NONE,
2780 g_variant_get (_ret,
2783 g_variant_unref (_ret);
2785 return _ret != NULL;
2789 * _g_freedesktop_dbus_call_get_connection_unix_process_id:
2790 * @proxy: A #_GFreedesktopDBusProxy.
2791 * @arg_name: Argument to pass with the method invocation.
2792 * @cancellable: (allow-none): A #GCancellable or %NULL.
2793 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2794 * @user_data: User data to pass to @callback.
2796 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixProcessID">GetConnectionUnixProcessID()</link> D-Bus method on @proxy.
2797 * 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.
2798 * You can then call _g_freedesktop_dbus_call_get_connection_unix_process_id_finish() to get the result of the operation.
2800 * See _g_freedesktop_dbus_call_get_connection_unix_process_id_sync() for the synchronous, blocking version of this method.
2803 _g_freedesktop_dbus_call_get_connection_unix_process_id (
2804 _GFreedesktopDBus *proxy,
2805 const gchar *arg_name,
2806 GCancellable *cancellable,
2807 GAsyncReadyCallback callback,
2810 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2811 "GetConnectionUnixProcessID",
2812 g_variant_new ("(s)",
2814 G_DBUS_CALL_FLAGS_NONE,
2822 * _g_freedesktop_dbus_call_get_connection_unix_process_id_finish:
2823 * @proxy: A #_GFreedesktopDBusProxy.
2824 * @out_pid: (out): Return location for return parameter or %NULL to ignore.
2825 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_get_connection_unix_process_id().
2826 * @error: Return location for error or %NULL.
2828 * Finishes an operation started with _g_freedesktop_dbus_call_get_connection_unix_process_id().
2830 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2833 _g_freedesktop_dbus_call_get_connection_unix_process_id_finish (
2834 _GFreedesktopDBus *proxy,
2840 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2843 g_variant_get (_ret,
2846 g_variant_unref (_ret);
2848 return _ret != NULL;
2852 * _g_freedesktop_dbus_call_get_connection_unix_process_id_sync:
2853 * @proxy: A #_GFreedesktopDBusProxy.
2854 * @arg_name: Argument to pass with the method invocation.
2855 * @out_pid: (out): Return location for return parameter or %NULL to ignore.
2856 * @cancellable: (allow-none): A #GCancellable or %NULL.
2857 * @error: Return location for error or %NULL.
2859 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixProcessID">GetConnectionUnixProcessID()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2861 * See _g_freedesktop_dbus_call_get_connection_unix_process_id() for the asynchronous version of this method.
2863 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2866 _g_freedesktop_dbus_call_get_connection_unix_process_id_sync (
2867 _GFreedesktopDBus *proxy,
2868 const gchar *arg_name,
2870 GCancellable *cancellable,
2874 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2875 "GetConnectionUnixProcessID",
2876 g_variant_new ("(s)",
2878 G_DBUS_CALL_FLAGS_NONE,
2884 g_variant_get (_ret,
2887 g_variant_unref (_ret);
2889 return _ret != NULL;
2893 * _g_freedesktop_dbus_call_get_connection_selinux_security_context:
2894 * @proxy: A #_GFreedesktopDBusProxy.
2895 * @arg_name: Argument to pass with the method invocation.
2896 * @cancellable: (allow-none): A #GCancellable or %NULL.
2897 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2898 * @user_data: User data to pass to @callback.
2900 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionSELinuxSecurityContext">GetConnectionSELinuxSecurityContext()</link> D-Bus method on @proxy.
2901 * 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.
2902 * You can then call _g_freedesktop_dbus_call_get_connection_selinux_security_context_finish() to get the result of the operation.
2904 * See _g_freedesktop_dbus_call_get_connection_selinux_security_context_sync() for the synchronous, blocking version of this method.
2907 _g_freedesktop_dbus_call_get_connection_selinux_security_context (
2908 _GFreedesktopDBus *proxy,
2909 const gchar *arg_name,
2910 GCancellable *cancellable,
2911 GAsyncReadyCallback callback,
2914 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2915 "GetConnectionSELinuxSecurityContext",
2916 g_variant_new ("(s)",
2918 G_DBUS_CALL_FLAGS_NONE,
2926 * _g_freedesktop_dbus_call_get_connection_selinux_security_context_finish:
2927 * @proxy: A #_GFreedesktopDBusProxy.
2928 * @out_security_context: (out): Return location for return parameter or %NULL to ignore.
2929 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_get_connection_selinux_security_context().
2930 * @error: Return location for error or %NULL.
2932 * Finishes an operation started with _g_freedesktop_dbus_call_get_connection_selinux_security_context().
2934 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2937 _g_freedesktop_dbus_call_get_connection_selinux_security_context_finish (
2938 _GFreedesktopDBus *proxy,
2939 gchar **out_security_context,
2944 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2947 g_variant_get (_ret,
2949 out_security_context);
2950 g_variant_unref (_ret);
2952 return _ret != NULL;
2956 * _g_freedesktop_dbus_call_get_connection_selinux_security_context_sync:
2957 * @proxy: A #_GFreedesktopDBusProxy.
2958 * @arg_name: Argument to pass with the method invocation.
2959 * @out_security_context: (out): Return location for return parameter or %NULL to ignore.
2960 * @cancellable: (allow-none): A #GCancellable or %NULL.
2961 * @error: Return location for error or %NULL.
2963 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionSELinuxSecurityContext">GetConnectionSELinuxSecurityContext()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2965 * See _g_freedesktop_dbus_call_get_connection_selinux_security_context() for the asynchronous version of this method.
2967 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2970 _g_freedesktop_dbus_call_get_connection_selinux_security_context_sync (
2971 _GFreedesktopDBus *proxy,
2972 const gchar *arg_name,
2973 gchar **out_security_context,
2974 GCancellable *cancellable,
2978 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2979 "GetConnectionSELinuxSecurityContext",
2980 g_variant_new ("(s)",
2982 G_DBUS_CALL_FLAGS_NONE,
2988 g_variant_get (_ret,
2990 out_security_context);
2991 g_variant_unref (_ret);
2993 return _ret != NULL;
2997 * _g_freedesktop_dbus_call_update_activation_environment:
2998 * @proxy: A #_GFreedesktopDBusProxy.
2999 * @arg_environment: Argument to pass with the method invocation.
3000 * @cancellable: (allow-none): A #GCancellable or %NULL.
3001 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3002 * @user_data: User data to pass to @callback.
3004 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.UpdateActivationEnvironment">UpdateActivationEnvironment()</link> D-Bus method on @proxy.
3005 * 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.
3006 * You can then call _g_freedesktop_dbus_call_update_activation_environment_finish() to get the result of the operation.
3008 * See _g_freedesktop_dbus_call_update_activation_environment_sync() for the synchronous, blocking version of this method.
3011 _g_freedesktop_dbus_call_update_activation_environment (
3012 _GFreedesktopDBus *proxy,
3013 GVariant *arg_environment,
3014 GCancellable *cancellable,
3015 GAsyncReadyCallback callback,
3018 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3019 "UpdateActivationEnvironment",
3020 g_variant_new ("(@a{ss})",
3022 G_DBUS_CALL_FLAGS_NONE,
3030 * _g_freedesktop_dbus_call_update_activation_environment_finish:
3031 * @proxy: A #_GFreedesktopDBusProxy.
3032 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_update_activation_environment().
3033 * @error: Return location for error or %NULL.
3035 * Finishes an operation started with _g_freedesktop_dbus_call_update_activation_environment().
3037 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3040 _g_freedesktop_dbus_call_update_activation_environment_finish (
3041 _GFreedesktopDBus *proxy,
3046 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3049 g_variant_get (_ret,
3051 g_variant_unref (_ret);
3053 return _ret != NULL;
3057 * _g_freedesktop_dbus_call_update_activation_environment_sync:
3058 * @proxy: A #_GFreedesktopDBusProxy.
3059 * @arg_environment: Argument to pass with the method invocation.
3060 * @cancellable: (allow-none): A #GCancellable or %NULL.
3061 * @error: Return location for error or %NULL.
3063 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.UpdateActivationEnvironment">UpdateActivationEnvironment()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3065 * See _g_freedesktop_dbus_call_update_activation_environment() for the asynchronous version of this method.
3067 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3070 _g_freedesktop_dbus_call_update_activation_environment_sync (
3071 _GFreedesktopDBus *proxy,
3072 GVariant *arg_environment,
3073 GCancellable *cancellable,
3077 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3078 "UpdateActivationEnvironment",
3079 g_variant_new ("(@a{ss})",
3081 G_DBUS_CALL_FLAGS_NONE,
3087 g_variant_get (_ret,
3089 g_variant_unref (_ret);
3091 return _ret != NULL;
3095 * _g_freedesktop_dbus_call_reload_config:
3096 * @proxy: A #_GFreedesktopDBusProxy.
3097 * @cancellable: (allow-none): A #GCancellable or %NULL.
3098 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3099 * @user_data: User data to pass to @callback.
3101 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ReloadConfig">ReloadConfig()</link> D-Bus method on @proxy.
3102 * 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.
3103 * You can then call _g_freedesktop_dbus_call_reload_config_finish() to get the result of the operation.
3105 * See _g_freedesktop_dbus_call_reload_config_sync() for the synchronous, blocking version of this method.
3108 _g_freedesktop_dbus_call_reload_config (
3109 _GFreedesktopDBus *proxy,
3110 GCancellable *cancellable,
3111 GAsyncReadyCallback callback,
3114 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3116 g_variant_new ("()"),
3117 G_DBUS_CALL_FLAGS_NONE,
3125 * _g_freedesktop_dbus_call_reload_config_finish:
3126 * @proxy: A #_GFreedesktopDBusProxy.
3127 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_reload_config().
3128 * @error: Return location for error or %NULL.
3130 * Finishes an operation started with _g_freedesktop_dbus_call_reload_config().
3132 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3135 _g_freedesktop_dbus_call_reload_config_finish (
3136 _GFreedesktopDBus *proxy,
3141 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3144 g_variant_get (_ret,
3146 g_variant_unref (_ret);
3148 return _ret != NULL;
3152 * _g_freedesktop_dbus_call_reload_config_sync:
3153 * @proxy: A #_GFreedesktopDBusProxy.
3154 * @cancellable: (allow-none): A #GCancellable or %NULL.
3155 * @error: Return location for error or %NULL.
3157 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.ReloadConfig">ReloadConfig()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3159 * See _g_freedesktop_dbus_call_reload_config() for the asynchronous version of this method.
3161 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3164 _g_freedesktop_dbus_call_reload_config_sync (
3165 _GFreedesktopDBus *proxy,
3166 GCancellable *cancellable,
3170 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3172 g_variant_new ("()"),
3173 G_DBUS_CALL_FLAGS_NONE,
3179 g_variant_get (_ret,
3181 g_variant_unref (_ret);
3183 return _ret != NULL;
3187 * _g_freedesktop_dbus_call_get_id:
3188 * @proxy: A #_GFreedesktopDBusProxy.
3189 * @cancellable: (allow-none): A #GCancellable or %NULL.
3190 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3191 * @user_data: User data to pass to @callback.
3193 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetId">GetId()</link> D-Bus method on @proxy.
3194 * 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.
3195 * You can then call _g_freedesktop_dbus_call_get_id_finish() to get the result of the operation.
3197 * See _g_freedesktop_dbus_call_get_id_sync() for the synchronous, blocking version of this method.
3200 _g_freedesktop_dbus_call_get_id (
3201 _GFreedesktopDBus *proxy,
3202 GCancellable *cancellable,
3203 GAsyncReadyCallback callback,
3206 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3208 g_variant_new ("()"),
3209 G_DBUS_CALL_FLAGS_NONE,
3217 * _g_freedesktop_dbus_call_get_id_finish:
3218 * @proxy: A #_GFreedesktopDBusProxy.
3219 * @out_unique_id: (out): Return location for return parameter or %NULL to ignore.
3220 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_call_get_id().
3221 * @error: Return location for error or %NULL.
3223 * Finishes an operation started with _g_freedesktop_dbus_call_get_id().
3225 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3228 _g_freedesktop_dbus_call_get_id_finish (
3229 _GFreedesktopDBus *proxy,
3230 gchar **out_unique_id,
3235 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3238 g_variant_get (_ret,
3241 g_variant_unref (_ret);
3243 return _ret != NULL;
3247 * _g_freedesktop_dbus_call_get_id_sync:
3248 * @proxy: A #_GFreedesktopDBusProxy.
3249 * @out_unique_id: (out): Return location for return parameter or %NULL to ignore.
3250 * @cancellable: (allow-none): A #GCancellable or %NULL.
3251 * @error: Return location for error or %NULL.
3253 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-DBus.GetId">GetId()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3255 * See _g_freedesktop_dbus_call_get_id() for the asynchronous version of this method.
3257 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3260 _g_freedesktop_dbus_call_get_id_sync (
3261 _GFreedesktopDBus *proxy,
3262 gchar **out_unique_id,
3263 GCancellable *cancellable,
3267 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3269 g_variant_new ("()"),
3270 G_DBUS_CALL_FLAGS_NONE,
3276 g_variant_get (_ret,
3279 g_variant_unref (_ret);
3281 return _ret != NULL;
3285 * _g_freedesktop_dbus_complete_hello:
3286 * @object: A #_GFreedesktopDBus.
3287 * @invocation: (transfer full): A #GDBusMethodInvocation.
3288 * @assigned_name: Parameter to return.
3290 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.Hello">Hello()</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.
3292 * This method will free @invocation, you cannot use it afterwards.
3295 _g_freedesktop_dbus_complete_hello (
3296 _GFreedesktopDBus *object,
3297 GDBusMethodInvocation *invocation,
3298 const gchar *assigned_name)
3300 g_dbus_method_invocation_return_value (invocation,
3301 g_variant_new ("(s)",
3306 * _g_freedesktop_dbus_complete_request_name:
3307 * @object: A #_GFreedesktopDBus.
3308 * @invocation: (transfer full): A #GDBusMethodInvocation.
3309 * @value: Parameter to return.
3311 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.RequestName">RequestName()</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.
3313 * This method will free @invocation, you cannot use it afterwards.
3316 _g_freedesktop_dbus_complete_request_name (
3317 _GFreedesktopDBus *object,
3318 GDBusMethodInvocation *invocation,
3321 g_dbus_method_invocation_return_value (invocation,
3322 g_variant_new ("(u)",
3327 * _g_freedesktop_dbus_complete_release_name:
3328 * @object: A #_GFreedesktopDBus.
3329 * @invocation: (transfer full): A #GDBusMethodInvocation.
3330 * @value: Parameter to return.
3332 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.ReleaseName">ReleaseName()</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.
3334 * This method will free @invocation, you cannot use it afterwards.
3337 _g_freedesktop_dbus_complete_release_name (
3338 _GFreedesktopDBus *object,
3339 GDBusMethodInvocation *invocation,
3342 g_dbus_method_invocation_return_value (invocation,
3343 g_variant_new ("(u)",
3348 * _g_freedesktop_dbus_complete_start_service_by_name:
3349 * @object: A #_GFreedesktopDBus.
3350 * @invocation: (transfer full): A #GDBusMethodInvocation.
3351 * @value: Parameter to return.
3353 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.StartServiceByName">StartServiceByName()</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.
3355 * This method will free @invocation, you cannot use it afterwards.
3358 _g_freedesktop_dbus_complete_start_service_by_name (
3359 _GFreedesktopDBus *object,
3360 GDBusMethodInvocation *invocation,
3363 g_dbus_method_invocation_return_value (invocation,
3364 g_variant_new ("(u)",
3369 * _g_freedesktop_dbus_complete_name_has_owner:
3370 * @object: A #_GFreedesktopDBus.
3371 * @invocation: (transfer full): A #GDBusMethodInvocation.
3372 * @has_owner: Parameter to return.
3374 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.NameHasOwner">NameHasOwner()</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.
3376 * This method will free @invocation, you cannot use it afterwards.
3379 _g_freedesktop_dbus_complete_name_has_owner (
3380 _GFreedesktopDBus *object,
3381 GDBusMethodInvocation *invocation,
3384 g_dbus_method_invocation_return_value (invocation,
3385 g_variant_new ("(b)",
3390 * _g_freedesktop_dbus_complete_list_names:
3391 * @object: A #_GFreedesktopDBus.
3392 * @invocation: (transfer full): A #GDBusMethodInvocation.
3393 * @names: Parameter to return.
3395 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.ListNames">ListNames()</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.
3397 * This method will free @invocation, you cannot use it afterwards.
3400 _g_freedesktop_dbus_complete_list_names (
3401 _GFreedesktopDBus *object,
3402 GDBusMethodInvocation *invocation,
3403 const gchar *const *names)
3405 g_dbus_method_invocation_return_value (invocation,
3406 g_variant_new ("(^as)",
3411 * _g_freedesktop_dbus_complete_list_activatable_names:
3412 * @object: A #_GFreedesktopDBus.
3413 * @invocation: (transfer full): A #GDBusMethodInvocation.
3414 * @activatable_names: Parameter to return.
3416 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.ListActivatableNames">ListActivatableNames()</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.
3418 * This method will free @invocation, you cannot use it afterwards.
3421 _g_freedesktop_dbus_complete_list_activatable_names (
3422 _GFreedesktopDBus *object,
3423 GDBusMethodInvocation *invocation,
3424 const gchar *const *activatable_names)
3426 g_dbus_method_invocation_return_value (invocation,
3427 g_variant_new ("(^as)",
3428 activatable_names));
3432 * _g_freedesktop_dbus_complete_add_match:
3433 * @object: A #_GFreedesktopDBus.
3434 * @invocation: (transfer full): A #GDBusMethodInvocation.
3436 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.AddMatch">AddMatch()</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.
3438 * This method will free @invocation, you cannot use it afterwards.
3441 _g_freedesktop_dbus_complete_add_match (
3442 _GFreedesktopDBus *object,
3443 GDBusMethodInvocation *invocation)
3445 g_dbus_method_invocation_return_value (invocation,
3446 g_variant_new ("()"));
3450 * _g_freedesktop_dbus_complete_remove_match:
3451 * @object: A #_GFreedesktopDBus.
3452 * @invocation: (transfer full): A #GDBusMethodInvocation.
3454 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.RemoveMatch">RemoveMatch()</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.
3456 * This method will free @invocation, you cannot use it afterwards.
3459 _g_freedesktop_dbus_complete_remove_match (
3460 _GFreedesktopDBus *object,
3461 GDBusMethodInvocation *invocation)
3463 g_dbus_method_invocation_return_value (invocation,
3464 g_variant_new ("()"));
3468 * _g_freedesktop_dbus_complete_get_name_owner:
3469 * @object: A #_GFreedesktopDBus.
3470 * @invocation: (transfer full): A #GDBusMethodInvocation.
3471 * @unique_name: Parameter to return.
3473 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.GetNameOwner">GetNameOwner()</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.
3475 * This method will free @invocation, you cannot use it afterwards.
3478 _g_freedesktop_dbus_complete_get_name_owner (
3479 _GFreedesktopDBus *object,
3480 GDBusMethodInvocation *invocation,
3481 const gchar *unique_name)
3483 g_dbus_method_invocation_return_value (invocation,
3484 g_variant_new ("(s)",
3489 * _g_freedesktop_dbus_complete_list_queued_owners:
3490 * @object: A #_GFreedesktopDBus.
3491 * @invocation: (transfer full): A #GDBusMethodInvocation.
3492 * @queued_owners: Parameter to return.
3494 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.ListQueuedOwners">ListQueuedOwners()</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.
3496 * This method will free @invocation, you cannot use it afterwards.
3499 _g_freedesktop_dbus_complete_list_queued_owners (
3500 _GFreedesktopDBus *object,
3501 GDBusMethodInvocation *invocation,
3502 const gchar *const *queued_owners)
3504 g_dbus_method_invocation_return_value (invocation,
3505 g_variant_new ("(^as)",
3510 * _g_freedesktop_dbus_complete_get_connection_unix_user:
3511 * @object: A #_GFreedesktopDBus.
3512 * @invocation: (transfer full): A #GDBusMethodInvocation.
3513 * @uid: Parameter to return.
3515 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixUser">GetConnectionUnixUser()</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.
3517 * This method will free @invocation, you cannot use it afterwards.
3520 _g_freedesktop_dbus_complete_get_connection_unix_user (
3521 _GFreedesktopDBus *object,
3522 GDBusMethodInvocation *invocation,
3525 g_dbus_method_invocation_return_value (invocation,
3526 g_variant_new ("(u)",
3531 * _g_freedesktop_dbus_complete_get_connection_unix_process_id:
3532 * @object: A #_GFreedesktopDBus.
3533 * @invocation: (transfer full): A #GDBusMethodInvocation.
3534 * @pid: Parameter to return.
3536 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionUnixProcessID">GetConnectionUnixProcessID()</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.
3538 * This method will free @invocation, you cannot use it afterwards.
3541 _g_freedesktop_dbus_complete_get_connection_unix_process_id (
3542 _GFreedesktopDBus *object,
3543 GDBusMethodInvocation *invocation,
3546 g_dbus_method_invocation_return_value (invocation,
3547 g_variant_new ("(u)",
3552 * _g_freedesktop_dbus_complete_get_connection_selinux_security_context:
3553 * @object: A #_GFreedesktopDBus.
3554 * @invocation: (transfer full): A #GDBusMethodInvocation.
3555 * @security_context: Parameter to return.
3557 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.GetConnectionSELinuxSecurityContext">GetConnectionSELinuxSecurityContext()</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.
3559 * This method will free @invocation, you cannot use it afterwards.
3562 _g_freedesktop_dbus_complete_get_connection_selinux_security_context (
3563 _GFreedesktopDBus *object,
3564 GDBusMethodInvocation *invocation,
3565 const gchar *security_context)
3567 g_dbus_method_invocation_return_value (invocation,
3568 g_variant_new ("(^ay)",
3573 * _g_freedesktop_dbus_complete_update_activation_environment:
3574 * @object: A #_GFreedesktopDBus.
3575 * @invocation: (transfer full): A #GDBusMethodInvocation.
3577 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.UpdateActivationEnvironment">UpdateActivationEnvironment()</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.
3579 * This method will free @invocation, you cannot use it afterwards.
3582 _g_freedesktop_dbus_complete_update_activation_environment (
3583 _GFreedesktopDBus *object,
3584 GDBusMethodInvocation *invocation)
3586 g_dbus_method_invocation_return_value (invocation,
3587 g_variant_new ("()"));
3591 * _g_freedesktop_dbus_complete_reload_config:
3592 * @object: A #_GFreedesktopDBus.
3593 * @invocation: (transfer full): A #GDBusMethodInvocation.
3595 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.ReloadConfig">ReloadConfig()</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.
3597 * This method will free @invocation, you cannot use it afterwards.
3600 _g_freedesktop_dbus_complete_reload_config (
3601 _GFreedesktopDBus *object,
3602 GDBusMethodInvocation *invocation)
3604 g_dbus_method_invocation_return_value (invocation,
3605 g_variant_new ("()"));
3609 * _g_freedesktop_dbus_complete_get_id:
3610 * @object: A #_GFreedesktopDBus.
3611 * @invocation: (transfer full): A #GDBusMethodInvocation.
3612 * @unique_id: Parameter to return.
3614 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DBus.GetId">GetId()</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.
3616 * This method will free @invocation, you cannot use it afterwards.
3619 _g_freedesktop_dbus_complete_get_id (
3620 _GFreedesktopDBus *object,
3621 GDBusMethodInvocation *invocation,
3622 const gchar *unique_id)
3624 g_dbus_method_invocation_return_value (invocation,
3625 g_variant_new ("(s)",
3629 /* ------------------------------------------------------------------------ */
3632 * _GFreedesktopDBusProxy:
3634 * The #_GFreedesktopDBusProxy structure contains only private data and should only be accessed using the provided API.
3638 * _GFreedesktopDBusProxyClass:
3639 * @parent_class: The parent class.
3641 * Class structure for #_GFreedesktopDBusProxy.
3644 struct __GFreedesktopDBusProxyPrivate
3649 static void _g_freedesktop_dbus_proxy_iface_init (_GFreedesktopDBusIface *iface);
3651 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
3652 G_DEFINE_TYPE_WITH_CODE (_GFreedesktopDBusProxy, _g_freedesktop_dbus_proxy, G_TYPE_DBUS_PROXY,
3653 G_ADD_PRIVATE (_GFreedesktopDBusProxy)
3654 G_IMPLEMENT_INTERFACE (_G_TYPE_FREEDESKTOP_DBUS, _g_freedesktop_dbus_proxy_iface_init));
3657 G_DEFINE_TYPE_WITH_CODE (_GFreedesktopDBusProxy, _g_freedesktop_dbus_proxy, G_TYPE_DBUS_PROXY,
3658 G_IMPLEMENT_INTERFACE (_G_TYPE_FREEDESKTOP_DBUS, _g_freedesktop_dbus_proxy_iface_init));
3662 _g_freedesktop_dbus_proxy_finalize (GObject *object)
3664 _GFreedesktopDBusProxy *proxy = _G_FREEDESKTOP_DBUS_PROXY (object);
3665 g_datalist_clear (&proxy->priv->qdata);
3666 G_OBJECT_CLASS (_g_freedesktop_dbus_proxy_parent_class)->finalize (object);
3670 _g_freedesktop_dbus_proxy_get_property (GObject *object,
3673 GParamSpec *pspec G_GNUC_UNUSED)
3678 _g_freedesktop_dbus_proxy_set_property (GObject *object,
3680 const GValue *value,
3681 GParamSpec *pspec G_GNUC_UNUSED)
3686 _g_freedesktop_dbus_proxy_g_signal (GDBusProxy *proxy,
3687 const gchar *sender_name G_GNUC_UNUSED,
3688 const gchar *signal_name,
3689 GVariant *parameters)
3691 _ExtendedGDBusSignalInfo *info;
3698 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &__g_freedesktop_dbus_interface_info.parent_struct, signal_name);
3701 num_params = g_variant_n_children (parameters);
3702 paramv = g_new0 (GValue, num_params + 1);
3703 g_value_init (¶mv[0], _G_TYPE_FREEDESKTOP_DBUS);
3704 g_value_set_object (¶mv[0], proxy);
3705 g_variant_iter_init (&iter, parameters);
3707 while ((child = g_variant_iter_next_value (&iter)) != NULL)
3709 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
3710 if (arg_info->use_gvariant)
3712 g_value_init (¶mv[n], G_TYPE_VARIANT);
3713 g_value_set_variant (¶mv[n], child);
3717 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
3718 g_variant_unref (child);
3720 signal_id = g_signal_lookup (info->signal_name, _G_TYPE_FREEDESKTOP_DBUS);
3721 g_signal_emitv (paramv, signal_id, 0, NULL);
3722 for (n = 0; n < num_params + 1; n++)
3723 g_value_unset (¶mv[n]);
3728 _g_freedesktop_dbus_proxy_g_properties_changed (GDBusProxy *_proxy,
3729 GVariant *changed_properties,
3730 const gchar *const *invalidated_properties)
3732 _GFreedesktopDBusProxy *proxy = _G_FREEDESKTOP_DBUS_PROXY (_proxy);
3736 _ExtendedGDBusPropertyInfo *info;
3737 g_variant_get (changed_properties, "a{sv}", &iter);
3738 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
3740 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__g_freedesktop_dbus_interface_info.parent_struct, key);
3741 g_datalist_remove_data (&proxy->priv->qdata, key);
3743 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
3745 g_variant_iter_free (iter);
3746 for (n = 0; invalidated_properties[n] != NULL; n++)
3748 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__g_freedesktop_dbus_interface_info.parent_struct, invalidated_properties[n]);
3749 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
3751 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
3756 _g_freedesktop_dbus_proxy_init (_GFreedesktopDBusProxy *proxy)
3758 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
3759 proxy->priv = _g_freedesktop_dbus_proxy_get_instance_private (proxy);
3761 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, _G_TYPE_FREEDESKTOP_DBUS_PROXY, _GFreedesktopDBusProxyPrivate);
3764 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), _g_freedesktop_dbus_interface_info ());
3768 _g_freedesktop_dbus_proxy_class_init (_GFreedesktopDBusProxyClass *klass)
3770 GObjectClass *gobject_class;
3771 GDBusProxyClass *proxy_class;
3773 gobject_class = G_OBJECT_CLASS (klass);
3774 gobject_class->finalize = _g_freedesktop_dbus_proxy_finalize;
3775 gobject_class->get_property = _g_freedesktop_dbus_proxy_get_property;
3776 gobject_class->set_property = _g_freedesktop_dbus_proxy_set_property;
3778 proxy_class = G_DBUS_PROXY_CLASS (klass);
3779 proxy_class->g_signal = _g_freedesktop_dbus_proxy_g_signal;
3780 proxy_class->g_properties_changed = _g_freedesktop_dbus_proxy_g_properties_changed;
3782 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
3783 g_type_class_add_private (klass, sizeof (_GFreedesktopDBusProxyPrivate));
3788 _g_freedesktop_dbus_proxy_iface_init (_GFreedesktopDBusIface *iface)
3793 * _g_freedesktop_dbus_proxy_new:
3794 * @connection: A #GDBusConnection.
3795 * @flags: Flags from the #GDBusProxyFlags enumeration.
3796 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
3797 * @object_path: An object path.
3798 * @cancellable: (allow-none): A #GCancellable or %NULL.
3799 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
3800 * @user_data: User data to pass to @callback.
3802 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-DBus.top_of_page">org.freedesktop.DBus</link>. See g_dbus_proxy_new() for more details.
3804 * 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.
3805 * You can then call _g_freedesktop_dbus_proxy_new_finish() to get the result of the operation.
3807 * See _g_freedesktop_dbus_proxy_new_sync() for the synchronous, blocking version of this constructor.
3810 _g_freedesktop_dbus_proxy_new (
3811 GDBusConnection *connection,
3812 GDBusProxyFlags flags,
3814 const gchar *object_path,
3815 GCancellable *cancellable,
3816 GAsyncReadyCallback callback,
3819 g_async_initable_new_async (_G_TYPE_FREEDESKTOP_DBUS_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", "org.freedesktop.DBus", NULL);
3823 * _g_freedesktop_dbus_proxy_new_finish:
3824 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_proxy_new().
3825 * @error: Return location for error or %NULL
3827 * Finishes an operation started with _g_freedesktop_dbus_proxy_new().
3829 * Returns: (transfer full) (type _GFreedesktopDBusProxy): The constructed proxy object or %NULL if @error is set.
3832 _g_freedesktop_dbus_proxy_new_finish (
3837 GObject *source_object;
3838 source_object = g_async_result_get_source_object (res);
3839 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
3840 g_object_unref (source_object);
3842 return _G_FREEDESKTOP_DBUS (ret);
3848 * _g_freedesktop_dbus_proxy_new_sync:
3849 * @connection: A #GDBusConnection.
3850 * @flags: Flags from the #GDBusProxyFlags enumeration.
3851 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
3852 * @object_path: An object path.
3853 * @cancellable: (allow-none): A #GCancellable or %NULL.
3854 * @error: Return location for error or %NULL
3856 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-DBus.top_of_page">org.freedesktop.DBus</link>. See g_dbus_proxy_new_sync() for more details.
3858 * The calling thread is blocked until a reply is received.
3860 * See _g_freedesktop_dbus_proxy_new() for the asynchronous version of this constructor.
3862 * Returns: (transfer full) (type _GFreedesktopDBusProxy): The constructed proxy object or %NULL if @error is set.
3865 _g_freedesktop_dbus_proxy_new_sync (
3866 GDBusConnection *connection,
3867 GDBusProxyFlags flags,
3869 const gchar *object_path,
3870 GCancellable *cancellable,
3874 ret = g_initable_new (_G_TYPE_FREEDESKTOP_DBUS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.DBus", NULL);
3876 return _G_FREEDESKTOP_DBUS (ret);
3883 * _g_freedesktop_dbus_proxy_new_for_bus:
3884 * @bus_type: A #GBusType.
3885 * @flags: Flags from the #GDBusProxyFlags enumeration.
3886 * @name: A bus name (well-known or unique).
3887 * @object_path: An object path.
3888 * @cancellable: (allow-none): A #GCancellable or %NULL.
3889 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
3890 * @user_data: User data to pass to @callback.
3892 * Like _g_freedesktop_dbus_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
3894 * 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.
3895 * You can then call _g_freedesktop_dbus_proxy_new_for_bus_finish() to get the result of the operation.
3897 * See _g_freedesktop_dbus_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
3900 _g_freedesktop_dbus_proxy_new_for_bus (
3902 GDBusProxyFlags flags,
3904 const gchar *object_path,
3905 GCancellable *cancellable,
3906 GAsyncReadyCallback callback,
3909 g_async_initable_new_async (_G_TYPE_FREEDESKTOP_DBUS_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", "org.freedesktop.DBus", NULL);
3913 * _g_freedesktop_dbus_proxy_new_for_bus_finish:
3914 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _g_freedesktop_dbus_proxy_new_for_bus().
3915 * @error: Return location for error or %NULL
3917 * Finishes an operation started with _g_freedesktop_dbus_proxy_new_for_bus().
3919 * Returns: (transfer full) (type _GFreedesktopDBusProxy): The constructed proxy object or %NULL if @error is set.
3922 _g_freedesktop_dbus_proxy_new_for_bus_finish (
3927 GObject *source_object;
3928 source_object = g_async_result_get_source_object (res);
3929 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
3930 g_object_unref (source_object);
3932 return _G_FREEDESKTOP_DBUS (ret);
3938 * _g_freedesktop_dbus_proxy_new_for_bus_sync:
3939 * @bus_type: A #GBusType.
3940 * @flags: Flags from the #GDBusProxyFlags enumeration.
3941 * @name: A bus name (well-known or unique).
3942 * @object_path: An object path.
3943 * @cancellable: (allow-none): A #GCancellable or %NULL.
3944 * @error: Return location for error or %NULL
3946 * Like _g_freedesktop_dbus_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
3948 * The calling thread is blocked until a reply is received.
3950 * See _g_freedesktop_dbus_proxy_new_for_bus() for the asynchronous version of this constructor.
3952 * Returns: (transfer full) (type _GFreedesktopDBusProxy): The constructed proxy object or %NULL if @error is set.
3955 _g_freedesktop_dbus_proxy_new_for_bus_sync (
3957 GDBusProxyFlags flags,
3959 const gchar *object_path,
3960 GCancellable *cancellable,
3964 ret = g_initable_new (_G_TYPE_FREEDESKTOP_DBUS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.DBus", NULL);
3966 return _G_FREEDESKTOP_DBUS (ret);
3972 /* ------------------------------------------------------------------------ */
3975 * _GFreedesktopDBusSkeleton:
3977 * The #_GFreedesktopDBusSkeleton structure contains only private data and should only be accessed using the provided API.
3981 * _GFreedesktopDBusSkeletonClass:
3982 * @parent_class: The parent class.
3984 * Class structure for #_GFreedesktopDBusSkeleton.
3987 struct __GFreedesktopDBusSkeletonPrivate
3990 GList *changed_properties;
3991 GSource *changed_properties_idle_source;
3992 GMainContext *context;
3997 __g_freedesktop_dbus_skeleton_handle_method_call (
3998 GDBusConnection *connection G_GNUC_UNUSED,
3999 const gchar *sender G_GNUC_UNUSED,
4000 const gchar *object_path G_GNUC_UNUSED,
4001 const gchar *interface_name,
4002 const gchar *method_name,
4003 GVariant *parameters,
4004 GDBusMethodInvocation *invocation,
4007 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (user_data);
4008 _ExtendedGDBusMethodInfo *info;
4016 GValue return_value = G_VALUE_INIT;
4017 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
4018 g_assert (info != NULL);
4019 num_params = g_variant_n_children (parameters);
4020 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
4022 g_value_init (¶mv[n], _G_TYPE_FREEDESKTOP_DBUS);
4023 g_value_set_object (¶mv[n++], skeleton);
4024 g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
4025 g_value_set_object (¶mv[n++], invocation);
4026 if (info->pass_fdlist)
4029 g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
4030 g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
4032 g_assert_not_reached ();
4035 g_variant_iter_init (&iter, parameters);
4036 while ((child = g_variant_iter_next_value (&iter)) != NULL)
4038 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
4039 if (arg_info->use_gvariant)
4041 g_value_init (¶mv[n], G_TYPE_VARIANT);
4042 g_value_set_variant (¶mv[n], child);
4046 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
4047 g_variant_unref (child);
4049 signal_id = g_signal_lookup (info->signal_name, _G_TYPE_FREEDESKTOP_DBUS);
4050 g_value_init (&return_value, G_TYPE_BOOLEAN);
4051 g_signal_emitv (paramv, signal_id, 0, &return_value);
4052 if (!g_value_get_boolean (&return_value))
4053 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);
4054 g_value_unset (&return_value);
4055 for (n = 0; n < num_params + num_extra; n++)
4056 g_value_unset (¶mv[n]);
4061 __g_freedesktop_dbus_skeleton_handle_get_property (
4062 GDBusConnection *connection G_GNUC_UNUSED,
4063 const gchar *sender G_GNUC_UNUSED,
4064 const gchar *object_path G_GNUC_UNUSED,
4065 const gchar *interface_name G_GNUC_UNUSED,
4066 const gchar *property_name,
4070 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (user_data);
4071 GValue value = G_VALUE_INIT;
4073 _ExtendedGDBusPropertyInfo *info;
4076 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__g_freedesktop_dbus_interface_info.parent_struct, property_name);
4077 g_assert (info != NULL);
4078 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
4081 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
4085 g_value_init (&value, pspec->value_type);
4086 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
4087 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
4088 g_value_unset (&value);
4094 __g_freedesktop_dbus_skeleton_handle_set_property (
4095 GDBusConnection *connection G_GNUC_UNUSED,
4096 const gchar *sender G_GNUC_UNUSED,
4097 const gchar *object_path G_GNUC_UNUSED,
4098 const gchar *interface_name G_GNUC_UNUSED,
4099 const gchar *property_name,
4104 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (user_data);
4105 GValue value = G_VALUE_INIT;
4107 _ExtendedGDBusPropertyInfo *info;
4110 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__g_freedesktop_dbus_interface_info.parent_struct, property_name);
4111 g_assert (info != NULL);
4112 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
4115 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
4119 if (info->use_gvariant)
4120 g_value_set_variant (&value, variant);
4122 g_dbus_gvariant_to_gvalue (variant, &value);
4123 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
4124 g_value_unset (&value);
4130 static const GDBusInterfaceVTable __g_freedesktop_dbus_skeleton_vtable =
4132 __g_freedesktop_dbus_skeleton_handle_method_call,
4133 __g_freedesktop_dbus_skeleton_handle_get_property,
4134 __g_freedesktop_dbus_skeleton_handle_set_property,
4138 static GDBusInterfaceInfo *
4139 _g_freedesktop_dbus_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
4141 return _g_freedesktop_dbus_interface_info ();
4144 static GDBusInterfaceVTable *
4145 _g_freedesktop_dbus_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
4147 return (GDBusInterfaceVTable *) &__g_freedesktop_dbus_skeleton_vtable;
4151 _g_freedesktop_dbus_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
4153 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (_skeleton);
4155 GVariantBuilder builder;
4157 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
4158 if (__g_freedesktop_dbus_interface_info.parent_struct.properties == NULL)
4160 for (n = 0; __g_freedesktop_dbus_interface_info.parent_struct.properties[n] != NULL; n++)
4162 GDBusPropertyInfo *info = __g_freedesktop_dbus_interface_info.parent_struct.properties[n];
4163 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
4166 value = __g_freedesktop_dbus_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)), "org.freedesktop.DBus", info->name, NULL, skeleton);
4169 g_variant_take_ref (value);
4170 g_variant_builder_add (&builder, "{sv}", info->name, value);
4171 g_variant_unref (value);
4176 return g_variant_builder_end (&builder);
4180 _g_freedesktop_dbus_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
4185 __g_freedesktop_dbus_on_signal_name_owner_changed (
4186 _GFreedesktopDBus *object,
4187 const gchar *arg_name,
4188 const gchar *arg_old_owner,
4189 const gchar *arg_new_owner)
4191 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (object);
4193 GList *connections, *l;
4194 GVariant *signal_variant;
4195 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
4197 signal_variant = g_variant_ref_sink (g_variant_new ("(sss)",
4201 for (l = connections; l != NULL; l = l->next)
4203 GDBusConnection *connection = l->data;
4204 g_dbus_connection_emit_signal (connection,
4205 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.DBus", "NameOwnerChanged",
4206 signal_variant, NULL);
4208 g_variant_unref (signal_variant);
4209 g_list_free_full (connections, g_object_unref);
4213 __g_freedesktop_dbus_on_signal_name_lost (
4214 _GFreedesktopDBus *object,
4215 const gchar *arg_name)
4217 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (object);
4219 GList *connections, *l;
4220 GVariant *signal_variant;
4221 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
4223 signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
4225 for (l = connections; l != NULL; l = l->next)
4227 GDBusConnection *connection = l->data;
4228 g_dbus_connection_emit_signal (connection,
4229 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.DBus", "NameLost",
4230 signal_variant, NULL);
4232 g_variant_unref (signal_variant);
4233 g_list_free_full (connections, g_object_unref);
4237 __g_freedesktop_dbus_on_signal_name_acquired (
4238 _GFreedesktopDBus *object,
4239 const gchar *arg_name)
4241 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (object);
4243 GList *connections, *l;
4244 GVariant *signal_variant;
4245 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
4247 signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
4249 for (l = connections; l != NULL; l = l->next)
4251 GDBusConnection *connection = l->data;
4252 g_dbus_connection_emit_signal (connection,
4253 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.DBus", "NameAcquired",
4254 signal_variant, NULL);
4256 g_variant_unref (signal_variant);
4257 g_list_free_full (connections, g_object_unref);
4260 static void _g_freedesktop_dbus_skeleton_iface_init (_GFreedesktopDBusIface *iface);
4261 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
4262 G_DEFINE_TYPE_WITH_CODE (_GFreedesktopDBusSkeleton, _g_freedesktop_dbus_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
4263 G_ADD_PRIVATE (_GFreedesktopDBusSkeleton)
4264 G_IMPLEMENT_INTERFACE (_G_TYPE_FREEDESKTOP_DBUS, _g_freedesktop_dbus_skeleton_iface_init));
4267 G_DEFINE_TYPE_WITH_CODE (_GFreedesktopDBusSkeleton, _g_freedesktop_dbus_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
4268 G_IMPLEMENT_INTERFACE (_G_TYPE_FREEDESKTOP_DBUS, _g_freedesktop_dbus_skeleton_iface_init));
4272 _g_freedesktop_dbus_skeleton_finalize (GObject *object)
4274 _GFreedesktopDBusSkeleton *skeleton = _G_FREEDESKTOP_DBUS_SKELETON (object);
4275 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
4276 if (skeleton->priv->changed_properties_idle_source != NULL)
4277 g_source_destroy (skeleton->priv->changed_properties_idle_source);
4278 g_main_context_unref (skeleton->priv->context);
4279 g_mutex_clear (&skeleton->priv->lock);
4280 G_OBJECT_CLASS (_g_freedesktop_dbus_skeleton_parent_class)->finalize (object);
4284 _g_freedesktop_dbus_skeleton_init (_GFreedesktopDBusSkeleton *skeleton)
4286 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
4287 skeleton->priv = _g_freedesktop_dbus_skeleton_get_instance_private (skeleton);
4289 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, _G_TYPE_FREEDESKTOP_DBUS_SKELETON, _GFreedesktopDBusSkeletonPrivate);
4292 g_mutex_init (&skeleton->priv->lock);
4293 skeleton->priv->context = g_main_context_ref_thread_default ();
4297 _g_freedesktop_dbus_skeleton_class_init (_GFreedesktopDBusSkeletonClass *klass)
4299 GObjectClass *gobject_class;
4300 GDBusInterfaceSkeletonClass *skeleton_class;
4302 gobject_class = G_OBJECT_CLASS (klass);
4303 gobject_class->finalize = _g_freedesktop_dbus_skeleton_finalize;
4305 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
4306 skeleton_class->get_info = _g_freedesktop_dbus_skeleton_dbus_interface_get_info;
4307 skeleton_class->get_properties = _g_freedesktop_dbus_skeleton_dbus_interface_get_properties;
4308 skeleton_class->flush = _g_freedesktop_dbus_skeleton_dbus_interface_flush;
4309 skeleton_class->get_vtable = _g_freedesktop_dbus_skeleton_dbus_interface_get_vtable;
4311 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
4312 g_type_class_add_private (klass, sizeof (_GFreedesktopDBusSkeletonPrivate));
4317 _g_freedesktop_dbus_skeleton_iface_init (_GFreedesktopDBusIface *iface)
4319 iface->name_owner_changed = __g_freedesktop_dbus_on_signal_name_owner_changed;
4320 iface->name_lost = __g_freedesktop_dbus_on_signal_name_lost;
4321 iface->name_acquired = __g_freedesktop_dbus_on_signal_name_acquired;
4325 * _g_freedesktop_dbus_skeleton_new:
4327 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-DBus.top_of_page">org.freedesktop.DBus</link>.
4329 * Returns: (transfer full) (type _GFreedesktopDBusSkeleton): The skeleton object.
4332 _g_freedesktop_dbus_skeleton_new (void)
4334 return _G_FREEDESKTOP_DBUS (g_object_new (_G_TYPE_FREEDESKTOP_DBUS_SKELETON, NULL));