2 * Generated by gdbus-codegen 2.52.0. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
11 #include "udisks_interface.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.UDisks
153 * ------------------------------------------------------------------------
157 * SECTION:OrgFreedesktopUDisks
158 * @title: OrgFreedesktopUDisks
159 * @short_description: Generated C code for the org.freedesktop.UDisks D-Bus interface
161 * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-UDisks.top_of_page">org.freedesktop.UDisks</link> D-Bus interface in C.
164 /* ---- Introspection data for org.freedesktop.UDisks ---- */
166 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_devices =
177 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_pointers[] =
179 &_org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_devices,
183 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_adapters_annotation_info_0 =
186 (gchar *) "org.freedesktop.DBus.GLib.Async",
191 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_adapters_annotation_info_pointers[] =
193 &_org_freedesktop_udisks_method_enumerate_adapters_annotation_info_0,
197 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_adapters =
201 (gchar *) "EnumerateAdapters",
203 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_pointers,
204 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_adapters_annotation_info_pointers
206 "handle-enumerate-adapters",
210 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_devices =
221 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_pointers[] =
223 &_org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_devices,
227 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_expanders_annotation_info_0 =
230 (gchar *) "org.freedesktop.DBus.GLib.Async",
235 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_expanders_annotation_info_pointers[] =
237 &_org_freedesktop_udisks_method_enumerate_expanders_annotation_info_0,
241 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_expanders =
245 (gchar *) "EnumerateExpanders",
247 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_pointers,
248 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_expanders_annotation_info_pointers
250 "handle-enumerate-expanders",
254 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_devices =
265 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_pointers[] =
267 &_org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_devices,
271 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_ports_annotation_info_0 =
274 (gchar *) "org.freedesktop.DBus.GLib.Async",
279 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_ports_annotation_info_pointers[] =
281 &_org_freedesktop_udisks_method_enumerate_ports_annotation_info_0,
285 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_ports =
289 (gchar *) "EnumeratePorts",
291 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_pointers,
292 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_ports_annotation_info_pointers
294 "handle-enumerate-ports",
298 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_devices =
309 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_pointers[] =
311 &_org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_devices,
315 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_devices_annotation_info_0 =
318 (gchar *) "org.freedesktop.DBus.GLib.Async",
323 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_devices_annotation_info_pointers[] =
325 &_org_freedesktop_udisks_method_enumerate_devices_annotation_info_0,
329 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_devices =
333 (gchar *) "EnumerateDevices",
335 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_pointers,
336 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_devices_annotation_info_pointers
338 "handle-enumerate-devices",
342 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_device_files =
346 (gchar *) "device_files",
353 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_pointers[] =
355 &_org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_device_files,
359 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_device_files_annotation_info_0 =
362 (gchar *) "org.freedesktop.DBus.GLib.Async",
367 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_device_files_annotation_info_pointers[] =
369 &_org_freedesktop_udisks_method_enumerate_device_files_annotation_info_0,
373 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_device_files =
377 (gchar *) "EnumerateDeviceFiles",
379 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_pointers,
380 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_device_files_annotation_info_pointers
382 "handle-enumerate-device-files",
386 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_device_file =
390 (gchar *) "device_file",
397 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_pointers[] =
399 &_org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_device_file,
403 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_device =
414 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_pointers[] =
416 &_org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_device,
420 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_0 =
423 (gchar *) "org.freedesktop.DBus.GLib.Async",
428 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_pointers[] =
430 &_org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_0,
434 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_find_device_by_device_file =
438 (gchar *) "FindDeviceByDeviceFile",
439 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_pointers,
440 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_pointers,
441 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_pointers
443 "handle-find-device-by-device-file",
447 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_major =
451 (gchar *) "device_major",
458 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_minor =
462 (gchar *) "device_minor",
469 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_pointers[] =
471 &_org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_major,
472 &_org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_minor,
476 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_device =
487 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_pointers[] =
489 &_org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_device,
493 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_0 =
496 (gchar *) "org.freedesktop.DBus.GLib.Async",
501 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_pointers[] =
503 &_org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_0,
507 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor =
511 (gchar *) "FindDeviceByMajorMinor",
512 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_pointers,
513 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_pointers,
514 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_pointers
516 "handle-find-device-by-major-minor",
520 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_options =
531 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_pointers[] =
533 &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_options,
537 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_cookie =
548 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_pointers[] =
550 &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_cookie,
554 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_0 =
557 (gchar *) "org.freedesktop.DBus.GLib.Async",
562 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_pointers[] =
564 &_org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_0,
568 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_inhibit_all_polling =
572 (gchar *) "DriveInhibitAllPolling",
573 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_pointers,
574 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_pointers,
575 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_pointers
577 "handle-drive-inhibit-all-polling",
581 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_cookie =
592 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_pointers[] =
594 &_org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_cookie,
598 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_0 =
601 (gchar *) "org.freedesktop.DBus.GLib.Async",
606 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_pointers[] =
608 &_org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_0,
612 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_uninhibit_all_polling =
616 (gchar *) "DriveUninhibitAllPolling",
617 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_pointers,
619 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_pointers
621 "handle-drive-uninhibit-all-polling",
625 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_timeout_seconds =
629 (gchar *) "timeout_seconds",
636 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_options =
647 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_pointers[] =
649 &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_timeout_seconds,
650 &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_options,
654 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_cookie =
665 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_pointers[] =
667 &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_cookie,
671 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_0 =
674 (gchar *) "org.freedesktop.DBus.GLib.Async",
679 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_pointers[] =
681 &_org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_0,
685 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts =
689 (gchar *) "DriveSetAllSpindownTimeouts",
690 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_pointers,
691 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_pointers,
692 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_pointers
694 "handle-drive-set-all-spindown-timeouts",
698 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_cookie =
709 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_pointers[] =
711 &_org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_cookie,
715 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_0 =
718 (gchar *) "org.freedesktop.DBus.GLib.Async",
723 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_pointers[] =
725 &_org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_0,
729 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts =
733 (gchar *) "DriveUnsetAllSpindownTimeouts",
734 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_pointers,
736 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_pointers
738 "handle-drive-unset-all-spindown-timeouts",
742 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_uuid =
753 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_options =
764 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_pointers[] =
766 &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_uuid,
767 &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_options,
771 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_0 =
774 (gchar *) "org.freedesktop.DBus.GLib.Async",
779 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_pointers[] =
781 &_org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_0,
785 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstart =
789 (gchar *) "LinuxLvm2VGStart",
790 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_pointers,
792 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_pointers
794 "handle-linux-lvm2-vgstart",
798 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_uuid =
809 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_options =
820 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_pointers[] =
822 &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_uuid,
823 &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_options,
827 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_0 =
830 (gchar *) "org.freedesktop.DBus.GLib.Async",
835 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_pointers[] =
837 &_org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_0,
841 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstop =
845 (gchar *) "LinuxLvm2VGStop",
846 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_pointers,
848 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_pointers
850 "handle-linux-lvm2-vgstop",
854 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_uuid =
865 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_name =
876 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_pointers[] =
878 &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_uuid,
879 &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_name,
883 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_0 =
886 (gchar *) "org.freedesktop.DBus.GLib.Async",
891 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_pointers[] =
893 &_org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_0,
897 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name =
901 (gchar *) "LinuxLvm2VGSetName",
902 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_pointers,
904 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_pointers
906 "handle-linux-lvm2-vgset-name",
910 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_uuid =
921 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_physical_volume =
925 (gchar *) "physical_volume",
932 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_options =
943 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_pointers[] =
945 &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_uuid,
946 &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_physical_volume,
947 &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_options,
951 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_0 =
954 (gchar *) "org.freedesktop.DBus.GLib.Async",
959 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_pointers[] =
961 &_org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_0,
965 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv =
969 (gchar *) "LinuxLvm2VGAddPV",
970 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_pointers,
972 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_pointers
974 "handle-linux-lvm2-vgadd-pv",
978 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_vg_uuid =
989 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pv_uuid =
1000 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_options =
1004 (gchar *) "options",
1011 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pointers[] =
1013 &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_vg_uuid,
1014 &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pv_uuid,
1015 &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_options,
1019 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_0 =
1022 (gchar *) "org.freedesktop.DBus.GLib.Async",
1027 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_pointers[] =
1029 &_org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_0,
1033 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv =
1037 (gchar *) "LinuxLvm2VGRemovePV",
1038 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pointers,
1040 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_pointers
1042 "handle-linux-lvm2-vgremove-pv",
1046 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_group_uuid =
1050 (gchar *) "group_uuid",
1057 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_uuid =
1068 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_name =
1079 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_pointers[] =
1081 &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_group_uuid,
1082 &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_uuid,
1083 &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_name,
1087 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_0 =
1090 (gchar *) "org.freedesktop.DBus.GLib.Async",
1095 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_pointers[] =
1097 &_org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_0,
1101 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name =
1105 (gchar *) "LinuxLvm2LVSetName",
1106 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_pointers,
1108 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_pointers
1110 "handle-linux-lvm2-lvset-name",
1114 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_group_uuid =
1118 (gchar *) "group_uuid",
1125 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_uuid =
1136 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_options =
1140 (gchar *) "options",
1147 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_pointers[] =
1149 &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_group_uuid,
1150 &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_uuid,
1151 &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_options,
1155 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_0 =
1158 (gchar *) "org.freedesktop.DBus.GLib.Async",
1163 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_pointers[] =
1165 &_org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_0,
1169 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart =
1173 (gchar *) "LinuxLvm2LVStart",
1174 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_pointers,
1176 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_pointers
1178 "handle-linux-lvm2-lvstart",
1182 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_group_uuid =
1186 (gchar *) "group_uuid",
1193 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_uuid =
1204 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_options =
1208 (gchar *) "options",
1215 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_pointers[] =
1217 &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_group_uuid,
1218 &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_uuid,
1219 &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_options,
1223 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_0 =
1226 (gchar *) "org.freedesktop.DBus.GLib.Async",
1231 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_pointers[] =
1233 &_org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_0,
1237 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove =
1241 (gchar *) "LinuxLvm2LVRemove",
1242 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_pointers,
1244 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_pointers
1246 "handle-linux-lvm2-lvremove",
1250 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_group_uuid =
1254 (gchar *) "group_uuid",
1261 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_name =
1272 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_size =
1283 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_stripes =
1287 (gchar *) "num_stripes",
1294 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_stripe_size =
1298 (gchar *) "stripe_size",
1305 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_mirrors =
1309 (gchar *) "num_mirrors",
1316 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_options =
1320 (gchar *) "options",
1327 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fstype =
1338 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fsoptions =
1342 (gchar *) "fsoptions",
1349 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_pointers[] =
1351 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_group_uuid,
1352 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_name,
1353 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_size,
1354 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_stripes,
1355 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_stripe_size,
1356 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_mirrors,
1357 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_options,
1358 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fstype,
1359 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fsoptions,
1363 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_created_device =
1367 (gchar *) "created_device",
1374 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_pointers[] =
1376 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_created_device,
1380 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_0 =
1383 (gchar *) "org.freedesktop.DBus.GLib.Async",
1388 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_pointers[] =
1390 &_org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_0,
1394 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate =
1398 (gchar *) "LinuxLvm2LVCreate",
1399 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_pointers,
1400 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_pointers,
1401 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_pointers
1403 "handle-linux-lvm2-lvcreate",
1407 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_components =
1411 (gchar *) "components",
1418 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_options =
1422 (gchar *) "options",
1429 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_pointers[] =
1431 &_org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_components,
1432 &_org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_options,
1436 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_device =
1447 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_pointers[] =
1449 &_org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_device,
1453 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_md_start_annotation_info_0 =
1456 (gchar *) "org.freedesktop.DBus.GLib.Async",
1461 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_md_start_annotation_info_pointers[] =
1463 &_org_freedesktop_udisks_method_linux_md_start_annotation_info_0,
1467 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_md_start =
1471 (gchar *) "LinuxMdStart",
1472 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_pointers,
1473 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_pointers,
1474 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_md_start_annotation_info_pointers
1476 "handle-linux-md-start",
1480 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_components =
1484 (gchar *) "components",
1491 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_level =
1502 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_stripe_size =
1506 (gchar *) "stripe_size",
1513 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_name =
1524 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_options =
1528 (gchar *) "options",
1535 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_pointers[] =
1537 &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_components,
1538 &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_level,
1539 &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_stripe_size,
1540 &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_name,
1541 &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_options,
1545 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_device =
1556 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_pointers[] =
1558 &_org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_device,
1562 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_md_create_annotation_info_0 =
1565 (gchar *) "org.freedesktop.DBus.GLib.Async",
1570 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_md_create_annotation_info_pointers[] =
1572 &_org_freedesktop_udisks_method_linux_md_create_annotation_info_0,
1576 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_md_create =
1580 (gchar *) "LinuxMdCreate",
1581 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_pointers,
1582 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_pointers,
1583 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_md_create_annotation_info_pointers
1585 "handle-linux-md-create",
1589 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_inhibit_OUT_ARG_cookie =
1600 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_inhibit_OUT_ARG_pointers[] =
1602 &_org_freedesktop_udisks_method_info_inhibit_OUT_ARG_cookie,
1606 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_inhibit_annotation_info_0 =
1609 (gchar *) "org.freedesktop.DBus.GLib.Async",
1614 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_inhibit_annotation_info_pointers[] =
1616 &_org_freedesktop_udisks_method_inhibit_annotation_info_0,
1620 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_inhibit =
1624 (gchar *) "Inhibit",
1626 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_inhibit_OUT_ARG_pointers,
1627 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_inhibit_annotation_info_pointers
1633 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_uninhibit_IN_ARG_cookie =
1644 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_uninhibit_IN_ARG_pointers[] =
1646 &_org_freedesktop_udisks_method_info_uninhibit_IN_ARG_cookie,
1650 static const GDBusAnnotationInfo _org_freedesktop_udisks_method_uninhibit_annotation_info_0 =
1653 (gchar *) "org.freedesktop.DBus.GLib.Async",
1658 static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_uninhibit_annotation_info_pointers[] =
1660 &_org_freedesktop_udisks_method_uninhibit_annotation_info_0,
1664 static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_uninhibit =
1668 (gchar *) "Uninhibit",
1669 (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_uninhibit_IN_ARG_pointers,
1671 (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_uninhibit_annotation_info_pointers
1677 static const _ExtendedGDBusMethodInfo * const _org_freedesktop_udisks_method_info_pointers[] =
1679 &_org_freedesktop_udisks_method_info_enumerate_adapters,
1680 &_org_freedesktop_udisks_method_info_enumerate_expanders,
1681 &_org_freedesktop_udisks_method_info_enumerate_ports,
1682 &_org_freedesktop_udisks_method_info_enumerate_devices,
1683 &_org_freedesktop_udisks_method_info_enumerate_device_files,
1684 &_org_freedesktop_udisks_method_info_find_device_by_device_file,
1685 &_org_freedesktop_udisks_method_info_find_device_by_major_minor,
1686 &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling,
1687 &_org_freedesktop_udisks_method_info_drive_uninhibit_all_polling,
1688 &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts,
1689 &_org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts,
1690 &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart,
1691 &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop,
1692 &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name,
1693 &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv,
1694 &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv,
1695 &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name,
1696 &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart,
1697 &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove,
1698 &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate,
1699 &_org_freedesktop_udisks_method_info_linux_md_start,
1700 &_org_freedesktop_udisks_method_info_linux_md_create,
1701 &_org_freedesktop_udisks_method_info_inhibit,
1702 &_org_freedesktop_udisks_method_info_uninhibit,
1706 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_added_ARG_device =
1717 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_added_ARG_pointers[] =
1719 &_org_freedesktop_udisks_signal_info_device_added_ARG_device,
1723 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_added =
1727 (gchar *) "DeviceAdded",
1728 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_added_ARG_pointers,
1734 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_removed_ARG_device =
1745 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_removed_ARG_pointers[] =
1747 &_org_freedesktop_udisks_signal_info_device_removed_ARG_device,
1751 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_removed =
1755 (gchar *) "DeviceRemoved",
1756 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_removed_ARG_pointers,
1762 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_changed_ARG_device =
1773 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_changed_ARG_pointers[] =
1775 &_org_freedesktop_udisks_signal_info_device_changed_ARG_device,
1779 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_changed =
1783 (gchar *) "DeviceChanged",
1784 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_changed_ARG_pointers,
1790 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_device =
1801 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_in_progress =
1805 (gchar *) "job_in_progress",
1812 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_is_cancellable =
1816 (gchar *) "job_is_cancellable",
1823 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_id =
1834 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_num_tasks =
1838 (gchar *) "job_num_tasks",
1845 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task =
1849 (gchar *) "job_cur_task",
1856 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_id =
1860 (gchar *) "job_cur_task_id",
1867 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_percentage =
1871 (gchar *) "job_cur_task_percentage",
1878 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_job_changed_ARG_pointers[] =
1880 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_device,
1881 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_in_progress,
1882 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_is_cancellable,
1883 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_id,
1884 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_num_tasks,
1885 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task,
1886 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_id,
1887 &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_percentage,
1891 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_job_changed =
1895 (gchar *) "DeviceJobChanged",
1896 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_pointers,
1899 "device-job-changed"
1902 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_adapter_added_ARG_adapter =
1906 (gchar *) "adapter",
1913 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_adapter_added_ARG_pointers[] =
1915 &_org_freedesktop_udisks_signal_info_adapter_added_ARG_adapter,
1919 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_adapter_added =
1923 (gchar *) "AdapterAdded",
1924 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_adapter_added_ARG_pointers,
1930 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_adapter_removed_ARG_adapter =
1934 (gchar *) "adapter",
1941 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_adapter_removed_ARG_pointers[] =
1943 &_org_freedesktop_udisks_signal_info_adapter_removed_ARG_adapter,
1947 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_adapter_removed =
1951 (gchar *) "AdapterRemoved",
1952 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_adapter_removed_ARG_pointers,
1958 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_adapter_changed_ARG_adapter =
1962 (gchar *) "adapter",
1969 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_adapter_changed_ARG_pointers[] =
1971 &_org_freedesktop_udisks_signal_info_adapter_changed_ARG_adapter,
1975 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_adapter_changed =
1979 (gchar *) "AdapterChanged",
1980 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_adapter_changed_ARG_pointers,
1986 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_expander_added_ARG_expander =
1990 (gchar *) "expander",
1997 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_expander_added_ARG_pointers[] =
1999 &_org_freedesktop_udisks_signal_info_expander_added_ARG_expander,
2003 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_expander_added =
2007 (gchar *) "ExpanderAdded",
2008 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_expander_added_ARG_pointers,
2014 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_expander_removed_ARG_expander =
2018 (gchar *) "expander",
2025 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_expander_removed_ARG_pointers[] =
2027 &_org_freedesktop_udisks_signal_info_expander_removed_ARG_expander,
2031 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_expander_removed =
2035 (gchar *) "ExpanderRemoved",
2036 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_expander_removed_ARG_pointers,
2042 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_expander_changed_ARG_expander =
2046 (gchar *) "expander",
2053 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_expander_changed_ARG_pointers[] =
2055 &_org_freedesktop_udisks_signal_info_expander_changed_ARG_expander,
2059 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_expander_changed =
2063 (gchar *) "ExpanderChanged",
2064 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_expander_changed_ARG_pointers,
2070 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_port_added_ARG_port =
2081 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_port_added_ARG_pointers[] =
2083 &_org_freedesktop_udisks_signal_info_port_added_ARG_port,
2087 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_port_added =
2091 (gchar *) "PortAdded",
2092 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_port_added_ARG_pointers,
2098 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_port_removed_ARG_port =
2109 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_port_removed_ARG_pointers[] =
2111 &_org_freedesktop_udisks_signal_info_port_removed_ARG_port,
2115 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_port_removed =
2119 (gchar *) "PortRemoved",
2120 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_port_removed_ARG_pointers,
2126 static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_port_changed_ARG_port =
2137 static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_port_changed_ARG_pointers[] =
2139 &_org_freedesktop_udisks_signal_info_port_changed_ARG_port,
2143 static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_port_changed =
2147 (gchar *) "PortChanged",
2148 (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_port_changed_ARG_pointers,
2154 static const _ExtendedGDBusSignalInfo * const _org_freedesktop_udisks_signal_info_pointers[] =
2156 &_org_freedesktop_udisks_signal_info_device_added,
2157 &_org_freedesktop_udisks_signal_info_device_removed,
2158 &_org_freedesktop_udisks_signal_info_device_changed,
2159 &_org_freedesktop_udisks_signal_info_device_job_changed,
2160 &_org_freedesktop_udisks_signal_info_adapter_added,
2161 &_org_freedesktop_udisks_signal_info_adapter_removed,
2162 &_org_freedesktop_udisks_signal_info_adapter_changed,
2163 &_org_freedesktop_udisks_signal_info_expander_added,
2164 &_org_freedesktop_udisks_signal_info_expander_removed,
2165 &_org_freedesktop_udisks_signal_info_expander_changed,
2166 &_org_freedesktop_udisks_signal_info_port_added,
2167 &_org_freedesktop_udisks_signal_info_port_removed,
2168 &_org_freedesktop_udisks_signal_info_port_changed,
2172 static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_daemon_version =
2176 (gchar *) "DaemonVersion",
2178 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2185 static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_daemon_is_inhibited =
2189 (gchar *) "DaemonIsInhibited",
2191 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2194 "daemon-is-inhibited",
2198 static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_supports_luks_devices =
2202 (gchar *) "SupportsLuksDevices",
2204 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2207 "supports-luks-devices",
2211 static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_known_filesystems =
2215 (gchar *) "KnownFilesystems",
2216 (gchar *) "a(ssbbbubbbbbbbb)",
2217 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2220 "known-filesystems",
2224 static const _ExtendedGDBusPropertyInfo * const _org_freedesktop_udisks_property_info_pointers[] =
2226 &_org_freedesktop_udisks_property_info_daemon_version,
2227 &_org_freedesktop_udisks_property_info_daemon_is_inhibited,
2228 &_org_freedesktop_udisks_property_info_supports_luks_devices,
2229 &_org_freedesktop_udisks_property_info_known_filesystems,
2233 static const _ExtendedGDBusInterfaceInfo _org_freedesktop_udisks_interface_info =
2237 (gchar *) "org.freedesktop.UDisks",
2238 (GDBusMethodInfo **) &_org_freedesktop_udisks_method_info_pointers,
2239 (GDBusSignalInfo **) &_org_freedesktop_udisks_signal_info_pointers,
2240 (GDBusPropertyInfo **) &_org_freedesktop_udisks_property_info_pointers,
2243 "org-freedesktop-udisks",
2248 * org_freedesktop_udisks_interface_info:
2250 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-UDisks.top_of_page">org.freedesktop.UDisks</link> D-Bus interface.
2252 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
2254 GDBusInterfaceInfo *
2255 org_freedesktop_udisks_interface_info (void)
2257 return (GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info.parent_struct;
2261 * org_freedesktop_udisks_override_properties:
2262 * @klass: The class structure for a #GObject<!-- -->-derived class.
2263 * @property_id_begin: The property id to assign to the first overridden property.
2265 * Overrides all #GObject properties in the #OrgFreedesktopUDisks interface for a concrete class.
2266 * The properties are overridden in the order they are defined.
2268 * Returns: The last property id.
2271 org_freedesktop_udisks_override_properties (GObjectClass *klass, guint property_id_begin)
2273 g_object_class_override_property (klass, property_id_begin++, "daemon-version");
2274 g_object_class_override_property (klass, property_id_begin++, "daemon-is-inhibited");
2275 g_object_class_override_property (klass, property_id_begin++, "supports-luks-devices");
2276 g_object_class_override_property (klass, property_id_begin++, "known-filesystems");
2277 return property_id_begin - 1;
2283 * OrgFreedesktopUDisks:
2285 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-UDisks.top_of_page">org.freedesktop.UDisks</link>.
2289 * OrgFreedesktopUDisksIface:
2290 * @parent_iface: The parent interface.
2291 * @handle_drive_inhibit_all_polling: Handler for the #OrgFreedesktopUDisks::handle-drive-inhibit-all-polling signal.
2292 * @handle_drive_set_all_spindown_timeouts: Handler for the #OrgFreedesktopUDisks::handle-drive-set-all-spindown-timeouts signal.
2293 * @handle_drive_uninhibit_all_polling: Handler for the #OrgFreedesktopUDisks::handle-drive-uninhibit-all-polling signal.
2294 * @handle_drive_unset_all_spindown_timeouts: Handler for the #OrgFreedesktopUDisks::handle-drive-unset-all-spindown-timeouts signal.
2295 * @handle_enumerate_adapters: Handler for the #OrgFreedesktopUDisks::handle-enumerate-adapters signal.
2296 * @handle_enumerate_device_files: Handler for the #OrgFreedesktopUDisks::handle-enumerate-device-files signal.
2297 * @handle_enumerate_devices: Handler for the #OrgFreedesktopUDisks::handle-enumerate-devices signal.
2298 * @handle_enumerate_expanders: Handler for the #OrgFreedesktopUDisks::handle-enumerate-expanders signal.
2299 * @handle_enumerate_ports: Handler for the #OrgFreedesktopUDisks::handle-enumerate-ports signal.
2300 * @handle_find_device_by_device_file: Handler for the #OrgFreedesktopUDisks::handle-find-device-by-device-file signal.
2301 * @handle_find_device_by_major_minor: Handler for the #OrgFreedesktopUDisks::handle-find-device-by-major-minor signal.
2302 * @handle_inhibit: Handler for the #OrgFreedesktopUDisks::handle-inhibit signal.
2303 * @handle_linux_lvm2_lvcreate: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvcreate signal.
2304 * @handle_linux_lvm2_lvremove: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvremove signal.
2305 * @handle_linux_lvm2_lvset_name: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvset-name signal.
2306 * @handle_linux_lvm2_lvstart: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvstart signal.
2307 * @handle_linux_lvm2_vgadd_pv: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgadd-pv signal.
2308 * @handle_linux_lvm2_vgremove_pv: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgremove-pv signal.
2309 * @handle_linux_lvm2_vgset_name: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgset-name signal.
2310 * @handle_linux_lvm2_vgstart: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgstart signal.
2311 * @handle_linux_lvm2_vgstop: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgstop signal.
2312 * @handle_linux_md_create: Handler for the #OrgFreedesktopUDisks::handle-linux-md-create signal.
2313 * @handle_linux_md_start: Handler for the #OrgFreedesktopUDisks::handle-linux-md-start signal.
2314 * @handle_uninhibit: Handler for the #OrgFreedesktopUDisks::handle-uninhibit signal.
2315 * @get_daemon_is_inhibited: Getter for the #OrgFreedesktopUDisks:daemon-is-inhibited property.
2316 * @get_daemon_version: Getter for the #OrgFreedesktopUDisks:daemon-version property.
2317 * @get_known_filesystems: Getter for the #OrgFreedesktopUDisks:known-filesystems property.
2318 * @get_supports_luks_devices: Getter for the #OrgFreedesktopUDisks:supports-luks-devices property.
2319 * @adapter_added: Handler for the #OrgFreedesktopUDisks::adapter-added signal.
2320 * @adapter_changed: Handler for the #OrgFreedesktopUDisks::adapter-changed signal.
2321 * @adapter_removed: Handler for the #OrgFreedesktopUDisks::adapter-removed signal.
2322 * @device_added: Handler for the #OrgFreedesktopUDisks::device-added signal.
2323 * @device_changed: Handler for the #OrgFreedesktopUDisks::device-changed signal.
2324 * @device_job_changed: Handler for the #OrgFreedesktopUDisks::device-job-changed signal.
2325 * @device_removed: Handler for the #OrgFreedesktopUDisks::device-removed signal.
2326 * @expander_added: Handler for the #OrgFreedesktopUDisks::expander-added signal.
2327 * @expander_changed: Handler for the #OrgFreedesktopUDisks::expander-changed signal.
2328 * @expander_removed: Handler for the #OrgFreedesktopUDisks::expander-removed signal.
2329 * @port_added: Handler for the #OrgFreedesktopUDisks::port-added signal.
2330 * @port_changed: Handler for the #OrgFreedesktopUDisks::port-changed signal.
2331 * @port_removed: Handler for the #OrgFreedesktopUDisks::port-removed signal.
2333 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-UDisks.top_of_page">org.freedesktop.UDisks</link>.
2336 typedef OrgFreedesktopUDisksIface OrgFreedesktopUDisksInterface;
2337 G_DEFINE_INTERFACE (OrgFreedesktopUDisks, org_freedesktop_udisks, G_TYPE_OBJECT);
2340 org_freedesktop_udisks_default_init (OrgFreedesktopUDisksIface *iface)
2342 /* GObject signals for incoming D-Bus method calls: */
2344 * OrgFreedesktopUDisks::handle-enumerate-adapters:
2345 * @object: A #OrgFreedesktopUDisks.
2346 * @invocation: A #GDBusMethodInvocation.
2348 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateAdapters">EnumerateAdapters()</link> D-Bus method.
2350 * 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 org_freedesktop_udisks_complete_enumerate_adapters() 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.
2352 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2354 g_signal_new ("handle-enumerate-adapters",
2355 G_TYPE_FROM_INTERFACE (iface),
2357 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_adapters),
2358 g_signal_accumulator_true_handled,
2360 g_cclosure_marshal_generic,
2363 G_TYPE_DBUS_METHOD_INVOCATION);
2366 * OrgFreedesktopUDisks::handle-enumerate-expanders:
2367 * @object: A #OrgFreedesktopUDisks.
2368 * @invocation: A #GDBusMethodInvocation.
2370 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateExpanders">EnumerateExpanders()</link> D-Bus method.
2372 * 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 org_freedesktop_udisks_complete_enumerate_expanders() 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.
2374 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2376 g_signal_new ("handle-enumerate-expanders",
2377 G_TYPE_FROM_INTERFACE (iface),
2379 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_expanders),
2380 g_signal_accumulator_true_handled,
2382 g_cclosure_marshal_generic,
2385 G_TYPE_DBUS_METHOD_INVOCATION);
2388 * OrgFreedesktopUDisks::handle-enumerate-ports:
2389 * @object: A #OrgFreedesktopUDisks.
2390 * @invocation: A #GDBusMethodInvocation.
2392 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumeratePorts">EnumeratePorts()</link> D-Bus method.
2394 * 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 org_freedesktop_udisks_complete_enumerate_ports() 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.
2396 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2398 g_signal_new ("handle-enumerate-ports",
2399 G_TYPE_FROM_INTERFACE (iface),
2401 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_ports),
2402 g_signal_accumulator_true_handled,
2404 g_cclosure_marshal_generic,
2407 G_TYPE_DBUS_METHOD_INVOCATION);
2410 * OrgFreedesktopUDisks::handle-enumerate-devices:
2411 * @object: A #OrgFreedesktopUDisks.
2412 * @invocation: A #GDBusMethodInvocation.
2414 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDevices">EnumerateDevices()</link> D-Bus method.
2416 * 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 org_freedesktop_udisks_complete_enumerate_devices() 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.
2418 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2420 g_signal_new ("handle-enumerate-devices",
2421 G_TYPE_FROM_INTERFACE (iface),
2423 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_devices),
2424 g_signal_accumulator_true_handled,
2426 g_cclosure_marshal_generic,
2429 G_TYPE_DBUS_METHOD_INVOCATION);
2432 * OrgFreedesktopUDisks::handle-enumerate-device-files:
2433 * @object: A #OrgFreedesktopUDisks.
2434 * @invocation: A #GDBusMethodInvocation.
2436 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDeviceFiles">EnumerateDeviceFiles()</link> D-Bus method.
2438 * 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 org_freedesktop_udisks_complete_enumerate_device_files() 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.
2440 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2442 g_signal_new ("handle-enumerate-device-files",
2443 G_TYPE_FROM_INTERFACE (iface),
2445 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_device_files),
2446 g_signal_accumulator_true_handled,
2448 g_cclosure_marshal_generic,
2451 G_TYPE_DBUS_METHOD_INVOCATION);
2454 * OrgFreedesktopUDisks::handle-find-device-by-device-file:
2455 * @object: A #OrgFreedesktopUDisks.
2456 * @invocation: A #GDBusMethodInvocation.
2457 * @arg_device_file: Argument passed by remote caller.
2459 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByDeviceFile">FindDeviceByDeviceFile()</link> D-Bus method.
2461 * 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 org_freedesktop_udisks_complete_find_device_by_device_file() 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.
2463 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2465 g_signal_new ("handle-find-device-by-device-file",
2466 G_TYPE_FROM_INTERFACE (iface),
2468 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_find_device_by_device_file),
2469 g_signal_accumulator_true_handled,
2471 g_cclosure_marshal_generic,
2474 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2477 * OrgFreedesktopUDisks::handle-find-device-by-major-minor:
2478 * @object: A #OrgFreedesktopUDisks.
2479 * @invocation: A #GDBusMethodInvocation.
2480 * @arg_device_major: Argument passed by remote caller.
2481 * @arg_device_minor: Argument passed by remote caller.
2483 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByMajorMinor">FindDeviceByMajorMinor()</link> D-Bus method.
2485 * 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 org_freedesktop_udisks_complete_find_device_by_major_minor() 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.
2487 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2489 g_signal_new ("handle-find-device-by-major-minor",
2490 G_TYPE_FROM_INTERFACE (iface),
2492 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_find_device_by_major_minor),
2493 g_signal_accumulator_true_handled,
2495 g_cclosure_marshal_generic,
2498 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64, G_TYPE_INT64);
2501 * OrgFreedesktopUDisks::handle-drive-inhibit-all-polling:
2502 * @object: A #OrgFreedesktopUDisks.
2503 * @invocation: A #GDBusMethodInvocation.
2504 * @arg_options: Argument passed by remote caller.
2506 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveInhibitAllPolling">DriveInhibitAllPolling()</link> D-Bus method.
2508 * 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 org_freedesktop_udisks_complete_drive_inhibit_all_polling() 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.
2510 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2512 g_signal_new ("handle-drive-inhibit-all-polling",
2513 G_TYPE_FROM_INTERFACE (iface),
2515 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_inhibit_all_polling),
2516 g_signal_accumulator_true_handled,
2518 g_cclosure_marshal_generic,
2521 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV);
2524 * OrgFreedesktopUDisks::handle-drive-uninhibit-all-polling:
2525 * @object: A #OrgFreedesktopUDisks.
2526 * @invocation: A #GDBusMethodInvocation.
2527 * @arg_cookie: Argument passed by remote caller.
2529 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUninhibitAllPolling">DriveUninhibitAllPolling()</link> D-Bus method.
2531 * 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 org_freedesktop_udisks_complete_drive_uninhibit_all_polling() 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.
2533 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2535 g_signal_new ("handle-drive-uninhibit-all-polling",
2536 G_TYPE_FROM_INTERFACE (iface),
2538 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_uninhibit_all_polling),
2539 g_signal_accumulator_true_handled,
2541 g_cclosure_marshal_generic,
2544 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2547 * OrgFreedesktopUDisks::handle-drive-set-all-spindown-timeouts:
2548 * @object: A #OrgFreedesktopUDisks.
2549 * @invocation: A #GDBusMethodInvocation.
2550 * @arg_timeout_seconds: Argument passed by remote caller.
2551 * @arg_options: Argument passed by remote caller.
2553 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveSetAllSpindownTimeouts">DriveSetAllSpindownTimeouts()</link> D-Bus method.
2555 * 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 org_freedesktop_udisks_complete_drive_set_all_spindown_timeouts() 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.
2557 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2559 g_signal_new ("handle-drive-set-all-spindown-timeouts",
2560 G_TYPE_FROM_INTERFACE (iface),
2562 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_set_all_spindown_timeouts),
2563 g_signal_accumulator_true_handled,
2565 g_cclosure_marshal_generic,
2568 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_STRV);
2571 * OrgFreedesktopUDisks::handle-drive-unset-all-spindown-timeouts:
2572 * @object: A #OrgFreedesktopUDisks.
2573 * @invocation: A #GDBusMethodInvocation.
2574 * @arg_cookie: Argument passed by remote caller.
2576 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUnsetAllSpindownTimeouts">DriveUnsetAllSpindownTimeouts()</link> D-Bus method.
2578 * 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 org_freedesktop_udisks_complete_drive_unset_all_spindown_timeouts() 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.
2580 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2582 g_signal_new ("handle-drive-unset-all-spindown-timeouts",
2583 G_TYPE_FROM_INTERFACE (iface),
2585 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_unset_all_spindown_timeouts),
2586 g_signal_accumulator_true_handled,
2588 g_cclosure_marshal_generic,
2591 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2594 * OrgFreedesktopUDisks::handle-linux-lvm2-vgstart:
2595 * @object: A #OrgFreedesktopUDisks.
2596 * @invocation: A #GDBusMethodInvocation.
2597 * @arg_uuid: Argument passed by remote caller.
2598 * @arg_options: Argument passed by remote caller.
2600 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStart">LinuxLvm2VGStart()</link> D-Bus method.
2602 * 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 org_freedesktop_udisks_complete_linux_lvm2_vgstart() 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.
2604 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2606 g_signal_new ("handle-linux-lvm2-vgstart",
2607 G_TYPE_FROM_INTERFACE (iface),
2609 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgstart),
2610 g_signal_accumulator_true_handled,
2612 g_cclosure_marshal_generic,
2615 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV);
2618 * OrgFreedesktopUDisks::handle-linux-lvm2-vgstop:
2619 * @object: A #OrgFreedesktopUDisks.
2620 * @invocation: A #GDBusMethodInvocation.
2621 * @arg_uuid: Argument passed by remote caller.
2622 * @arg_options: Argument passed by remote caller.
2624 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStop">LinuxLvm2VGStop()</link> D-Bus method.
2626 * 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 org_freedesktop_udisks_complete_linux_lvm2_vgstop() 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.
2628 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2630 g_signal_new ("handle-linux-lvm2-vgstop",
2631 G_TYPE_FROM_INTERFACE (iface),
2633 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgstop),
2634 g_signal_accumulator_true_handled,
2636 g_cclosure_marshal_generic,
2639 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV);
2642 * OrgFreedesktopUDisks::handle-linux-lvm2-vgset-name:
2643 * @object: A #OrgFreedesktopUDisks.
2644 * @invocation: A #GDBusMethodInvocation.
2645 * @arg_uuid: Argument passed by remote caller.
2646 * @arg_name: Argument passed by remote caller.
2648 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGSetName">LinuxLvm2VGSetName()</link> D-Bus method.
2650 * 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 org_freedesktop_udisks_complete_linux_lvm2_vgset_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.
2652 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2654 g_signal_new ("handle-linux-lvm2-vgset-name",
2655 G_TYPE_FROM_INTERFACE (iface),
2657 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgset_name),
2658 g_signal_accumulator_true_handled,
2660 g_cclosure_marshal_generic,
2663 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
2666 * OrgFreedesktopUDisks::handle-linux-lvm2-vgadd-pv:
2667 * @object: A #OrgFreedesktopUDisks.
2668 * @invocation: A #GDBusMethodInvocation.
2669 * @arg_uuid: Argument passed by remote caller.
2670 * @arg_physical_volume: Argument passed by remote caller.
2671 * @arg_options: Argument passed by remote caller.
2673 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGAddPV">LinuxLvm2VGAddPV()</link> D-Bus method.
2675 * 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 org_freedesktop_udisks_complete_linux_lvm2_vgadd_pv() 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.
2677 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2679 g_signal_new ("handle-linux-lvm2-vgadd-pv",
2680 G_TYPE_FROM_INTERFACE (iface),
2682 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgadd_pv),
2683 g_signal_accumulator_true_handled,
2685 g_cclosure_marshal_generic,
2688 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);
2691 * OrgFreedesktopUDisks::handle-linux-lvm2-vgremove-pv:
2692 * @object: A #OrgFreedesktopUDisks.
2693 * @invocation: A #GDBusMethodInvocation.
2694 * @arg_vg_uuid: Argument passed by remote caller.
2695 * @arg_pv_uuid: Argument passed by remote caller.
2696 * @arg_options: Argument passed by remote caller.
2698 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGRemovePV">LinuxLvm2VGRemovePV()</link> D-Bus method.
2700 * 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 org_freedesktop_udisks_complete_linux_lvm2_vgremove_pv() 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.
2702 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2704 g_signal_new ("handle-linux-lvm2-vgremove-pv",
2705 G_TYPE_FROM_INTERFACE (iface),
2707 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgremove_pv),
2708 g_signal_accumulator_true_handled,
2710 g_cclosure_marshal_generic,
2713 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);
2716 * OrgFreedesktopUDisks::handle-linux-lvm2-lvset-name:
2717 * @object: A #OrgFreedesktopUDisks.
2718 * @invocation: A #GDBusMethodInvocation.
2719 * @arg_group_uuid: Argument passed by remote caller.
2720 * @arg_uuid: Argument passed by remote caller.
2721 * @arg_name: Argument passed by remote caller.
2723 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVSetName">LinuxLvm2LVSetName()</link> D-Bus method.
2725 * 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 org_freedesktop_udisks_complete_linux_lvm2_lvset_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.
2727 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2729 g_signal_new ("handle-linux-lvm2-lvset-name",
2730 G_TYPE_FROM_INTERFACE (iface),
2732 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvset_name),
2733 g_signal_accumulator_true_handled,
2735 g_cclosure_marshal_generic,
2738 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
2741 * OrgFreedesktopUDisks::handle-linux-lvm2-lvstart:
2742 * @object: A #OrgFreedesktopUDisks.
2743 * @invocation: A #GDBusMethodInvocation.
2744 * @arg_group_uuid: Argument passed by remote caller.
2745 * @arg_uuid: Argument passed by remote caller.
2746 * @arg_options: Argument passed by remote caller.
2748 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVStart">LinuxLvm2LVStart()</link> D-Bus method.
2750 * 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 org_freedesktop_udisks_complete_linux_lvm2_lvstart() 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.
2752 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2754 g_signal_new ("handle-linux-lvm2-lvstart",
2755 G_TYPE_FROM_INTERFACE (iface),
2757 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvstart),
2758 g_signal_accumulator_true_handled,
2760 g_cclosure_marshal_generic,
2763 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);
2766 * OrgFreedesktopUDisks::handle-linux-lvm2-lvremove:
2767 * @object: A #OrgFreedesktopUDisks.
2768 * @invocation: A #GDBusMethodInvocation.
2769 * @arg_group_uuid: Argument passed by remote caller.
2770 * @arg_uuid: Argument passed by remote caller.
2771 * @arg_options: Argument passed by remote caller.
2773 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVRemove">LinuxLvm2LVRemove()</link> D-Bus method.
2775 * 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 org_freedesktop_udisks_complete_linux_lvm2_lvremove() 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.
2777 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2779 g_signal_new ("handle-linux-lvm2-lvremove",
2780 G_TYPE_FROM_INTERFACE (iface),
2782 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvremove),
2783 g_signal_accumulator_true_handled,
2785 g_cclosure_marshal_generic,
2788 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);
2791 * OrgFreedesktopUDisks::handle-linux-lvm2-lvcreate:
2792 * @object: A #OrgFreedesktopUDisks.
2793 * @invocation: A #GDBusMethodInvocation.
2794 * @arg_group_uuid: Argument passed by remote caller.
2795 * @arg_name: Argument passed by remote caller.
2796 * @arg_size: Argument passed by remote caller.
2797 * @arg_num_stripes: Argument passed by remote caller.
2798 * @arg_stripe_size: Argument passed by remote caller.
2799 * @arg_num_mirrors: Argument passed by remote caller.
2800 * @arg_options: Argument passed by remote caller.
2801 * @arg_fstype: Argument passed by remote caller.
2802 * @arg_fsoptions: Argument passed by remote caller.
2804 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVCreate">LinuxLvm2LVCreate()</link> D-Bus method.
2806 * 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 org_freedesktop_udisks_complete_linux_lvm2_lvcreate() 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.
2808 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2810 g_signal_new ("handle-linux-lvm2-lvcreate",
2811 G_TYPE_FROM_INTERFACE (iface),
2813 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvcreate),
2814 g_signal_accumulator_true_handled,
2816 g_cclosure_marshal_generic,
2819 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT64, G_TYPE_UINT, G_TYPE_UINT64, G_TYPE_UINT, G_TYPE_STRV, G_TYPE_STRING, G_TYPE_STRV);
2822 * OrgFreedesktopUDisks::handle-linux-md-start:
2823 * @object: A #OrgFreedesktopUDisks.
2824 * @invocation: A #GDBusMethodInvocation.
2825 * @arg_components: Argument passed by remote caller.
2826 * @arg_options: Argument passed by remote caller.
2828 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdStart">LinuxMdStart()</link> D-Bus method.
2830 * 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 org_freedesktop_udisks_complete_linux_md_start() 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.
2832 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2834 g_signal_new ("handle-linux-md-start",
2835 G_TYPE_FROM_INTERFACE (iface),
2837 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_md_start),
2838 g_signal_accumulator_true_handled,
2840 g_cclosure_marshal_generic,
2843 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV, G_TYPE_STRV);
2846 * OrgFreedesktopUDisks::handle-linux-md-create:
2847 * @object: A #OrgFreedesktopUDisks.
2848 * @invocation: A #GDBusMethodInvocation.
2849 * @arg_components: Argument passed by remote caller.
2850 * @arg_level: Argument passed by remote caller.
2851 * @arg_stripe_size: Argument passed by remote caller.
2852 * @arg_name: Argument passed by remote caller.
2853 * @arg_options: Argument passed by remote caller.
2855 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdCreate">LinuxMdCreate()</link> D-Bus method.
2857 * 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 org_freedesktop_udisks_complete_linux_md_create() 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.
2859 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2861 g_signal_new ("handle-linux-md-create",
2862 G_TYPE_FROM_INTERFACE (iface),
2864 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_md_create),
2865 g_signal_accumulator_true_handled,
2867 g_cclosure_marshal_generic,
2870 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV, G_TYPE_STRING, G_TYPE_UINT64, G_TYPE_STRING, G_TYPE_STRV);
2873 * OrgFreedesktopUDisks::handle-inhibit:
2874 * @object: A #OrgFreedesktopUDisks.
2875 * @invocation: A #GDBusMethodInvocation.
2877 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.Inhibit">Inhibit()</link> D-Bus method.
2879 * 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 org_freedesktop_udisks_complete_inhibit() 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.
2881 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2883 g_signal_new ("handle-inhibit",
2884 G_TYPE_FROM_INTERFACE (iface),
2886 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_inhibit),
2887 g_signal_accumulator_true_handled,
2889 g_cclosure_marshal_generic,
2892 G_TYPE_DBUS_METHOD_INVOCATION);
2895 * OrgFreedesktopUDisks::handle-uninhibit:
2896 * @object: A #OrgFreedesktopUDisks.
2897 * @invocation: A #GDBusMethodInvocation.
2898 * @arg_cookie: Argument passed by remote caller.
2900 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-UDisks.Uninhibit">Uninhibit()</link> D-Bus method.
2902 * 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 org_freedesktop_udisks_complete_uninhibit() 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.
2904 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2906 g_signal_new ("handle-uninhibit",
2907 G_TYPE_FROM_INTERFACE (iface),
2909 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_uninhibit),
2910 g_signal_accumulator_true_handled,
2912 g_cclosure_marshal_generic,
2915 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2917 /* GObject signals for received D-Bus signals: */
2919 * OrgFreedesktopUDisks::device-added:
2920 * @object: A #OrgFreedesktopUDisks.
2921 * @arg_device: Argument.
2923 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceAdded">"DeviceAdded"</link> is received.
2925 * 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.
2927 g_signal_new ("device-added",
2928 G_TYPE_FROM_INTERFACE (iface),
2930 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_added),
2933 g_cclosure_marshal_generic,
2938 * OrgFreedesktopUDisks::device-removed:
2939 * @object: A #OrgFreedesktopUDisks.
2940 * @arg_device: Argument.
2942 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceRemoved">"DeviceRemoved"</link> is received.
2944 * 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.
2946 g_signal_new ("device-removed",
2947 G_TYPE_FROM_INTERFACE (iface),
2949 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_removed),
2952 g_cclosure_marshal_generic,
2957 * OrgFreedesktopUDisks::device-changed:
2958 * @object: A #OrgFreedesktopUDisks.
2959 * @arg_device: Argument.
2961 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceChanged">"DeviceChanged"</link> is received.
2963 * 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.
2965 g_signal_new ("device-changed",
2966 G_TYPE_FROM_INTERFACE (iface),
2968 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_changed),
2971 g_cclosure_marshal_generic,
2976 * OrgFreedesktopUDisks::device-job-changed:
2977 * @object: A #OrgFreedesktopUDisks.
2978 * @arg_device: Argument.
2979 * @arg_job_in_progress: Argument.
2980 * @arg_job_is_cancellable: Argument.
2981 * @arg_job_id: Argument.
2982 * @arg_job_num_tasks: Argument.
2983 * @arg_job_cur_task: Argument.
2984 * @arg_job_cur_task_id: Argument.
2985 * @arg_job_cur_task_percentage: Argument.
2987 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceJobChanged">"DeviceJobChanged"</link> is received.
2989 * 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.
2991 g_signal_new ("device-job-changed",
2992 G_TYPE_FROM_INTERFACE (iface),
2994 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_job_changed),
2997 g_cclosure_marshal_generic,
2999 8, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_DOUBLE);
3002 * OrgFreedesktopUDisks::adapter-added:
3003 * @object: A #OrgFreedesktopUDisks.
3004 * @arg_adapter: Argument.
3006 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.AdapterAdded">"AdapterAdded"</link> is received.
3008 * 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.
3010 g_signal_new ("adapter-added",
3011 G_TYPE_FROM_INTERFACE (iface),
3013 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, adapter_added),
3016 g_cclosure_marshal_generic,
3021 * OrgFreedesktopUDisks::adapter-removed:
3022 * @object: A #OrgFreedesktopUDisks.
3023 * @arg_adapter: Argument.
3025 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.AdapterRemoved">"AdapterRemoved"</link> is received.
3027 * 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.
3029 g_signal_new ("adapter-removed",
3030 G_TYPE_FROM_INTERFACE (iface),
3032 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, adapter_removed),
3035 g_cclosure_marshal_generic,
3040 * OrgFreedesktopUDisks::adapter-changed:
3041 * @object: A #OrgFreedesktopUDisks.
3042 * @arg_adapter: Argument.
3044 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.AdapterChanged">"AdapterChanged"</link> is received.
3046 * 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.
3048 g_signal_new ("adapter-changed",
3049 G_TYPE_FROM_INTERFACE (iface),
3051 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, adapter_changed),
3054 g_cclosure_marshal_generic,
3059 * OrgFreedesktopUDisks::expander-added:
3060 * @object: A #OrgFreedesktopUDisks.
3061 * @arg_expander: Argument.
3063 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.ExpanderAdded">"ExpanderAdded"</link> is received.
3065 * 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.
3067 g_signal_new ("expander-added",
3068 G_TYPE_FROM_INTERFACE (iface),
3070 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, expander_added),
3073 g_cclosure_marshal_generic,
3078 * OrgFreedesktopUDisks::expander-removed:
3079 * @object: A #OrgFreedesktopUDisks.
3080 * @arg_expander: Argument.
3082 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.ExpanderRemoved">"ExpanderRemoved"</link> is received.
3084 * 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.
3086 g_signal_new ("expander-removed",
3087 G_TYPE_FROM_INTERFACE (iface),
3089 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, expander_removed),
3092 g_cclosure_marshal_generic,
3097 * OrgFreedesktopUDisks::expander-changed:
3098 * @object: A #OrgFreedesktopUDisks.
3099 * @arg_expander: Argument.
3101 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.ExpanderChanged">"ExpanderChanged"</link> is received.
3103 * 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.
3105 g_signal_new ("expander-changed",
3106 G_TYPE_FROM_INTERFACE (iface),
3108 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, expander_changed),
3111 g_cclosure_marshal_generic,
3116 * OrgFreedesktopUDisks::port-added:
3117 * @object: A #OrgFreedesktopUDisks.
3118 * @arg_port: Argument.
3120 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.PortAdded">"PortAdded"</link> is received.
3122 * 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.
3124 g_signal_new ("port-added",
3125 G_TYPE_FROM_INTERFACE (iface),
3127 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, port_added),
3130 g_cclosure_marshal_generic,
3135 * OrgFreedesktopUDisks::port-removed:
3136 * @object: A #OrgFreedesktopUDisks.
3137 * @arg_port: Argument.
3139 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.PortRemoved">"PortRemoved"</link> is received.
3141 * 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.
3143 g_signal_new ("port-removed",
3144 G_TYPE_FROM_INTERFACE (iface),
3146 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, port_removed),
3149 g_cclosure_marshal_generic,
3154 * OrgFreedesktopUDisks::port-changed:
3155 * @object: A #OrgFreedesktopUDisks.
3156 * @arg_port: Argument.
3158 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-UDisks.PortChanged">"PortChanged"</link> is received.
3160 * 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.
3162 g_signal_new ("port-changed",
3163 G_TYPE_FROM_INTERFACE (iface),
3165 G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, port_changed),
3168 g_cclosure_marshal_generic,
3172 /* GObject properties for D-Bus properties: */
3174 * OrgFreedesktopUDisks:daemon-version:
3176 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-UDisks.DaemonVersion">"DaemonVersion"</link>.
3178 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3180 g_object_interface_install_property (iface,
3181 g_param_spec_string ("daemon-version", "DaemonVersion", "DaemonVersion", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3183 * OrgFreedesktopUDisks:daemon-is-inhibited:
3185 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-UDisks.DaemonIsInhibited">"DaemonIsInhibited"</link>.
3187 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3189 g_object_interface_install_property (iface,
3190 g_param_spec_boolean ("daemon-is-inhibited", "DaemonIsInhibited", "DaemonIsInhibited", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3192 * OrgFreedesktopUDisks:supports-luks-devices:
3194 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-UDisks.SupportsLuksDevices">"SupportsLuksDevices"</link>.
3196 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3198 g_object_interface_install_property (iface,
3199 g_param_spec_boolean ("supports-luks-devices", "SupportsLuksDevices", "SupportsLuksDevices", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3201 * OrgFreedesktopUDisks:known-filesystems:
3203 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-UDisks.KnownFilesystems">"KnownFilesystems"</link>.
3205 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3207 g_object_interface_install_property (iface,
3208 g_param_spec_variant ("known-filesystems", "KnownFilesystems", "KnownFilesystems", G_VARIANT_TYPE ("a(ssbbbubbbbbbbb)"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3212 * org_freedesktop_udisks_get_daemon_version: (skip)
3213 * @object: A #OrgFreedesktopUDisks.
3215 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-UDisks.DaemonVersion">"DaemonVersion"</link> D-Bus property.
3217 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3219 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use org_freedesktop_udisks_dup_daemon_version() if on another thread.</warning>
3221 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
3224 org_freedesktop_udisks_get_daemon_version (OrgFreedesktopUDisks *object)
3226 return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_daemon_version (object);
3230 * org_freedesktop_udisks_dup_daemon_version: (skip)
3231 * @object: A #OrgFreedesktopUDisks.
3233 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-UDisks.DaemonVersion">"DaemonVersion"</link> D-Bus property.
3235 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3237 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
3240 org_freedesktop_udisks_dup_daemon_version (OrgFreedesktopUDisks *object)
3243 g_object_get (G_OBJECT (object), "daemon-version", &value, NULL);
3248 * org_freedesktop_udisks_set_daemon_version: (skip)
3249 * @object: A #OrgFreedesktopUDisks.
3250 * @value: The value to set.
3252 * Sets the <link linkend="gdbus-property-org-freedesktop-UDisks.DaemonVersion">"DaemonVersion"</link> D-Bus property to @value.
3254 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
3257 org_freedesktop_udisks_set_daemon_version (OrgFreedesktopUDisks *object, const gchar *value)
3259 g_object_set (G_OBJECT (object), "daemon-version", value, NULL);
3263 * org_freedesktop_udisks_get_daemon_is_inhibited: (skip)
3264 * @object: A #OrgFreedesktopUDisks.
3266 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-UDisks.DaemonIsInhibited">"DaemonIsInhibited"</link> D-Bus property.
3268 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3270 * Returns: The property value.
3273 org_freedesktop_udisks_get_daemon_is_inhibited (OrgFreedesktopUDisks *object)
3275 return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_daemon_is_inhibited (object);
3279 * org_freedesktop_udisks_set_daemon_is_inhibited: (skip)
3280 * @object: A #OrgFreedesktopUDisks.
3281 * @value: The value to set.
3283 * Sets the <link linkend="gdbus-property-org-freedesktop-UDisks.DaemonIsInhibited">"DaemonIsInhibited"</link> D-Bus property to @value.
3285 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
3288 org_freedesktop_udisks_set_daemon_is_inhibited (OrgFreedesktopUDisks *object, gboolean value)
3290 g_object_set (G_OBJECT (object), "daemon-is-inhibited", value, NULL);
3294 * org_freedesktop_udisks_get_supports_luks_devices: (skip)
3295 * @object: A #OrgFreedesktopUDisks.
3297 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-UDisks.SupportsLuksDevices">"SupportsLuksDevices"</link> D-Bus property.
3299 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3301 * Returns: The property value.
3304 org_freedesktop_udisks_get_supports_luks_devices (OrgFreedesktopUDisks *object)
3306 return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_supports_luks_devices (object);
3310 * org_freedesktop_udisks_set_supports_luks_devices: (skip)
3311 * @object: A #OrgFreedesktopUDisks.
3312 * @value: The value to set.
3314 * Sets the <link linkend="gdbus-property-org-freedesktop-UDisks.SupportsLuksDevices">"SupportsLuksDevices"</link> D-Bus property to @value.
3316 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
3319 org_freedesktop_udisks_set_supports_luks_devices (OrgFreedesktopUDisks *object, gboolean value)
3321 g_object_set (G_OBJECT (object), "supports-luks-devices", value, NULL);
3325 * org_freedesktop_udisks_get_known_filesystems: (skip)
3326 * @object: A #OrgFreedesktopUDisks.
3328 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-UDisks.KnownFilesystems">"KnownFilesystems"</link> D-Bus property.
3330 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3332 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use org_freedesktop_udisks_dup_known_filesystems() if on another thread.</warning>
3334 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
3337 org_freedesktop_udisks_get_known_filesystems (OrgFreedesktopUDisks *object)
3339 return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_known_filesystems (object);
3343 * org_freedesktop_udisks_dup_known_filesystems: (skip)
3344 * @object: A #OrgFreedesktopUDisks.
3346 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-UDisks.KnownFilesystems">"KnownFilesystems"</link> D-Bus property.
3348 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3350 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
3353 org_freedesktop_udisks_dup_known_filesystems (OrgFreedesktopUDisks *object)
3356 g_object_get (G_OBJECT (object), "known-filesystems", &value, NULL);
3361 * org_freedesktop_udisks_set_known_filesystems: (skip)
3362 * @object: A #OrgFreedesktopUDisks.
3363 * @value: The value to set.
3365 * Sets the <link linkend="gdbus-property-org-freedesktop-UDisks.KnownFilesystems">"KnownFilesystems"</link> D-Bus property to @value.
3367 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
3370 org_freedesktop_udisks_set_known_filesystems (OrgFreedesktopUDisks *object, GVariant *value)
3372 g_object_set (G_OBJECT (object), "known-filesystems", value, NULL);
3376 * org_freedesktop_udisks_emit_device_added:
3377 * @object: A #OrgFreedesktopUDisks.
3378 * @arg_device: Argument to pass with the signal.
3380 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceAdded">"DeviceAdded"</link> D-Bus signal.
3383 org_freedesktop_udisks_emit_device_added (
3384 OrgFreedesktopUDisks *object,
3385 const gchar *arg_device)
3387 g_signal_emit_by_name (object, "device-added", arg_device);
3391 * org_freedesktop_udisks_emit_device_removed:
3392 * @object: A #OrgFreedesktopUDisks.
3393 * @arg_device: Argument to pass with the signal.
3395 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceRemoved">"DeviceRemoved"</link> D-Bus signal.
3398 org_freedesktop_udisks_emit_device_removed (
3399 OrgFreedesktopUDisks *object,
3400 const gchar *arg_device)
3402 g_signal_emit_by_name (object, "device-removed", arg_device);
3406 * org_freedesktop_udisks_emit_device_changed:
3407 * @object: A #OrgFreedesktopUDisks.
3408 * @arg_device: Argument to pass with the signal.
3410 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceChanged">"DeviceChanged"</link> D-Bus signal.
3413 org_freedesktop_udisks_emit_device_changed (
3414 OrgFreedesktopUDisks *object,
3415 const gchar *arg_device)
3417 g_signal_emit_by_name (object, "device-changed", arg_device);
3421 * org_freedesktop_udisks_emit_device_job_changed:
3422 * @object: A #OrgFreedesktopUDisks.
3423 * @arg_device: Argument to pass with the signal.
3424 * @arg_job_in_progress: Argument to pass with the signal.
3425 * @arg_job_is_cancellable: Argument to pass with the signal.
3426 * @arg_job_id: Argument to pass with the signal.
3427 * @arg_job_num_tasks: Argument to pass with the signal.
3428 * @arg_job_cur_task: Argument to pass with the signal.
3429 * @arg_job_cur_task_id: Argument to pass with the signal.
3430 * @arg_job_cur_task_percentage: Argument to pass with the signal.
3432 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.DeviceJobChanged">"DeviceJobChanged"</link> D-Bus signal.
3435 org_freedesktop_udisks_emit_device_job_changed (
3436 OrgFreedesktopUDisks *object,
3437 const gchar *arg_device,
3438 gboolean arg_job_in_progress,
3439 gboolean arg_job_is_cancellable,
3440 const gchar *arg_job_id,
3441 gint arg_job_num_tasks,
3442 gint arg_job_cur_task,
3443 const gchar *arg_job_cur_task_id,
3444 gdouble arg_job_cur_task_percentage)
3446 g_signal_emit_by_name (object, "device-job-changed", arg_device, arg_job_in_progress, arg_job_is_cancellable, arg_job_id, arg_job_num_tasks, arg_job_cur_task, arg_job_cur_task_id, arg_job_cur_task_percentage);
3450 * org_freedesktop_udisks_emit_adapter_added:
3451 * @object: A #OrgFreedesktopUDisks.
3452 * @arg_adapter: Argument to pass with the signal.
3454 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.AdapterAdded">"AdapterAdded"</link> D-Bus signal.
3457 org_freedesktop_udisks_emit_adapter_added (
3458 OrgFreedesktopUDisks *object,
3459 const gchar *arg_adapter)
3461 g_signal_emit_by_name (object, "adapter-added", arg_adapter);
3465 * org_freedesktop_udisks_emit_adapter_removed:
3466 * @object: A #OrgFreedesktopUDisks.
3467 * @arg_adapter: Argument to pass with the signal.
3469 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.AdapterRemoved">"AdapterRemoved"</link> D-Bus signal.
3472 org_freedesktop_udisks_emit_adapter_removed (
3473 OrgFreedesktopUDisks *object,
3474 const gchar *arg_adapter)
3476 g_signal_emit_by_name (object, "adapter-removed", arg_adapter);
3480 * org_freedesktop_udisks_emit_adapter_changed:
3481 * @object: A #OrgFreedesktopUDisks.
3482 * @arg_adapter: Argument to pass with the signal.
3484 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.AdapterChanged">"AdapterChanged"</link> D-Bus signal.
3487 org_freedesktop_udisks_emit_adapter_changed (
3488 OrgFreedesktopUDisks *object,
3489 const gchar *arg_adapter)
3491 g_signal_emit_by_name (object, "adapter-changed", arg_adapter);
3495 * org_freedesktop_udisks_emit_expander_added:
3496 * @object: A #OrgFreedesktopUDisks.
3497 * @arg_expander: Argument to pass with the signal.
3499 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.ExpanderAdded">"ExpanderAdded"</link> D-Bus signal.
3502 org_freedesktop_udisks_emit_expander_added (
3503 OrgFreedesktopUDisks *object,
3504 const gchar *arg_expander)
3506 g_signal_emit_by_name (object, "expander-added", arg_expander);
3510 * org_freedesktop_udisks_emit_expander_removed:
3511 * @object: A #OrgFreedesktopUDisks.
3512 * @arg_expander: Argument to pass with the signal.
3514 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.ExpanderRemoved">"ExpanderRemoved"</link> D-Bus signal.
3517 org_freedesktop_udisks_emit_expander_removed (
3518 OrgFreedesktopUDisks *object,
3519 const gchar *arg_expander)
3521 g_signal_emit_by_name (object, "expander-removed", arg_expander);
3525 * org_freedesktop_udisks_emit_expander_changed:
3526 * @object: A #OrgFreedesktopUDisks.
3527 * @arg_expander: Argument to pass with the signal.
3529 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.ExpanderChanged">"ExpanderChanged"</link> D-Bus signal.
3532 org_freedesktop_udisks_emit_expander_changed (
3533 OrgFreedesktopUDisks *object,
3534 const gchar *arg_expander)
3536 g_signal_emit_by_name (object, "expander-changed", arg_expander);
3540 * org_freedesktop_udisks_emit_port_added:
3541 * @object: A #OrgFreedesktopUDisks.
3542 * @arg_port: Argument to pass with the signal.
3544 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.PortAdded">"PortAdded"</link> D-Bus signal.
3547 org_freedesktop_udisks_emit_port_added (
3548 OrgFreedesktopUDisks *object,
3549 const gchar *arg_port)
3551 g_signal_emit_by_name (object, "port-added", arg_port);
3555 * org_freedesktop_udisks_emit_port_removed:
3556 * @object: A #OrgFreedesktopUDisks.
3557 * @arg_port: Argument to pass with the signal.
3559 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.PortRemoved">"PortRemoved"</link> D-Bus signal.
3562 org_freedesktop_udisks_emit_port_removed (
3563 OrgFreedesktopUDisks *object,
3564 const gchar *arg_port)
3566 g_signal_emit_by_name (object, "port-removed", arg_port);
3570 * org_freedesktop_udisks_emit_port_changed:
3571 * @object: A #OrgFreedesktopUDisks.
3572 * @arg_port: Argument to pass with the signal.
3574 * Emits the <link linkend="gdbus-signal-org-freedesktop-UDisks.PortChanged">"PortChanged"</link> D-Bus signal.
3577 org_freedesktop_udisks_emit_port_changed (
3578 OrgFreedesktopUDisks *object,
3579 const gchar *arg_port)
3581 g_signal_emit_by_name (object, "port-changed", arg_port);
3585 * org_freedesktop_udisks_call_enumerate_adapters:
3586 * @proxy: A #OrgFreedesktopUDisksProxy.
3587 * @cancellable: (allow-none): A #GCancellable or %NULL.
3588 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3589 * @user_data: User data to pass to @callback.
3591 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateAdapters">EnumerateAdapters()</link> D-Bus method on @proxy.
3592 * 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.
3593 * You can then call org_freedesktop_udisks_call_enumerate_adapters_finish() to get the result of the operation.
3595 * See org_freedesktop_udisks_call_enumerate_adapters_sync() for the synchronous, blocking version of this method.
3598 org_freedesktop_udisks_call_enumerate_adapters (
3599 OrgFreedesktopUDisks *proxy,
3600 GCancellable *cancellable,
3601 GAsyncReadyCallback callback,
3604 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3605 "EnumerateAdapters",
3606 g_variant_new ("()"),
3607 G_DBUS_CALL_FLAGS_NONE,
3615 * org_freedesktop_udisks_call_enumerate_adapters_finish:
3616 * @proxy: A #OrgFreedesktopUDisksProxy.
3617 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3618 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_adapters().
3619 * @error: Return location for error or %NULL.
3621 * Finishes an operation started with org_freedesktop_udisks_call_enumerate_adapters().
3623 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3626 org_freedesktop_udisks_call_enumerate_adapters_finish (
3627 OrgFreedesktopUDisks *proxy,
3628 gchar ***out_devices,
3633 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3636 g_variant_get (_ret,
3639 g_variant_unref (_ret);
3641 return _ret != NULL;
3645 * org_freedesktop_udisks_call_enumerate_adapters_sync:
3646 * @proxy: A #OrgFreedesktopUDisksProxy.
3647 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3648 * @cancellable: (allow-none): A #GCancellable or %NULL.
3649 * @error: Return location for error or %NULL.
3651 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateAdapters">EnumerateAdapters()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3653 * See org_freedesktop_udisks_call_enumerate_adapters() for the asynchronous version of this method.
3655 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3658 org_freedesktop_udisks_call_enumerate_adapters_sync (
3659 OrgFreedesktopUDisks *proxy,
3660 gchar ***out_devices,
3661 GCancellable *cancellable,
3665 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3666 "EnumerateAdapters",
3667 g_variant_new ("()"),
3668 G_DBUS_CALL_FLAGS_NONE,
3674 g_variant_get (_ret,
3677 g_variant_unref (_ret);
3679 return _ret != NULL;
3683 * org_freedesktop_udisks_call_enumerate_expanders:
3684 * @proxy: A #OrgFreedesktopUDisksProxy.
3685 * @cancellable: (allow-none): A #GCancellable or %NULL.
3686 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3687 * @user_data: User data to pass to @callback.
3689 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateExpanders">EnumerateExpanders()</link> D-Bus method on @proxy.
3690 * 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.
3691 * You can then call org_freedesktop_udisks_call_enumerate_expanders_finish() to get the result of the operation.
3693 * See org_freedesktop_udisks_call_enumerate_expanders_sync() for the synchronous, blocking version of this method.
3696 org_freedesktop_udisks_call_enumerate_expanders (
3697 OrgFreedesktopUDisks *proxy,
3698 GCancellable *cancellable,
3699 GAsyncReadyCallback callback,
3702 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3703 "EnumerateExpanders",
3704 g_variant_new ("()"),
3705 G_DBUS_CALL_FLAGS_NONE,
3713 * org_freedesktop_udisks_call_enumerate_expanders_finish:
3714 * @proxy: A #OrgFreedesktopUDisksProxy.
3715 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3716 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_expanders().
3717 * @error: Return location for error or %NULL.
3719 * Finishes an operation started with org_freedesktop_udisks_call_enumerate_expanders().
3721 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3724 org_freedesktop_udisks_call_enumerate_expanders_finish (
3725 OrgFreedesktopUDisks *proxy,
3726 gchar ***out_devices,
3731 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3734 g_variant_get (_ret,
3737 g_variant_unref (_ret);
3739 return _ret != NULL;
3743 * org_freedesktop_udisks_call_enumerate_expanders_sync:
3744 * @proxy: A #OrgFreedesktopUDisksProxy.
3745 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3746 * @cancellable: (allow-none): A #GCancellable or %NULL.
3747 * @error: Return location for error or %NULL.
3749 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateExpanders">EnumerateExpanders()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3751 * See org_freedesktop_udisks_call_enumerate_expanders() for the asynchronous version of this method.
3753 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3756 org_freedesktop_udisks_call_enumerate_expanders_sync (
3757 OrgFreedesktopUDisks *proxy,
3758 gchar ***out_devices,
3759 GCancellable *cancellable,
3763 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3764 "EnumerateExpanders",
3765 g_variant_new ("()"),
3766 G_DBUS_CALL_FLAGS_NONE,
3772 g_variant_get (_ret,
3775 g_variant_unref (_ret);
3777 return _ret != NULL;
3781 * org_freedesktop_udisks_call_enumerate_ports:
3782 * @proxy: A #OrgFreedesktopUDisksProxy.
3783 * @cancellable: (allow-none): A #GCancellable or %NULL.
3784 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3785 * @user_data: User data to pass to @callback.
3787 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumeratePorts">EnumeratePorts()</link> D-Bus method on @proxy.
3788 * 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.
3789 * You can then call org_freedesktop_udisks_call_enumerate_ports_finish() to get the result of the operation.
3791 * See org_freedesktop_udisks_call_enumerate_ports_sync() for the synchronous, blocking version of this method.
3794 org_freedesktop_udisks_call_enumerate_ports (
3795 OrgFreedesktopUDisks *proxy,
3796 GCancellable *cancellable,
3797 GAsyncReadyCallback callback,
3800 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3802 g_variant_new ("()"),
3803 G_DBUS_CALL_FLAGS_NONE,
3811 * org_freedesktop_udisks_call_enumerate_ports_finish:
3812 * @proxy: A #OrgFreedesktopUDisksProxy.
3813 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3814 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_ports().
3815 * @error: Return location for error or %NULL.
3817 * Finishes an operation started with org_freedesktop_udisks_call_enumerate_ports().
3819 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3822 org_freedesktop_udisks_call_enumerate_ports_finish (
3823 OrgFreedesktopUDisks *proxy,
3824 gchar ***out_devices,
3829 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3832 g_variant_get (_ret,
3835 g_variant_unref (_ret);
3837 return _ret != NULL;
3841 * org_freedesktop_udisks_call_enumerate_ports_sync:
3842 * @proxy: A #OrgFreedesktopUDisksProxy.
3843 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3844 * @cancellable: (allow-none): A #GCancellable or %NULL.
3845 * @error: Return location for error or %NULL.
3847 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumeratePorts">EnumeratePorts()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3849 * See org_freedesktop_udisks_call_enumerate_ports() for the asynchronous version of this method.
3851 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3854 org_freedesktop_udisks_call_enumerate_ports_sync (
3855 OrgFreedesktopUDisks *proxy,
3856 gchar ***out_devices,
3857 GCancellable *cancellable,
3861 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3863 g_variant_new ("()"),
3864 G_DBUS_CALL_FLAGS_NONE,
3870 g_variant_get (_ret,
3873 g_variant_unref (_ret);
3875 return _ret != NULL;
3879 * org_freedesktop_udisks_call_enumerate_devices:
3880 * @proxy: A #OrgFreedesktopUDisksProxy.
3881 * @cancellable: (allow-none): A #GCancellable or %NULL.
3882 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3883 * @user_data: User data to pass to @callback.
3885 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDevices">EnumerateDevices()</link> D-Bus method on @proxy.
3886 * 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.
3887 * You can then call org_freedesktop_udisks_call_enumerate_devices_finish() to get the result of the operation.
3889 * See org_freedesktop_udisks_call_enumerate_devices_sync() for the synchronous, blocking version of this method.
3892 org_freedesktop_udisks_call_enumerate_devices (
3893 OrgFreedesktopUDisks *proxy,
3894 GCancellable *cancellable,
3895 GAsyncReadyCallback callback,
3898 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3900 g_variant_new ("()"),
3901 G_DBUS_CALL_FLAGS_NONE,
3909 * org_freedesktop_udisks_call_enumerate_devices_finish:
3910 * @proxy: A #OrgFreedesktopUDisksProxy.
3911 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3912 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_devices().
3913 * @error: Return location for error or %NULL.
3915 * Finishes an operation started with org_freedesktop_udisks_call_enumerate_devices().
3917 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3920 org_freedesktop_udisks_call_enumerate_devices_finish (
3921 OrgFreedesktopUDisks *proxy,
3922 gchar ***out_devices,
3927 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3930 g_variant_get (_ret,
3933 g_variant_unref (_ret);
3935 return _ret != NULL;
3939 * org_freedesktop_udisks_call_enumerate_devices_sync:
3940 * @proxy: A #OrgFreedesktopUDisksProxy.
3941 * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3942 * @cancellable: (allow-none): A #GCancellable or %NULL.
3943 * @error: Return location for error or %NULL.
3945 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDevices">EnumerateDevices()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3947 * See org_freedesktop_udisks_call_enumerate_devices() for the asynchronous version of this method.
3949 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3952 org_freedesktop_udisks_call_enumerate_devices_sync (
3953 OrgFreedesktopUDisks *proxy,
3954 gchar ***out_devices,
3955 GCancellable *cancellable,
3959 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3961 g_variant_new ("()"),
3962 G_DBUS_CALL_FLAGS_NONE,
3968 g_variant_get (_ret,
3971 g_variant_unref (_ret);
3973 return _ret != NULL;
3977 * org_freedesktop_udisks_call_enumerate_device_files:
3978 * @proxy: A #OrgFreedesktopUDisksProxy.
3979 * @cancellable: (allow-none): A #GCancellable or %NULL.
3980 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3981 * @user_data: User data to pass to @callback.
3983 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDeviceFiles">EnumerateDeviceFiles()</link> D-Bus method on @proxy.
3984 * 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.
3985 * You can then call org_freedesktop_udisks_call_enumerate_device_files_finish() to get the result of the operation.
3987 * See org_freedesktop_udisks_call_enumerate_device_files_sync() for the synchronous, blocking version of this method.
3990 org_freedesktop_udisks_call_enumerate_device_files (
3991 OrgFreedesktopUDisks *proxy,
3992 GCancellable *cancellable,
3993 GAsyncReadyCallback callback,
3996 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3997 "EnumerateDeviceFiles",
3998 g_variant_new ("()"),
3999 G_DBUS_CALL_FLAGS_NONE,
4007 * org_freedesktop_udisks_call_enumerate_device_files_finish:
4008 * @proxy: A #OrgFreedesktopUDisksProxy.
4009 * @out_device_files: (out): Return location for return parameter or %NULL to ignore.
4010 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_device_files().
4011 * @error: Return location for error or %NULL.
4013 * Finishes an operation started with org_freedesktop_udisks_call_enumerate_device_files().
4015 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4018 org_freedesktop_udisks_call_enumerate_device_files_finish (
4019 OrgFreedesktopUDisks *proxy,
4020 gchar ***out_device_files,
4025 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4028 g_variant_get (_ret,
4031 g_variant_unref (_ret);
4033 return _ret != NULL;
4037 * org_freedesktop_udisks_call_enumerate_device_files_sync:
4038 * @proxy: A #OrgFreedesktopUDisksProxy.
4039 * @out_device_files: (out): Return location for return parameter or %NULL to ignore.
4040 * @cancellable: (allow-none): A #GCancellable or %NULL.
4041 * @error: Return location for error or %NULL.
4043 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDeviceFiles">EnumerateDeviceFiles()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4045 * See org_freedesktop_udisks_call_enumerate_device_files() for the asynchronous version of this method.
4047 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4050 org_freedesktop_udisks_call_enumerate_device_files_sync (
4051 OrgFreedesktopUDisks *proxy,
4052 gchar ***out_device_files,
4053 GCancellable *cancellable,
4057 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4058 "EnumerateDeviceFiles",
4059 g_variant_new ("()"),
4060 G_DBUS_CALL_FLAGS_NONE,
4066 g_variant_get (_ret,
4069 g_variant_unref (_ret);
4071 return _ret != NULL;
4075 * org_freedesktop_udisks_call_find_device_by_device_file:
4076 * @proxy: A #OrgFreedesktopUDisksProxy.
4077 * @arg_device_file: Argument to pass with the method invocation.
4078 * @cancellable: (allow-none): A #GCancellable or %NULL.
4079 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4080 * @user_data: User data to pass to @callback.
4082 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByDeviceFile">FindDeviceByDeviceFile()</link> D-Bus method on @proxy.
4083 * 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.
4084 * You can then call org_freedesktop_udisks_call_find_device_by_device_file_finish() to get the result of the operation.
4086 * See org_freedesktop_udisks_call_find_device_by_device_file_sync() for the synchronous, blocking version of this method.
4089 org_freedesktop_udisks_call_find_device_by_device_file (
4090 OrgFreedesktopUDisks *proxy,
4091 const gchar *arg_device_file,
4092 GCancellable *cancellable,
4093 GAsyncReadyCallback callback,
4096 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4097 "FindDeviceByDeviceFile",
4098 g_variant_new ("(s)",
4100 G_DBUS_CALL_FLAGS_NONE,
4108 * org_freedesktop_udisks_call_find_device_by_device_file_finish:
4109 * @proxy: A #OrgFreedesktopUDisksProxy.
4110 * @out_device: (out): Return location for return parameter or %NULL to ignore.
4111 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_find_device_by_device_file().
4112 * @error: Return location for error or %NULL.
4114 * Finishes an operation started with org_freedesktop_udisks_call_find_device_by_device_file().
4116 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4119 org_freedesktop_udisks_call_find_device_by_device_file_finish (
4120 OrgFreedesktopUDisks *proxy,
4126 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4129 g_variant_get (_ret,
4132 g_variant_unref (_ret);
4134 return _ret != NULL;
4138 * org_freedesktop_udisks_call_find_device_by_device_file_sync:
4139 * @proxy: A #OrgFreedesktopUDisksProxy.
4140 * @arg_device_file: Argument to pass with the method invocation.
4141 * @out_device: (out): Return location for return parameter or %NULL to ignore.
4142 * @cancellable: (allow-none): A #GCancellable or %NULL.
4143 * @error: Return location for error or %NULL.
4145 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByDeviceFile">FindDeviceByDeviceFile()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4147 * See org_freedesktop_udisks_call_find_device_by_device_file() for the asynchronous version of this method.
4149 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4152 org_freedesktop_udisks_call_find_device_by_device_file_sync (
4153 OrgFreedesktopUDisks *proxy,
4154 const gchar *arg_device_file,
4156 GCancellable *cancellable,
4160 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4161 "FindDeviceByDeviceFile",
4162 g_variant_new ("(s)",
4164 G_DBUS_CALL_FLAGS_NONE,
4170 g_variant_get (_ret,
4173 g_variant_unref (_ret);
4175 return _ret != NULL;
4179 * org_freedesktop_udisks_call_find_device_by_major_minor:
4180 * @proxy: A #OrgFreedesktopUDisksProxy.
4181 * @arg_device_major: Argument to pass with the method invocation.
4182 * @arg_device_minor: Argument to pass with the method invocation.
4183 * @cancellable: (allow-none): A #GCancellable or %NULL.
4184 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4185 * @user_data: User data to pass to @callback.
4187 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByMajorMinor">FindDeviceByMajorMinor()</link> D-Bus method on @proxy.
4188 * 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.
4189 * You can then call org_freedesktop_udisks_call_find_device_by_major_minor_finish() to get the result of the operation.
4191 * See org_freedesktop_udisks_call_find_device_by_major_minor_sync() for the synchronous, blocking version of this method.
4194 org_freedesktop_udisks_call_find_device_by_major_minor (
4195 OrgFreedesktopUDisks *proxy,
4196 gint64 arg_device_major,
4197 gint64 arg_device_minor,
4198 GCancellable *cancellable,
4199 GAsyncReadyCallback callback,
4202 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4203 "FindDeviceByMajorMinor",
4204 g_variant_new ("(xx)",
4207 G_DBUS_CALL_FLAGS_NONE,
4215 * org_freedesktop_udisks_call_find_device_by_major_minor_finish:
4216 * @proxy: A #OrgFreedesktopUDisksProxy.
4217 * @out_device: (out): Return location for return parameter or %NULL to ignore.
4218 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_find_device_by_major_minor().
4219 * @error: Return location for error or %NULL.
4221 * Finishes an operation started with org_freedesktop_udisks_call_find_device_by_major_minor().
4223 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4226 org_freedesktop_udisks_call_find_device_by_major_minor_finish (
4227 OrgFreedesktopUDisks *proxy,
4233 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4236 g_variant_get (_ret,
4239 g_variant_unref (_ret);
4241 return _ret != NULL;
4245 * org_freedesktop_udisks_call_find_device_by_major_minor_sync:
4246 * @proxy: A #OrgFreedesktopUDisksProxy.
4247 * @arg_device_major: Argument to pass with the method invocation.
4248 * @arg_device_minor: Argument to pass with the method invocation.
4249 * @out_device: (out): Return location for return parameter or %NULL to ignore.
4250 * @cancellable: (allow-none): A #GCancellable or %NULL.
4251 * @error: Return location for error or %NULL.
4253 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByMajorMinor">FindDeviceByMajorMinor()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4255 * See org_freedesktop_udisks_call_find_device_by_major_minor() for the asynchronous version of this method.
4257 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4260 org_freedesktop_udisks_call_find_device_by_major_minor_sync (
4261 OrgFreedesktopUDisks *proxy,
4262 gint64 arg_device_major,
4263 gint64 arg_device_minor,
4265 GCancellable *cancellable,
4269 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4270 "FindDeviceByMajorMinor",
4271 g_variant_new ("(xx)",
4274 G_DBUS_CALL_FLAGS_NONE,
4280 g_variant_get (_ret,
4283 g_variant_unref (_ret);
4285 return _ret != NULL;
4289 * org_freedesktop_udisks_call_drive_inhibit_all_polling:
4290 * @proxy: A #OrgFreedesktopUDisksProxy.
4291 * @arg_options: Argument to pass with the method invocation.
4292 * @cancellable: (allow-none): A #GCancellable or %NULL.
4293 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4294 * @user_data: User data to pass to @callback.
4296 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveInhibitAllPolling">DriveInhibitAllPolling()</link> D-Bus method on @proxy.
4297 * 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.
4298 * You can then call org_freedesktop_udisks_call_drive_inhibit_all_polling_finish() to get the result of the operation.
4300 * See org_freedesktop_udisks_call_drive_inhibit_all_polling_sync() for the synchronous, blocking version of this method.
4303 org_freedesktop_udisks_call_drive_inhibit_all_polling (
4304 OrgFreedesktopUDisks *proxy,
4305 const gchar *const *arg_options,
4306 GCancellable *cancellable,
4307 GAsyncReadyCallback callback,
4310 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4311 "DriveInhibitAllPolling",
4312 g_variant_new ("(^as)",
4314 G_DBUS_CALL_FLAGS_NONE,
4322 * org_freedesktop_udisks_call_drive_inhibit_all_polling_finish:
4323 * @proxy: A #OrgFreedesktopUDisksProxy.
4324 * @out_cookie: (out): Return location for return parameter or %NULL to ignore.
4325 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_inhibit_all_polling().
4326 * @error: Return location for error or %NULL.
4328 * Finishes an operation started with org_freedesktop_udisks_call_drive_inhibit_all_polling().
4330 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4333 org_freedesktop_udisks_call_drive_inhibit_all_polling_finish (
4334 OrgFreedesktopUDisks *proxy,
4340 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4343 g_variant_get (_ret,
4346 g_variant_unref (_ret);
4348 return _ret != NULL;
4352 * org_freedesktop_udisks_call_drive_inhibit_all_polling_sync:
4353 * @proxy: A #OrgFreedesktopUDisksProxy.
4354 * @arg_options: Argument to pass with the method invocation.
4355 * @out_cookie: (out): Return location for return parameter or %NULL to ignore.
4356 * @cancellable: (allow-none): A #GCancellable or %NULL.
4357 * @error: Return location for error or %NULL.
4359 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveInhibitAllPolling">DriveInhibitAllPolling()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4361 * See org_freedesktop_udisks_call_drive_inhibit_all_polling() for the asynchronous version of this method.
4363 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4366 org_freedesktop_udisks_call_drive_inhibit_all_polling_sync (
4367 OrgFreedesktopUDisks *proxy,
4368 const gchar *const *arg_options,
4370 GCancellable *cancellable,
4374 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4375 "DriveInhibitAllPolling",
4376 g_variant_new ("(^as)",
4378 G_DBUS_CALL_FLAGS_NONE,
4384 g_variant_get (_ret,
4387 g_variant_unref (_ret);
4389 return _ret != NULL;
4393 * org_freedesktop_udisks_call_drive_uninhibit_all_polling:
4394 * @proxy: A #OrgFreedesktopUDisksProxy.
4395 * @arg_cookie: Argument to pass with the method invocation.
4396 * @cancellable: (allow-none): A #GCancellable or %NULL.
4397 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4398 * @user_data: User data to pass to @callback.
4400 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUninhibitAllPolling">DriveUninhibitAllPolling()</link> D-Bus method on @proxy.
4401 * 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.
4402 * You can then call org_freedesktop_udisks_call_drive_uninhibit_all_polling_finish() to get the result of the operation.
4404 * See org_freedesktop_udisks_call_drive_uninhibit_all_polling_sync() for the synchronous, blocking version of this method.
4407 org_freedesktop_udisks_call_drive_uninhibit_all_polling (
4408 OrgFreedesktopUDisks *proxy,
4409 const gchar *arg_cookie,
4410 GCancellable *cancellable,
4411 GAsyncReadyCallback callback,
4414 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4415 "DriveUninhibitAllPolling",
4416 g_variant_new ("(s)",
4418 G_DBUS_CALL_FLAGS_NONE,
4426 * org_freedesktop_udisks_call_drive_uninhibit_all_polling_finish:
4427 * @proxy: A #OrgFreedesktopUDisksProxy.
4428 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_uninhibit_all_polling().
4429 * @error: Return location for error or %NULL.
4431 * Finishes an operation started with org_freedesktop_udisks_call_drive_uninhibit_all_polling().
4433 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4436 org_freedesktop_udisks_call_drive_uninhibit_all_polling_finish (
4437 OrgFreedesktopUDisks *proxy,
4442 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4445 g_variant_get (_ret,
4447 g_variant_unref (_ret);
4449 return _ret != NULL;
4453 * org_freedesktop_udisks_call_drive_uninhibit_all_polling_sync:
4454 * @proxy: A #OrgFreedesktopUDisksProxy.
4455 * @arg_cookie: Argument to pass with the method invocation.
4456 * @cancellable: (allow-none): A #GCancellable or %NULL.
4457 * @error: Return location for error or %NULL.
4459 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUninhibitAllPolling">DriveUninhibitAllPolling()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4461 * See org_freedesktop_udisks_call_drive_uninhibit_all_polling() for the asynchronous version of this method.
4463 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4466 org_freedesktop_udisks_call_drive_uninhibit_all_polling_sync (
4467 OrgFreedesktopUDisks *proxy,
4468 const gchar *arg_cookie,
4469 GCancellable *cancellable,
4473 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4474 "DriveUninhibitAllPolling",
4475 g_variant_new ("(s)",
4477 G_DBUS_CALL_FLAGS_NONE,
4483 g_variant_get (_ret,
4485 g_variant_unref (_ret);
4487 return _ret != NULL;
4491 * org_freedesktop_udisks_call_drive_set_all_spindown_timeouts:
4492 * @proxy: A #OrgFreedesktopUDisksProxy.
4493 * @arg_timeout_seconds: Argument to pass with the method invocation.
4494 * @arg_options: Argument to pass with the method invocation.
4495 * @cancellable: (allow-none): A #GCancellable or %NULL.
4496 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4497 * @user_data: User data to pass to @callback.
4499 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveSetAllSpindownTimeouts">DriveSetAllSpindownTimeouts()</link> D-Bus method on @proxy.
4500 * 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.
4501 * You can then call org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_finish() to get the result of the operation.
4503 * See org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_sync() for the synchronous, blocking version of this method.
4506 org_freedesktop_udisks_call_drive_set_all_spindown_timeouts (
4507 OrgFreedesktopUDisks *proxy,
4508 gint arg_timeout_seconds,
4509 const gchar *const *arg_options,
4510 GCancellable *cancellable,
4511 GAsyncReadyCallback callback,
4514 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4515 "DriveSetAllSpindownTimeouts",
4516 g_variant_new ("(i^as)",
4517 arg_timeout_seconds,
4519 G_DBUS_CALL_FLAGS_NONE,
4527 * org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_finish:
4528 * @proxy: A #OrgFreedesktopUDisksProxy.
4529 * @out_cookie: (out): Return location for return parameter or %NULL to ignore.
4530 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_set_all_spindown_timeouts().
4531 * @error: Return location for error or %NULL.
4533 * Finishes an operation started with org_freedesktop_udisks_call_drive_set_all_spindown_timeouts().
4535 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4538 org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_finish (
4539 OrgFreedesktopUDisks *proxy,
4545 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4548 g_variant_get (_ret,
4551 g_variant_unref (_ret);
4553 return _ret != NULL;
4557 * org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_sync:
4558 * @proxy: A #OrgFreedesktopUDisksProxy.
4559 * @arg_timeout_seconds: Argument to pass with the method invocation.
4560 * @arg_options: Argument to pass with the method invocation.
4561 * @out_cookie: (out): Return location for return parameter or %NULL to ignore.
4562 * @cancellable: (allow-none): A #GCancellable or %NULL.
4563 * @error: Return location for error or %NULL.
4565 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveSetAllSpindownTimeouts">DriveSetAllSpindownTimeouts()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4567 * See org_freedesktop_udisks_call_drive_set_all_spindown_timeouts() for the asynchronous version of this method.
4569 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4572 org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_sync (
4573 OrgFreedesktopUDisks *proxy,
4574 gint arg_timeout_seconds,
4575 const gchar *const *arg_options,
4577 GCancellable *cancellable,
4581 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4582 "DriveSetAllSpindownTimeouts",
4583 g_variant_new ("(i^as)",
4584 arg_timeout_seconds,
4586 G_DBUS_CALL_FLAGS_NONE,
4592 g_variant_get (_ret,
4595 g_variant_unref (_ret);
4597 return _ret != NULL;
4601 * org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts:
4602 * @proxy: A #OrgFreedesktopUDisksProxy.
4603 * @arg_cookie: Argument to pass with the method invocation.
4604 * @cancellable: (allow-none): A #GCancellable or %NULL.
4605 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4606 * @user_data: User data to pass to @callback.
4608 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUnsetAllSpindownTimeouts">DriveUnsetAllSpindownTimeouts()</link> D-Bus method on @proxy.
4609 * 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.
4610 * You can then call org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_finish() to get the result of the operation.
4612 * See org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_sync() for the synchronous, blocking version of this method.
4615 org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts (
4616 OrgFreedesktopUDisks *proxy,
4617 const gchar *arg_cookie,
4618 GCancellable *cancellable,
4619 GAsyncReadyCallback callback,
4622 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4623 "DriveUnsetAllSpindownTimeouts",
4624 g_variant_new ("(s)",
4626 G_DBUS_CALL_FLAGS_NONE,
4634 * org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_finish:
4635 * @proxy: A #OrgFreedesktopUDisksProxy.
4636 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts().
4637 * @error: Return location for error or %NULL.
4639 * Finishes an operation started with org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts().
4641 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4644 org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_finish (
4645 OrgFreedesktopUDisks *proxy,
4650 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4653 g_variant_get (_ret,
4655 g_variant_unref (_ret);
4657 return _ret != NULL;
4661 * org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_sync:
4662 * @proxy: A #OrgFreedesktopUDisksProxy.
4663 * @arg_cookie: Argument to pass with the method invocation.
4664 * @cancellable: (allow-none): A #GCancellable or %NULL.
4665 * @error: Return location for error or %NULL.
4667 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUnsetAllSpindownTimeouts">DriveUnsetAllSpindownTimeouts()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4669 * See org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts() for the asynchronous version of this method.
4671 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4674 org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_sync (
4675 OrgFreedesktopUDisks *proxy,
4676 const gchar *arg_cookie,
4677 GCancellable *cancellable,
4681 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4682 "DriveUnsetAllSpindownTimeouts",
4683 g_variant_new ("(s)",
4685 G_DBUS_CALL_FLAGS_NONE,
4691 g_variant_get (_ret,
4693 g_variant_unref (_ret);
4695 return _ret != NULL;
4699 * org_freedesktop_udisks_call_linux_lvm2_vgstart:
4700 * @proxy: A #OrgFreedesktopUDisksProxy.
4701 * @arg_uuid: Argument to pass with the method invocation.
4702 * @arg_options: Argument to pass with the method invocation.
4703 * @cancellable: (allow-none): A #GCancellable or %NULL.
4704 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4705 * @user_data: User data to pass to @callback.
4707 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStart">LinuxLvm2VGStart()</link> D-Bus method on @proxy.
4708 * 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.
4709 * You can then call org_freedesktop_udisks_call_linux_lvm2_vgstart_finish() to get the result of the operation.
4711 * See org_freedesktop_udisks_call_linux_lvm2_vgstart_sync() for the synchronous, blocking version of this method.
4714 org_freedesktop_udisks_call_linux_lvm2_vgstart (
4715 OrgFreedesktopUDisks *proxy,
4716 const gchar *arg_uuid,
4717 const gchar *const *arg_options,
4718 GCancellable *cancellable,
4719 GAsyncReadyCallback callback,
4722 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4724 g_variant_new ("(s^as)",
4727 G_DBUS_CALL_FLAGS_NONE,
4735 * org_freedesktop_udisks_call_linux_lvm2_vgstart_finish:
4736 * @proxy: A #OrgFreedesktopUDisksProxy.
4737 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgstart().
4738 * @error: Return location for error or %NULL.
4740 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgstart().
4742 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4745 org_freedesktop_udisks_call_linux_lvm2_vgstart_finish (
4746 OrgFreedesktopUDisks *proxy,
4751 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4754 g_variant_get (_ret,
4756 g_variant_unref (_ret);
4758 return _ret != NULL;
4762 * org_freedesktop_udisks_call_linux_lvm2_vgstart_sync:
4763 * @proxy: A #OrgFreedesktopUDisksProxy.
4764 * @arg_uuid: Argument to pass with the method invocation.
4765 * @arg_options: Argument to pass with the method invocation.
4766 * @cancellable: (allow-none): A #GCancellable or %NULL.
4767 * @error: Return location for error or %NULL.
4769 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStart">LinuxLvm2VGStart()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4771 * See org_freedesktop_udisks_call_linux_lvm2_vgstart() for the asynchronous version of this method.
4773 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4776 org_freedesktop_udisks_call_linux_lvm2_vgstart_sync (
4777 OrgFreedesktopUDisks *proxy,
4778 const gchar *arg_uuid,
4779 const gchar *const *arg_options,
4780 GCancellable *cancellable,
4784 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4786 g_variant_new ("(s^as)",
4789 G_DBUS_CALL_FLAGS_NONE,
4795 g_variant_get (_ret,
4797 g_variant_unref (_ret);
4799 return _ret != NULL;
4803 * org_freedesktop_udisks_call_linux_lvm2_vgstop:
4804 * @proxy: A #OrgFreedesktopUDisksProxy.
4805 * @arg_uuid: Argument to pass with the method invocation.
4806 * @arg_options: Argument to pass with the method invocation.
4807 * @cancellable: (allow-none): A #GCancellable or %NULL.
4808 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4809 * @user_data: User data to pass to @callback.
4811 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStop">LinuxLvm2VGStop()</link> D-Bus method on @proxy.
4812 * 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.
4813 * You can then call org_freedesktop_udisks_call_linux_lvm2_vgstop_finish() to get the result of the operation.
4815 * See org_freedesktop_udisks_call_linux_lvm2_vgstop_sync() for the synchronous, blocking version of this method.
4818 org_freedesktop_udisks_call_linux_lvm2_vgstop (
4819 OrgFreedesktopUDisks *proxy,
4820 const gchar *arg_uuid,
4821 const gchar *const *arg_options,
4822 GCancellable *cancellable,
4823 GAsyncReadyCallback callback,
4826 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4828 g_variant_new ("(s^as)",
4831 G_DBUS_CALL_FLAGS_NONE,
4839 * org_freedesktop_udisks_call_linux_lvm2_vgstop_finish:
4840 * @proxy: A #OrgFreedesktopUDisksProxy.
4841 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgstop().
4842 * @error: Return location for error or %NULL.
4844 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgstop().
4846 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4849 org_freedesktop_udisks_call_linux_lvm2_vgstop_finish (
4850 OrgFreedesktopUDisks *proxy,
4855 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4858 g_variant_get (_ret,
4860 g_variant_unref (_ret);
4862 return _ret != NULL;
4866 * org_freedesktop_udisks_call_linux_lvm2_vgstop_sync:
4867 * @proxy: A #OrgFreedesktopUDisksProxy.
4868 * @arg_uuid: Argument to pass with the method invocation.
4869 * @arg_options: Argument to pass with the method invocation.
4870 * @cancellable: (allow-none): A #GCancellable or %NULL.
4871 * @error: Return location for error or %NULL.
4873 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStop">LinuxLvm2VGStop()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4875 * See org_freedesktop_udisks_call_linux_lvm2_vgstop() for the asynchronous version of this method.
4877 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4880 org_freedesktop_udisks_call_linux_lvm2_vgstop_sync (
4881 OrgFreedesktopUDisks *proxy,
4882 const gchar *arg_uuid,
4883 const gchar *const *arg_options,
4884 GCancellable *cancellable,
4888 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4890 g_variant_new ("(s^as)",
4893 G_DBUS_CALL_FLAGS_NONE,
4899 g_variant_get (_ret,
4901 g_variant_unref (_ret);
4903 return _ret != NULL;
4907 * org_freedesktop_udisks_call_linux_lvm2_vgset_name:
4908 * @proxy: A #OrgFreedesktopUDisksProxy.
4909 * @arg_uuid: Argument to pass with the method invocation.
4910 * @arg_name: Argument to pass with the method invocation.
4911 * @cancellable: (allow-none): A #GCancellable or %NULL.
4912 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4913 * @user_data: User data to pass to @callback.
4915 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGSetName">LinuxLvm2VGSetName()</link> D-Bus method on @proxy.
4916 * 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.
4917 * You can then call org_freedesktop_udisks_call_linux_lvm2_vgset_name_finish() to get the result of the operation.
4919 * See org_freedesktop_udisks_call_linux_lvm2_vgset_name_sync() for the synchronous, blocking version of this method.
4922 org_freedesktop_udisks_call_linux_lvm2_vgset_name (
4923 OrgFreedesktopUDisks *proxy,
4924 const gchar *arg_uuid,
4925 const gchar *arg_name,
4926 GCancellable *cancellable,
4927 GAsyncReadyCallback callback,
4930 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4931 "LinuxLvm2VGSetName",
4932 g_variant_new ("(ss)",
4935 G_DBUS_CALL_FLAGS_NONE,
4943 * org_freedesktop_udisks_call_linux_lvm2_vgset_name_finish:
4944 * @proxy: A #OrgFreedesktopUDisksProxy.
4945 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgset_name().
4946 * @error: Return location for error or %NULL.
4948 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgset_name().
4950 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4953 org_freedesktop_udisks_call_linux_lvm2_vgset_name_finish (
4954 OrgFreedesktopUDisks *proxy,
4959 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4962 g_variant_get (_ret,
4964 g_variant_unref (_ret);
4966 return _ret != NULL;
4970 * org_freedesktop_udisks_call_linux_lvm2_vgset_name_sync:
4971 * @proxy: A #OrgFreedesktopUDisksProxy.
4972 * @arg_uuid: Argument to pass with the method invocation.
4973 * @arg_name: Argument to pass with the method invocation.
4974 * @cancellable: (allow-none): A #GCancellable or %NULL.
4975 * @error: Return location for error or %NULL.
4977 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGSetName">LinuxLvm2VGSetName()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4979 * See org_freedesktop_udisks_call_linux_lvm2_vgset_name() for the asynchronous version of this method.
4981 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4984 org_freedesktop_udisks_call_linux_lvm2_vgset_name_sync (
4985 OrgFreedesktopUDisks *proxy,
4986 const gchar *arg_uuid,
4987 const gchar *arg_name,
4988 GCancellable *cancellable,
4992 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4993 "LinuxLvm2VGSetName",
4994 g_variant_new ("(ss)",
4997 G_DBUS_CALL_FLAGS_NONE,
5003 g_variant_get (_ret,
5005 g_variant_unref (_ret);
5007 return _ret != NULL;
5011 * org_freedesktop_udisks_call_linux_lvm2_vgadd_pv:
5012 * @proxy: A #OrgFreedesktopUDisksProxy.
5013 * @arg_uuid: Argument to pass with the method invocation.
5014 * @arg_physical_volume: Argument to pass with the method invocation.
5015 * @arg_options: Argument to pass with the method invocation.
5016 * @cancellable: (allow-none): A #GCancellable or %NULL.
5017 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5018 * @user_data: User data to pass to @callback.
5020 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGAddPV">LinuxLvm2VGAddPV()</link> D-Bus method on @proxy.
5021 * 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.
5022 * You can then call org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_finish() to get the result of the operation.
5024 * See org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_sync() for the synchronous, blocking version of this method.
5027 org_freedesktop_udisks_call_linux_lvm2_vgadd_pv (
5028 OrgFreedesktopUDisks *proxy,
5029 const gchar *arg_uuid,
5030 const gchar *arg_physical_volume,
5031 const gchar *const *arg_options,
5032 GCancellable *cancellable,
5033 GAsyncReadyCallback callback,
5036 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5038 g_variant_new ("(so^as)",
5040 arg_physical_volume,
5042 G_DBUS_CALL_FLAGS_NONE,
5050 * org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_finish:
5051 * @proxy: A #OrgFreedesktopUDisksProxy.
5052 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgadd_pv().
5053 * @error: Return location for error or %NULL.
5055 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgadd_pv().
5057 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5060 org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_finish (
5061 OrgFreedesktopUDisks *proxy,
5066 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5069 g_variant_get (_ret,
5071 g_variant_unref (_ret);
5073 return _ret != NULL;
5077 * org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_sync:
5078 * @proxy: A #OrgFreedesktopUDisksProxy.
5079 * @arg_uuid: Argument to pass with the method invocation.
5080 * @arg_physical_volume: Argument to pass with the method invocation.
5081 * @arg_options: Argument to pass with the method invocation.
5082 * @cancellable: (allow-none): A #GCancellable or %NULL.
5083 * @error: Return location for error or %NULL.
5085 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGAddPV">LinuxLvm2VGAddPV()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5087 * See org_freedesktop_udisks_call_linux_lvm2_vgadd_pv() for the asynchronous version of this method.
5089 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5092 org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_sync (
5093 OrgFreedesktopUDisks *proxy,
5094 const gchar *arg_uuid,
5095 const gchar *arg_physical_volume,
5096 const gchar *const *arg_options,
5097 GCancellable *cancellable,
5101 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5103 g_variant_new ("(so^as)",
5105 arg_physical_volume,
5107 G_DBUS_CALL_FLAGS_NONE,
5113 g_variant_get (_ret,
5115 g_variant_unref (_ret);
5117 return _ret != NULL;
5121 * org_freedesktop_udisks_call_linux_lvm2_vgremove_pv:
5122 * @proxy: A #OrgFreedesktopUDisksProxy.
5123 * @arg_vg_uuid: Argument to pass with the method invocation.
5124 * @arg_pv_uuid: Argument to pass with the method invocation.
5125 * @arg_options: Argument to pass with the method invocation.
5126 * @cancellable: (allow-none): A #GCancellable or %NULL.
5127 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5128 * @user_data: User data to pass to @callback.
5130 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGRemovePV">LinuxLvm2VGRemovePV()</link> D-Bus method on @proxy.
5131 * 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.
5132 * You can then call org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_finish() to get the result of the operation.
5134 * See org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_sync() for the synchronous, blocking version of this method.
5137 org_freedesktop_udisks_call_linux_lvm2_vgremove_pv (
5138 OrgFreedesktopUDisks *proxy,
5139 const gchar *arg_vg_uuid,
5140 const gchar *arg_pv_uuid,
5141 const gchar *const *arg_options,
5142 GCancellable *cancellable,
5143 GAsyncReadyCallback callback,
5146 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5147 "LinuxLvm2VGRemovePV",
5148 g_variant_new ("(ss^as)",
5152 G_DBUS_CALL_FLAGS_NONE,
5160 * org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_finish:
5161 * @proxy: A #OrgFreedesktopUDisksProxy.
5162 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgremove_pv().
5163 * @error: Return location for error or %NULL.
5165 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgremove_pv().
5167 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5170 org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_finish (
5171 OrgFreedesktopUDisks *proxy,
5176 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5179 g_variant_get (_ret,
5181 g_variant_unref (_ret);
5183 return _ret != NULL;
5187 * org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_sync:
5188 * @proxy: A #OrgFreedesktopUDisksProxy.
5189 * @arg_vg_uuid: Argument to pass with the method invocation.
5190 * @arg_pv_uuid: Argument to pass with the method invocation.
5191 * @arg_options: Argument to pass with the method invocation.
5192 * @cancellable: (allow-none): A #GCancellable or %NULL.
5193 * @error: Return location for error or %NULL.
5195 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGRemovePV">LinuxLvm2VGRemovePV()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5197 * See org_freedesktop_udisks_call_linux_lvm2_vgremove_pv() for the asynchronous version of this method.
5199 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5202 org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_sync (
5203 OrgFreedesktopUDisks *proxy,
5204 const gchar *arg_vg_uuid,
5205 const gchar *arg_pv_uuid,
5206 const gchar *const *arg_options,
5207 GCancellable *cancellable,
5211 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5212 "LinuxLvm2VGRemovePV",
5213 g_variant_new ("(ss^as)",
5217 G_DBUS_CALL_FLAGS_NONE,
5223 g_variant_get (_ret,
5225 g_variant_unref (_ret);
5227 return _ret != NULL;
5231 * org_freedesktop_udisks_call_linux_lvm2_lvset_name:
5232 * @proxy: A #OrgFreedesktopUDisksProxy.
5233 * @arg_group_uuid: Argument to pass with the method invocation.
5234 * @arg_uuid: Argument to pass with the method invocation.
5235 * @arg_name: Argument to pass with the method invocation.
5236 * @cancellable: (allow-none): A #GCancellable or %NULL.
5237 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5238 * @user_data: User data to pass to @callback.
5240 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVSetName">LinuxLvm2LVSetName()</link> D-Bus method on @proxy.
5241 * 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.
5242 * You can then call org_freedesktop_udisks_call_linux_lvm2_lvset_name_finish() to get the result of the operation.
5244 * See org_freedesktop_udisks_call_linux_lvm2_lvset_name_sync() for the synchronous, blocking version of this method.
5247 org_freedesktop_udisks_call_linux_lvm2_lvset_name (
5248 OrgFreedesktopUDisks *proxy,
5249 const gchar *arg_group_uuid,
5250 const gchar *arg_uuid,
5251 const gchar *arg_name,
5252 GCancellable *cancellable,
5253 GAsyncReadyCallback callback,
5256 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5257 "LinuxLvm2LVSetName",
5258 g_variant_new ("(sss)",
5262 G_DBUS_CALL_FLAGS_NONE,
5270 * org_freedesktop_udisks_call_linux_lvm2_lvset_name_finish:
5271 * @proxy: A #OrgFreedesktopUDisksProxy.
5272 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvset_name().
5273 * @error: Return location for error or %NULL.
5275 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvset_name().
5277 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5280 org_freedesktop_udisks_call_linux_lvm2_lvset_name_finish (
5281 OrgFreedesktopUDisks *proxy,
5286 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5289 g_variant_get (_ret,
5291 g_variant_unref (_ret);
5293 return _ret != NULL;
5297 * org_freedesktop_udisks_call_linux_lvm2_lvset_name_sync:
5298 * @proxy: A #OrgFreedesktopUDisksProxy.
5299 * @arg_group_uuid: Argument to pass with the method invocation.
5300 * @arg_uuid: Argument to pass with the method invocation.
5301 * @arg_name: Argument to pass with the method invocation.
5302 * @cancellable: (allow-none): A #GCancellable or %NULL.
5303 * @error: Return location for error or %NULL.
5305 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVSetName">LinuxLvm2LVSetName()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5307 * See org_freedesktop_udisks_call_linux_lvm2_lvset_name() for the asynchronous version of this method.
5309 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5312 org_freedesktop_udisks_call_linux_lvm2_lvset_name_sync (
5313 OrgFreedesktopUDisks *proxy,
5314 const gchar *arg_group_uuid,
5315 const gchar *arg_uuid,
5316 const gchar *arg_name,
5317 GCancellable *cancellable,
5321 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5322 "LinuxLvm2LVSetName",
5323 g_variant_new ("(sss)",
5327 G_DBUS_CALL_FLAGS_NONE,
5333 g_variant_get (_ret,
5335 g_variant_unref (_ret);
5337 return _ret != NULL;
5341 * org_freedesktop_udisks_call_linux_lvm2_lvstart:
5342 * @proxy: A #OrgFreedesktopUDisksProxy.
5343 * @arg_group_uuid: Argument to pass with the method invocation.
5344 * @arg_uuid: Argument to pass with the method invocation.
5345 * @arg_options: Argument to pass with the method invocation.
5346 * @cancellable: (allow-none): A #GCancellable or %NULL.
5347 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5348 * @user_data: User data to pass to @callback.
5350 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVStart">LinuxLvm2LVStart()</link> D-Bus method on @proxy.
5351 * 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.
5352 * You can then call org_freedesktop_udisks_call_linux_lvm2_lvstart_finish() to get the result of the operation.
5354 * See org_freedesktop_udisks_call_linux_lvm2_lvstart_sync() for the synchronous, blocking version of this method.
5357 org_freedesktop_udisks_call_linux_lvm2_lvstart (
5358 OrgFreedesktopUDisks *proxy,
5359 const gchar *arg_group_uuid,
5360 const gchar *arg_uuid,
5361 const gchar *const *arg_options,
5362 GCancellable *cancellable,
5363 GAsyncReadyCallback callback,
5366 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5368 g_variant_new ("(ss^as)",
5372 G_DBUS_CALL_FLAGS_NONE,
5380 * org_freedesktop_udisks_call_linux_lvm2_lvstart_finish:
5381 * @proxy: A #OrgFreedesktopUDisksProxy.
5382 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvstart().
5383 * @error: Return location for error or %NULL.
5385 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvstart().
5387 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5390 org_freedesktop_udisks_call_linux_lvm2_lvstart_finish (
5391 OrgFreedesktopUDisks *proxy,
5396 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5399 g_variant_get (_ret,
5401 g_variant_unref (_ret);
5403 return _ret != NULL;
5407 * org_freedesktop_udisks_call_linux_lvm2_lvstart_sync:
5408 * @proxy: A #OrgFreedesktopUDisksProxy.
5409 * @arg_group_uuid: Argument to pass with the method invocation.
5410 * @arg_uuid: Argument to pass with the method invocation.
5411 * @arg_options: Argument to pass with the method invocation.
5412 * @cancellable: (allow-none): A #GCancellable or %NULL.
5413 * @error: Return location for error or %NULL.
5415 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVStart">LinuxLvm2LVStart()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5417 * See org_freedesktop_udisks_call_linux_lvm2_lvstart() for the asynchronous version of this method.
5419 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5422 org_freedesktop_udisks_call_linux_lvm2_lvstart_sync (
5423 OrgFreedesktopUDisks *proxy,
5424 const gchar *arg_group_uuid,
5425 const gchar *arg_uuid,
5426 const gchar *const *arg_options,
5427 GCancellable *cancellable,
5431 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5433 g_variant_new ("(ss^as)",
5437 G_DBUS_CALL_FLAGS_NONE,
5443 g_variant_get (_ret,
5445 g_variant_unref (_ret);
5447 return _ret != NULL;
5451 * org_freedesktop_udisks_call_linux_lvm2_lvremove:
5452 * @proxy: A #OrgFreedesktopUDisksProxy.
5453 * @arg_group_uuid: Argument to pass with the method invocation.
5454 * @arg_uuid: Argument to pass with the method invocation.
5455 * @arg_options: Argument to pass with the method invocation.
5456 * @cancellable: (allow-none): A #GCancellable or %NULL.
5457 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5458 * @user_data: User data to pass to @callback.
5460 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVRemove">LinuxLvm2LVRemove()</link> D-Bus method on @proxy.
5461 * 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.
5462 * You can then call org_freedesktop_udisks_call_linux_lvm2_lvremove_finish() to get the result of the operation.
5464 * See org_freedesktop_udisks_call_linux_lvm2_lvremove_sync() for the synchronous, blocking version of this method.
5467 org_freedesktop_udisks_call_linux_lvm2_lvremove (
5468 OrgFreedesktopUDisks *proxy,
5469 const gchar *arg_group_uuid,
5470 const gchar *arg_uuid,
5471 const gchar *const *arg_options,
5472 GCancellable *cancellable,
5473 GAsyncReadyCallback callback,
5476 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5477 "LinuxLvm2LVRemove",
5478 g_variant_new ("(ss^as)",
5482 G_DBUS_CALL_FLAGS_NONE,
5490 * org_freedesktop_udisks_call_linux_lvm2_lvremove_finish:
5491 * @proxy: A #OrgFreedesktopUDisksProxy.
5492 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvremove().
5493 * @error: Return location for error or %NULL.
5495 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvremove().
5497 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5500 org_freedesktop_udisks_call_linux_lvm2_lvremove_finish (
5501 OrgFreedesktopUDisks *proxy,
5506 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5509 g_variant_get (_ret,
5511 g_variant_unref (_ret);
5513 return _ret != NULL;
5517 * org_freedesktop_udisks_call_linux_lvm2_lvremove_sync:
5518 * @proxy: A #OrgFreedesktopUDisksProxy.
5519 * @arg_group_uuid: Argument to pass with the method invocation.
5520 * @arg_uuid: Argument to pass with the method invocation.
5521 * @arg_options: Argument to pass with the method invocation.
5522 * @cancellable: (allow-none): A #GCancellable or %NULL.
5523 * @error: Return location for error or %NULL.
5525 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVRemove">LinuxLvm2LVRemove()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5527 * See org_freedesktop_udisks_call_linux_lvm2_lvremove() for the asynchronous version of this method.
5529 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5532 org_freedesktop_udisks_call_linux_lvm2_lvremove_sync (
5533 OrgFreedesktopUDisks *proxy,
5534 const gchar *arg_group_uuid,
5535 const gchar *arg_uuid,
5536 const gchar *const *arg_options,
5537 GCancellable *cancellable,
5541 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5542 "LinuxLvm2LVRemove",
5543 g_variant_new ("(ss^as)",
5547 G_DBUS_CALL_FLAGS_NONE,
5553 g_variant_get (_ret,
5555 g_variant_unref (_ret);
5557 return _ret != NULL;
5561 * org_freedesktop_udisks_call_linux_lvm2_lvcreate:
5562 * @proxy: A #OrgFreedesktopUDisksProxy.
5563 * @arg_group_uuid: Argument to pass with the method invocation.
5564 * @arg_name: Argument to pass with the method invocation.
5565 * @arg_size: Argument to pass with the method invocation.
5566 * @arg_num_stripes: Argument to pass with the method invocation.
5567 * @arg_stripe_size: Argument to pass with the method invocation.
5568 * @arg_num_mirrors: Argument to pass with the method invocation.
5569 * @arg_options: Argument to pass with the method invocation.
5570 * @arg_fstype: Argument to pass with the method invocation.
5571 * @arg_fsoptions: Argument to pass with the method invocation.
5572 * @cancellable: (allow-none): A #GCancellable or %NULL.
5573 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5574 * @user_data: User data to pass to @callback.
5576 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVCreate">LinuxLvm2LVCreate()</link> D-Bus method on @proxy.
5577 * 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.
5578 * You can then call org_freedesktop_udisks_call_linux_lvm2_lvcreate_finish() to get the result of the operation.
5580 * See org_freedesktop_udisks_call_linux_lvm2_lvcreate_sync() for the synchronous, blocking version of this method.
5583 org_freedesktop_udisks_call_linux_lvm2_lvcreate (
5584 OrgFreedesktopUDisks *proxy,
5585 const gchar *arg_group_uuid,
5586 const gchar *arg_name,
5588 guint arg_num_stripes,
5589 guint64 arg_stripe_size,
5590 guint arg_num_mirrors,
5591 const gchar *const *arg_options,
5592 const gchar *arg_fstype,
5593 const gchar *const *arg_fsoptions,
5594 GCancellable *cancellable,
5595 GAsyncReadyCallback callback,
5598 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5599 "LinuxLvm2LVCreate",
5600 g_variant_new ("(sstutu^ass^as)",
5610 G_DBUS_CALL_FLAGS_NONE,
5618 * org_freedesktop_udisks_call_linux_lvm2_lvcreate_finish:
5619 * @proxy: A #OrgFreedesktopUDisksProxy.
5620 * @out_created_device: (out): Return location for return parameter or %NULL to ignore.
5621 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvcreate().
5622 * @error: Return location for error or %NULL.
5624 * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvcreate().
5626 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5629 org_freedesktop_udisks_call_linux_lvm2_lvcreate_finish (
5630 OrgFreedesktopUDisks *proxy,
5631 gchar **out_created_device,
5636 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5639 g_variant_get (_ret,
5641 out_created_device);
5642 g_variant_unref (_ret);
5644 return _ret != NULL;
5648 * org_freedesktop_udisks_call_linux_lvm2_lvcreate_sync:
5649 * @proxy: A #OrgFreedesktopUDisksProxy.
5650 * @arg_group_uuid: Argument to pass with the method invocation.
5651 * @arg_name: Argument to pass with the method invocation.
5652 * @arg_size: Argument to pass with the method invocation.
5653 * @arg_num_stripes: Argument to pass with the method invocation.
5654 * @arg_stripe_size: Argument to pass with the method invocation.
5655 * @arg_num_mirrors: Argument to pass with the method invocation.
5656 * @arg_options: Argument to pass with the method invocation.
5657 * @arg_fstype: Argument to pass with the method invocation.
5658 * @arg_fsoptions: Argument to pass with the method invocation.
5659 * @out_created_device: (out): Return location for return parameter or %NULL to ignore.
5660 * @cancellable: (allow-none): A #GCancellable or %NULL.
5661 * @error: Return location for error or %NULL.
5663 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVCreate">LinuxLvm2LVCreate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5665 * See org_freedesktop_udisks_call_linux_lvm2_lvcreate() for the asynchronous version of this method.
5667 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5670 org_freedesktop_udisks_call_linux_lvm2_lvcreate_sync (
5671 OrgFreedesktopUDisks *proxy,
5672 const gchar *arg_group_uuid,
5673 const gchar *arg_name,
5675 guint arg_num_stripes,
5676 guint64 arg_stripe_size,
5677 guint arg_num_mirrors,
5678 const gchar *const *arg_options,
5679 const gchar *arg_fstype,
5680 const gchar *const *arg_fsoptions,
5681 gchar **out_created_device,
5682 GCancellable *cancellable,
5686 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5687 "LinuxLvm2LVCreate",
5688 g_variant_new ("(sstutu^ass^as)",
5698 G_DBUS_CALL_FLAGS_NONE,
5704 g_variant_get (_ret,
5706 out_created_device);
5707 g_variant_unref (_ret);
5709 return _ret != NULL;
5713 * org_freedesktop_udisks_call_linux_md_start:
5714 * @proxy: A #OrgFreedesktopUDisksProxy.
5715 * @arg_components: Argument to pass with the method invocation.
5716 * @arg_options: Argument to pass with the method invocation.
5717 * @cancellable: (allow-none): A #GCancellable or %NULL.
5718 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5719 * @user_data: User data to pass to @callback.
5721 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdStart">LinuxMdStart()</link> D-Bus method on @proxy.
5722 * 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.
5723 * You can then call org_freedesktop_udisks_call_linux_md_start_finish() to get the result of the operation.
5725 * See org_freedesktop_udisks_call_linux_md_start_sync() for the synchronous, blocking version of this method.
5728 org_freedesktop_udisks_call_linux_md_start (
5729 OrgFreedesktopUDisks *proxy,
5730 const gchar *const *arg_components,
5731 const gchar *const *arg_options,
5732 GCancellable *cancellable,
5733 GAsyncReadyCallback callback,
5736 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5738 g_variant_new ("(^ao^as)",
5741 G_DBUS_CALL_FLAGS_NONE,
5749 * org_freedesktop_udisks_call_linux_md_start_finish:
5750 * @proxy: A #OrgFreedesktopUDisksProxy.
5751 * @out_device: (out): Return location for return parameter or %NULL to ignore.
5752 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_md_start().
5753 * @error: Return location for error or %NULL.
5755 * Finishes an operation started with org_freedesktop_udisks_call_linux_md_start().
5757 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5760 org_freedesktop_udisks_call_linux_md_start_finish (
5761 OrgFreedesktopUDisks *proxy,
5767 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5770 g_variant_get (_ret,
5773 g_variant_unref (_ret);
5775 return _ret != NULL;
5779 * org_freedesktop_udisks_call_linux_md_start_sync:
5780 * @proxy: A #OrgFreedesktopUDisksProxy.
5781 * @arg_components: Argument to pass with the method invocation.
5782 * @arg_options: Argument to pass with the method invocation.
5783 * @out_device: (out): Return location for return parameter or %NULL to ignore.
5784 * @cancellable: (allow-none): A #GCancellable or %NULL.
5785 * @error: Return location for error or %NULL.
5787 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdStart">LinuxMdStart()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5789 * See org_freedesktop_udisks_call_linux_md_start() for the asynchronous version of this method.
5791 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5794 org_freedesktop_udisks_call_linux_md_start_sync (
5795 OrgFreedesktopUDisks *proxy,
5796 const gchar *const *arg_components,
5797 const gchar *const *arg_options,
5799 GCancellable *cancellable,
5803 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5805 g_variant_new ("(^ao^as)",
5808 G_DBUS_CALL_FLAGS_NONE,
5814 g_variant_get (_ret,
5817 g_variant_unref (_ret);
5819 return _ret != NULL;
5823 * org_freedesktop_udisks_call_linux_md_create:
5824 * @proxy: A #OrgFreedesktopUDisksProxy.
5825 * @arg_components: Argument to pass with the method invocation.
5826 * @arg_level: Argument to pass with the method invocation.
5827 * @arg_stripe_size: Argument to pass with the method invocation.
5828 * @arg_name: Argument to pass with the method invocation.
5829 * @arg_options: Argument to pass with the method invocation.
5830 * @cancellable: (allow-none): A #GCancellable or %NULL.
5831 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5832 * @user_data: User data to pass to @callback.
5834 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdCreate">LinuxMdCreate()</link> D-Bus method on @proxy.
5835 * 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.
5836 * You can then call org_freedesktop_udisks_call_linux_md_create_finish() to get the result of the operation.
5838 * See org_freedesktop_udisks_call_linux_md_create_sync() for the synchronous, blocking version of this method.
5841 org_freedesktop_udisks_call_linux_md_create (
5842 OrgFreedesktopUDisks *proxy,
5843 const gchar *const *arg_components,
5844 const gchar *arg_level,
5845 guint64 arg_stripe_size,
5846 const gchar *arg_name,
5847 const gchar *const *arg_options,
5848 GCancellable *cancellable,
5849 GAsyncReadyCallback callback,
5852 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5854 g_variant_new ("(^aosts^as)",
5860 G_DBUS_CALL_FLAGS_NONE,
5868 * org_freedesktop_udisks_call_linux_md_create_finish:
5869 * @proxy: A #OrgFreedesktopUDisksProxy.
5870 * @out_device: (out): Return location for return parameter or %NULL to ignore.
5871 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_md_create().
5872 * @error: Return location for error or %NULL.
5874 * Finishes an operation started with org_freedesktop_udisks_call_linux_md_create().
5876 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5879 org_freedesktop_udisks_call_linux_md_create_finish (
5880 OrgFreedesktopUDisks *proxy,
5886 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5889 g_variant_get (_ret,
5892 g_variant_unref (_ret);
5894 return _ret != NULL;
5898 * org_freedesktop_udisks_call_linux_md_create_sync:
5899 * @proxy: A #OrgFreedesktopUDisksProxy.
5900 * @arg_components: Argument to pass with the method invocation.
5901 * @arg_level: Argument to pass with the method invocation.
5902 * @arg_stripe_size: Argument to pass with the method invocation.
5903 * @arg_name: Argument to pass with the method invocation.
5904 * @arg_options: Argument to pass with the method invocation.
5905 * @out_device: (out): Return location for return parameter or %NULL to ignore.
5906 * @cancellable: (allow-none): A #GCancellable or %NULL.
5907 * @error: Return location for error or %NULL.
5909 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdCreate">LinuxMdCreate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5911 * See org_freedesktop_udisks_call_linux_md_create() for the asynchronous version of this method.
5913 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5916 org_freedesktop_udisks_call_linux_md_create_sync (
5917 OrgFreedesktopUDisks *proxy,
5918 const gchar *const *arg_components,
5919 const gchar *arg_level,
5920 guint64 arg_stripe_size,
5921 const gchar *arg_name,
5922 const gchar *const *arg_options,
5924 GCancellable *cancellable,
5928 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5930 g_variant_new ("(^aosts^as)",
5936 G_DBUS_CALL_FLAGS_NONE,
5942 g_variant_get (_ret,
5945 g_variant_unref (_ret);
5947 return _ret != NULL;
5951 * org_freedesktop_udisks_call_inhibit:
5952 * @proxy: A #OrgFreedesktopUDisksProxy.
5953 * @cancellable: (allow-none): A #GCancellable or %NULL.
5954 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5955 * @user_data: User data to pass to @callback.
5957 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.Inhibit">Inhibit()</link> D-Bus method on @proxy.
5958 * 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.
5959 * You can then call org_freedesktop_udisks_call_inhibit_finish() to get the result of the operation.
5961 * See org_freedesktop_udisks_call_inhibit_sync() for the synchronous, blocking version of this method.
5964 org_freedesktop_udisks_call_inhibit (
5965 OrgFreedesktopUDisks *proxy,
5966 GCancellable *cancellable,
5967 GAsyncReadyCallback callback,
5970 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5972 g_variant_new ("()"),
5973 G_DBUS_CALL_FLAGS_NONE,
5981 * org_freedesktop_udisks_call_inhibit_finish:
5982 * @proxy: A #OrgFreedesktopUDisksProxy.
5983 * @out_cookie: (out): Return location for return parameter or %NULL to ignore.
5984 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_inhibit().
5985 * @error: Return location for error or %NULL.
5987 * Finishes an operation started with org_freedesktop_udisks_call_inhibit().
5989 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5992 org_freedesktop_udisks_call_inhibit_finish (
5993 OrgFreedesktopUDisks *proxy,
5999 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6002 g_variant_get (_ret,
6005 g_variant_unref (_ret);
6007 return _ret != NULL;
6011 * org_freedesktop_udisks_call_inhibit_sync:
6012 * @proxy: A #OrgFreedesktopUDisksProxy.
6013 * @out_cookie: (out): Return location for return parameter or %NULL to ignore.
6014 * @cancellable: (allow-none): A #GCancellable or %NULL.
6015 * @error: Return location for error or %NULL.
6017 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.Inhibit">Inhibit()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6019 * See org_freedesktop_udisks_call_inhibit() for the asynchronous version of this method.
6021 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6024 org_freedesktop_udisks_call_inhibit_sync (
6025 OrgFreedesktopUDisks *proxy,
6027 GCancellable *cancellable,
6031 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6033 g_variant_new ("()"),
6034 G_DBUS_CALL_FLAGS_NONE,
6040 g_variant_get (_ret,
6043 g_variant_unref (_ret);
6045 return _ret != NULL;
6049 * org_freedesktop_udisks_call_uninhibit:
6050 * @proxy: A #OrgFreedesktopUDisksProxy.
6051 * @arg_cookie: Argument to pass with the method invocation.
6052 * @cancellable: (allow-none): A #GCancellable or %NULL.
6053 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6054 * @user_data: User data to pass to @callback.
6056 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.Uninhibit">Uninhibit()</link> D-Bus method on @proxy.
6057 * 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.
6058 * You can then call org_freedesktop_udisks_call_uninhibit_finish() to get the result of the operation.
6060 * See org_freedesktop_udisks_call_uninhibit_sync() for the synchronous, blocking version of this method.
6063 org_freedesktop_udisks_call_uninhibit (
6064 OrgFreedesktopUDisks *proxy,
6065 const gchar *arg_cookie,
6066 GCancellable *cancellable,
6067 GAsyncReadyCallback callback,
6070 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6072 g_variant_new ("(s)",
6074 G_DBUS_CALL_FLAGS_NONE,
6082 * org_freedesktop_udisks_call_uninhibit_finish:
6083 * @proxy: A #OrgFreedesktopUDisksProxy.
6084 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_uninhibit().
6085 * @error: Return location for error or %NULL.
6087 * Finishes an operation started with org_freedesktop_udisks_call_uninhibit().
6089 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6092 org_freedesktop_udisks_call_uninhibit_finish (
6093 OrgFreedesktopUDisks *proxy,
6098 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6101 g_variant_get (_ret,
6103 g_variant_unref (_ret);
6105 return _ret != NULL;
6109 * org_freedesktop_udisks_call_uninhibit_sync:
6110 * @proxy: A #OrgFreedesktopUDisksProxy.
6111 * @arg_cookie: Argument to pass with the method invocation.
6112 * @cancellable: (allow-none): A #GCancellable or %NULL.
6113 * @error: Return location for error or %NULL.
6115 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-UDisks.Uninhibit">Uninhibit()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6117 * See org_freedesktop_udisks_call_uninhibit() for the asynchronous version of this method.
6119 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6122 org_freedesktop_udisks_call_uninhibit_sync (
6123 OrgFreedesktopUDisks *proxy,
6124 const gchar *arg_cookie,
6125 GCancellable *cancellable,
6129 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6131 g_variant_new ("(s)",
6133 G_DBUS_CALL_FLAGS_NONE,
6139 g_variant_get (_ret,
6141 g_variant_unref (_ret);
6143 return _ret != NULL;
6147 * org_freedesktop_udisks_complete_enumerate_adapters:
6148 * @object: A #OrgFreedesktopUDisks.
6149 * @invocation: (transfer full): A #GDBusMethodInvocation.
6150 * @devices: Parameter to return.
6152 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateAdapters">EnumerateAdapters()</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.
6154 * This method will free @invocation, you cannot use it afterwards.
6157 org_freedesktop_udisks_complete_enumerate_adapters (
6158 OrgFreedesktopUDisks *object,
6159 GDBusMethodInvocation *invocation,
6160 const gchar *const *devices)
6162 g_dbus_method_invocation_return_value (invocation,
6163 g_variant_new ("(^ao)",
6168 * org_freedesktop_udisks_complete_enumerate_expanders:
6169 * @object: A #OrgFreedesktopUDisks.
6170 * @invocation: (transfer full): A #GDBusMethodInvocation.
6171 * @devices: Parameter to return.
6173 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateExpanders">EnumerateExpanders()</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.
6175 * This method will free @invocation, you cannot use it afterwards.
6178 org_freedesktop_udisks_complete_enumerate_expanders (
6179 OrgFreedesktopUDisks *object,
6180 GDBusMethodInvocation *invocation,
6181 const gchar *const *devices)
6183 g_dbus_method_invocation_return_value (invocation,
6184 g_variant_new ("(^ao)",
6189 * org_freedesktop_udisks_complete_enumerate_ports:
6190 * @object: A #OrgFreedesktopUDisks.
6191 * @invocation: (transfer full): A #GDBusMethodInvocation.
6192 * @devices: Parameter to return.
6194 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumeratePorts">EnumeratePorts()</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.
6196 * This method will free @invocation, you cannot use it afterwards.
6199 org_freedesktop_udisks_complete_enumerate_ports (
6200 OrgFreedesktopUDisks *object,
6201 GDBusMethodInvocation *invocation,
6202 const gchar *const *devices)
6204 g_dbus_method_invocation_return_value (invocation,
6205 g_variant_new ("(^ao)",
6210 * org_freedesktop_udisks_complete_enumerate_devices:
6211 * @object: A #OrgFreedesktopUDisks.
6212 * @invocation: (transfer full): A #GDBusMethodInvocation.
6213 * @devices: Parameter to return.
6215 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDevices">EnumerateDevices()</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.
6217 * This method will free @invocation, you cannot use it afterwards.
6220 org_freedesktop_udisks_complete_enumerate_devices (
6221 OrgFreedesktopUDisks *object,
6222 GDBusMethodInvocation *invocation,
6223 const gchar *const *devices)
6225 g_dbus_method_invocation_return_value (invocation,
6226 g_variant_new ("(^ao)",
6231 * org_freedesktop_udisks_complete_enumerate_device_files:
6232 * @object: A #OrgFreedesktopUDisks.
6233 * @invocation: (transfer full): A #GDBusMethodInvocation.
6234 * @device_files: Parameter to return.
6236 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.EnumerateDeviceFiles">EnumerateDeviceFiles()</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.
6238 * This method will free @invocation, you cannot use it afterwards.
6241 org_freedesktop_udisks_complete_enumerate_device_files (
6242 OrgFreedesktopUDisks *object,
6243 GDBusMethodInvocation *invocation,
6244 const gchar *const *device_files)
6246 g_dbus_method_invocation_return_value (invocation,
6247 g_variant_new ("(^as)",
6252 * org_freedesktop_udisks_complete_find_device_by_device_file:
6253 * @object: A #OrgFreedesktopUDisks.
6254 * @invocation: (transfer full): A #GDBusMethodInvocation.
6255 * @device: Parameter to return.
6257 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByDeviceFile">FindDeviceByDeviceFile()</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.
6259 * This method will free @invocation, you cannot use it afterwards.
6262 org_freedesktop_udisks_complete_find_device_by_device_file (
6263 OrgFreedesktopUDisks *object,
6264 GDBusMethodInvocation *invocation,
6265 const gchar *device)
6267 g_dbus_method_invocation_return_value (invocation,
6268 g_variant_new ("(o)",
6273 * org_freedesktop_udisks_complete_find_device_by_major_minor:
6274 * @object: A #OrgFreedesktopUDisks.
6275 * @invocation: (transfer full): A #GDBusMethodInvocation.
6276 * @device: Parameter to return.
6278 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.FindDeviceByMajorMinor">FindDeviceByMajorMinor()</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.
6280 * This method will free @invocation, you cannot use it afterwards.
6283 org_freedesktop_udisks_complete_find_device_by_major_minor (
6284 OrgFreedesktopUDisks *object,
6285 GDBusMethodInvocation *invocation,
6286 const gchar *device)
6288 g_dbus_method_invocation_return_value (invocation,
6289 g_variant_new ("(o)",
6294 * org_freedesktop_udisks_complete_drive_inhibit_all_polling:
6295 * @object: A #OrgFreedesktopUDisks.
6296 * @invocation: (transfer full): A #GDBusMethodInvocation.
6297 * @cookie: Parameter to return.
6299 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveInhibitAllPolling">DriveInhibitAllPolling()</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.
6301 * This method will free @invocation, you cannot use it afterwards.
6304 org_freedesktop_udisks_complete_drive_inhibit_all_polling (
6305 OrgFreedesktopUDisks *object,
6306 GDBusMethodInvocation *invocation,
6307 const gchar *cookie)
6309 g_dbus_method_invocation_return_value (invocation,
6310 g_variant_new ("(s)",
6315 * org_freedesktop_udisks_complete_drive_uninhibit_all_polling:
6316 * @object: A #OrgFreedesktopUDisks.
6317 * @invocation: (transfer full): A #GDBusMethodInvocation.
6319 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUninhibitAllPolling">DriveUninhibitAllPolling()</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.
6321 * This method will free @invocation, you cannot use it afterwards.
6324 org_freedesktop_udisks_complete_drive_uninhibit_all_polling (
6325 OrgFreedesktopUDisks *object,
6326 GDBusMethodInvocation *invocation)
6328 g_dbus_method_invocation_return_value (invocation,
6329 g_variant_new ("()"));
6333 * org_freedesktop_udisks_complete_drive_set_all_spindown_timeouts:
6334 * @object: A #OrgFreedesktopUDisks.
6335 * @invocation: (transfer full): A #GDBusMethodInvocation.
6336 * @cookie: Parameter to return.
6338 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveSetAllSpindownTimeouts">DriveSetAllSpindownTimeouts()</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.
6340 * This method will free @invocation, you cannot use it afterwards.
6343 org_freedesktop_udisks_complete_drive_set_all_spindown_timeouts (
6344 OrgFreedesktopUDisks *object,
6345 GDBusMethodInvocation *invocation,
6346 const gchar *cookie)
6348 g_dbus_method_invocation_return_value (invocation,
6349 g_variant_new ("(s)",
6354 * org_freedesktop_udisks_complete_drive_unset_all_spindown_timeouts:
6355 * @object: A #OrgFreedesktopUDisks.
6356 * @invocation: (transfer full): A #GDBusMethodInvocation.
6358 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.DriveUnsetAllSpindownTimeouts">DriveUnsetAllSpindownTimeouts()</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.
6360 * This method will free @invocation, you cannot use it afterwards.
6363 org_freedesktop_udisks_complete_drive_unset_all_spindown_timeouts (
6364 OrgFreedesktopUDisks *object,
6365 GDBusMethodInvocation *invocation)
6367 g_dbus_method_invocation_return_value (invocation,
6368 g_variant_new ("()"));
6372 * org_freedesktop_udisks_complete_linux_lvm2_vgstart:
6373 * @object: A #OrgFreedesktopUDisks.
6374 * @invocation: (transfer full): A #GDBusMethodInvocation.
6376 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStart">LinuxLvm2VGStart()</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.
6378 * This method will free @invocation, you cannot use it afterwards.
6381 org_freedesktop_udisks_complete_linux_lvm2_vgstart (
6382 OrgFreedesktopUDisks *object,
6383 GDBusMethodInvocation *invocation)
6385 g_dbus_method_invocation_return_value (invocation,
6386 g_variant_new ("()"));
6390 * org_freedesktop_udisks_complete_linux_lvm2_vgstop:
6391 * @object: A #OrgFreedesktopUDisks.
6392 * @invocation: (transfer full): A #GDBusMethodInvocation.
6394 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGStop">LinuxLvm2VGStop()</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.
6396 * This method will free @invocation, you cannot use it afterwards.
6399 org_freedesktop_udisks_complete_linux_lvm2_vgstop (
6400 OrgFreedesktopUDisks *object,
6401 GDBusMethodInvocation *invocation)
6403 g_dbus_method_invocation_return_value (invocation,
6404 g_variant_new ("()"));
6408 * org_freedesktop_udisks_complete_linux_lvm2_vgset_name:
6409 * @object: A #OrgFreedesktopUDisks.
6410 * @invocation: (transfer full): A #GDBusMethodInvocation.
6412 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGSetName">LinuxLvm2VGSetName()</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.
6414 * This method will free @invocation, you cannot use it afterwards.
6417 org_freedesktop_udisks_complete_linux_lvm2_vgset_name (
6418 OrgFreedesktopUDisks *object,
6419 GDBusMethodInvocation *invocation)
6421 g_dbus_method_invocation_return_value (invocation,
6422 g_variant_new ("()"));
6426 * org_freedesktop_udisks_complete_linux_lvm2_vgadd_pv:
6427 * @object: A #OrgFreedesktopUDisks.
6428 * @invocation: (transfer full): A #GDBusMethodInvocation.
6430 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGAddPV">LinuxLvm2VGAddPV()</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.
6432 * This method will free @invocation, you cannot use it afterwards.
6435 org_freedesktop_udisks_complete_linux_lvm2_vgadd_pv (
6436 OrgFreedesktopUDisks *object,
6437 GDBusMethodInvocation *invocation)
6439 g_dbus_method_invocation_return_value (invocation,
6440 g_variant_new ("()"));
6444 * org_freedesktop_udisks_complete_linux_lvm2_vgremove_pv:
6445 * @object: A #OrgFreedesktopUDisks.
6446 * @invocation: (transfer full): A #GDBusMethodInvocation.
6448 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2VGRemovePV">LinuxLvm2VGRemovePV()</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.
6450 * This method will free @invocation, you cannot use it afterwards.
6453 org_freedesktop_udisks_complete_linux_lvm2_vgremove_pv (
6454 OrgFreedesktopUDisks *object,
6455 GDBusMethodInvocation *invocation)
6457 g_dbus_method_invocation_return_value (invocation,
6458 g_variant_new ("()"));
6462 * org_freedesktop_udisks_complete_linux_lvm2_lvset_name:
6463 * @object: A #OrgFreedesktopUDisks.
6464 * @invocation: (transfer full): A #GDBusMethodInvocation.
6466 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVSetName">LinuxLvm2LVSetName()</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.
6468 * This method will free @invocation, you cannot use it afterwards.
6471 org_freedesktop_udisks_complete_linux_lvm2_lvset_name (
6472 OrgFreedesktopUDisks *object,
6473 GDBusMethodInvocation *invocation)
6475 g_dbus_method_invocation_return_value (invocation,
6476 g_variant_new ("()"));
6480 * org_freedesktop_udisks_complete_linux_lvm2_lvstart:
6481 * @object: A #OrgFreedesktopUDisks.
6482 * @invocation: (transfer full): A #GDBusMethodInvocation.
6484 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVStart">LinuxLvm2LVStart()</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.
6486 * This method will free @invocation, you cannot use it afterwards.
6489 org_freedesktop_udisks_complete_linux_lvm2_lvstart (
6490 OrgFreedesktopUDisks *object,
6491 GDBusMethodInvocation *invocation)
6493 g_dbus_method_invocation_return_value (invocation,
6494 g_variant_new ("()"));
6498 * org_freedesktop_udisks_complete_linux_lvm2_lvremove:
6499 * @object: A #OrgFreedesktopUDisks.
6500 * @invocation: (transfer full): A #GDBusMethodInvocation.
6502 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVRemove">LinuxLvm2LVRemove()</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.
6504 * This method will free @invocation, you cannot use it afterwards.
6507 org_freedesktop_udisks_complete_linux_lvm2_lvremove (
6508 OrgFreedesktopUDisks *object,
6509 GDBusMethodInvocation *invocation)
6511 g_dbus_method_invocation_return_value (invocation,
6512 g_variant_new ("()"));
6516 * org_freedesktop_udisks_complete_linux_lvm2_lvcreate:
6517 * @object: A #OrgFreedesktopUDisks.
6518 * @invocation: (transfer full): A #GDBusMethodInvocation.
6519 * @created_device: Parameter to return.
6521 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxLvm2LVCreate">LinuxLvm2LVCreate()</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.
6523 * This method will free @invocation, you cannot use it afterwards.
6526 org_freedesktop_udisks_complete_linux_lvm2_lvcreate (
6527 OrgFreedesktopUDisks *object,
6528 GDBusMethodInvocation *invocation,
6529 const gchar *created_device)
6531 g_dbus_method_invocation_return_value (invocation,
6532 g_variant_new ("(o)",
6537 * org_freedesktop_udisks_complete_linux_md_start:
6538 * @object: A #OrgFreedesktopUDisks.
6539 * @invocation: (transfer full): A #GDBusMethodInvocation.
6540 * @device: Parameter to return.
6542 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdStart">LinuxMdStart()</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.
6544 * This method will free @invocation, you cannot use it afterwards.
6547 org_freedesktop_udisks_complete_linux_md_start (
6548 OrgFreedesktopUDisks *object,
6549 GDBusMethodInvocation *invocation,
6550 const gchar *device)
6552 g_dbus_method_invocation_return_value (invocation,
6553 g_variant_new ("(o)",
6558 * org_freedesktop_udisks_complete_linux_md_create:
6559 * @object: A #OrgFreedesktopUDisks.
6560 * @invocation: (transfer full): A #GDBusMethodInvocation.
6561 * @device: Parameter to return.
6563 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.LinuxMdCreate">LinuxMdCreate()</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.
6565 * This method will free @invocation, you cannot use it afterwards.
6568 org_freedesktop_udisks_complete_linux_md_create (
6569 OrgFreedesktopUDisks *object,
6570 GDBusMethodInvocation *invocation,
6571 const gchar *device)
6573 g_dbus_method_invocation_return_value (invocation,
6574 g_variant_new ("(o)",
6579 * org_freedesktop_udisks_complete_inhibit:
6580 * @object: A #OrgFreedesktopUDisks.
6581 * @invocation: (transfer full): A #GDBusMethodInvocation.
6582 * @cookie: Parameter to return.
6584 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.Inhibit">Inhibit()</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.
6586 * This method will free @invocation, you cannot use it afterwards.
6589 org_freedesktop_udisks_complete_inhibit (
6590 OrgFreedesktopUDisks *object,
6591 GDBusMethodInvocation *invocation,
6592 const gchar *cookie)
6594 g_dbus_method_invocation_return_value (invocation,
6595 g_variant_new ("(s)",
6600 * org_freedesktop_udisks_complete_uninhibit:
6601 * @object: A #OrgFreedesktopUDisks.
6602 * @invocation: (transfer full): A #GDBusMethodInvocation.
6604 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UDisks.Uninhibit">Uninhibit()</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.
6606 * This method will free @invocation, you cannot use it afterwards.
6609 org_freedesktop_udisks_complete_uninhibit (
6610 OrgFreedesktopUDisks *object,
6611 GDBusMethodInvocation *invocation)
6613 g_dbus_method_invocation_return_value (invocation,
6614 g_variant_new ("()"));
6617 /* ------------------------------------------------------------------------ */
6620 * OrgFreedesktopUDisksProxy:
6622 * The #OrgFreedesktopUDisksProxy structure contains only private data and should only be accessed using the provided API.
6626 * OrgFreedesktopUDisksProxyClass:
6627 * @parent_class: The parent class.
6629 * Class structure for #OrgFreedesktopUDisksProxy.
6632 struct _OrgFreedesktopUDisksProxyPrivate
6637 static void org_freedesktop_udisks_proxy_iface_init (OrgFreedesktopUDisksIface *iface);
6639 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
6640 G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksProxy, org_freedesktop_udisks_proxy, G_TYPE_DBUS_PROXY,
6641 G_ADD_PRIVATE (OrgFreedesktopUDisksProxy)
6642 G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS, org_freedesktop_udisks_proxy_iface_init));
6645 G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksProxy, org_freedesktop_udisks_proxy, G_TYPE_DBUS_PROXY,
6646 G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS, org_freedesktop_udisks_proxy_iface_init));
6650 org_freedesktop_udisks_proxy_finalize (GObject *object)
6652 OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object);
6653 g_datalist_clear (&proxy->priv->qdata);
6654 G_OBJECT_CLASS (org_freedesktop_udisks_proxy_parent_class)->finalize (object);
6658 org_freedesktop_udisks_proxy_get_property (GObject *object,
6661 GParamSpec *pspec G_GNUC_UNUSED)
6663 const _ExtendedGDBusPropertyInfo *info;
6665 g_assert (prop_id != 0 && prop_id - 1 < 4);
6666 info = _org_freedesktop_udisks_property_info_pointers[prop_id - 1];
6667 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name);
6668 if (info->use_gvariant)
6670 g_value_set_variant (value, variant);
6674 if (variant != NULL)
6675 g_dbus_gvariant_to_gvalue (variant, value);
6677 if (variant != NULL)
6678 g_variant_unref (variant);
6682 org_freedesktop_udisks_proxy_set_property_cb (GDBusProxy *proxy,
6686 const _ExtendedGDBusPropertyInfo *info = user_data;
6690 _ret = g_dbus_proxy_call_finish (proxy, res, &error);
6693 g_warning ("Error setting property '%s' on interface org.freedesktop.UDisks: %s (%s, %d)",
6694 info->parent_struct.name,
6695 error->message, g_quark_to_string (error->domain), error->code);
6696 g_error_free (error);
6700 g_variant_unref (_ret);
6705 org_freedesktop_udisks_proxy_set_property (GObject *object,
6707 const GValue *value,
6708 GParamSpec *pspec G_GNUC_UNUSED)
6710 const _ExtendedGDBusPropertyInfo *info;
6712 g_assert (prop_id != 0 && prop_id - 1 < 4);
6713 info = _org_freedesktop_udisks_property_info_pointers[prop_id - 1];
6714 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));
6715 g_dbus_proxy_call (G_DBUS_PROXY (object),
6716 "org.freedesktop.DBus.Properties.Set",
6717 g_variant_new ("(ssv)", "org.freedesktop.UDisks", info->parent_struct.name, variant),
6718 G_DBUS_CALL_FLAGS_NONE,
6720 NULL, (GAsyncReadyCallback) org_freedesktop_udisks_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
6721 g_variant_unref (variant);
6725 org_freedesktop_udisks_proxy_g_signal (GDBusProxy *proxy,
6726 const gchar *sender_name G_GNUC_UNUSED,
6727 const gchar *signal_name,
6728 GVariant *parameters)
6730 _ExtendedGDBusSignalInfo *info;
6737 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info.parent_struct, signal_name);
6740 num_params = g_variant_n_children (parameters);
6741 paramv = g_new0 (GValue, num_params + 1);
6742 g_value_init (¶mv[0], TYPE_ORG_FREEDESKTOP_UDISKS);
6743 g_value_set_object (¶mv[0], proxy);
6744 g_variant_iter_init (&iter, parameters);
6746 while ((child = g_variant_iter_next_value (&iter)) != NULL)
6748 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
6749 if (arg_info->use_gvariant)
6751 g_value_init (¶mv[n], G_TYPE_VARIANT);
6752 g_value_set_variant (¶mv[n], child);
6756 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
6757 g_variant_unref (child);
6759 signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_FREEDESKTOP_UDISKS);
6760 g_signal_emitv (paramv, signal_id, 0, NULL);
6761 for (n = 0; n < num_params + 1; n++)
6762 g_value_unset (¶mv[n]);
6767 org_freedesktop_udisks_proxy_g_properties_changed (GDBusProxy *_proxy,
6768 GVariant *changed_properties,
6769 const gchar *const *invalidated_properties)
6771 OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (_proxy);
6775 _ExtendedGDBusPropertyInfo *info;
6776 g_variant_get (changed_properties, "a{sv}", &iter);
6777 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
6779 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info.parent_struct, key);
6780 g_datalist_remove_data (&proxy->priv->qdata, key);
6782 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
6784 g_variant_iter_free (iter);
6785 for (n = 0; invalidated_properties[n] != NULL; n++)
6787 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info.parent_struct, invalidated_properties[n]);
6788 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
6790 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
6794 static const gchar *
6795 org_freedesktop_udisks_proxy_get_daemon_version (OrgFreedesktopUDisks *object)
6797 OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object);
6799 const gchar *value = NULL;
6800 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DaemonVersion");
6801 if (variant != NULL)
6803 value = g_variant_get_string (variant, NULL);
6804 g_variant_unref (variant);
6810 org_freedesktop_udisks_proxy_get_daemon_is_inhibited (OrgFreedesktopUDisks *object)
6812 OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object);
6815 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DaemonIsInhibited");
6816 if (variant != NULL)
6818 value = g_variant_get_boolean (variant);
6819 g_variant_unref (variant);
6825 org_freedesktop_udisks_proxy_get_supports_luks_devices (OrgFreedesktopUDisks *object)
6827 OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object);
6830 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "SupportsLuksDevices");
6831 if (variant != NULL)
6833 value = g_variant_get_boolean (variant);
6834 g_variant_unref (variant);
6840 org_freedesktop_udisks_proxy_get_known_filesystems (OrgFreedesktopUDisks *object)
6842 OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object);
6844 GVariant *value = NULL;
6845 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "KnownFilesystems");
6847 if (variant != NULL)
6848 g_variant_unref (variant);
6853 org_freedesktop_udisks_proxy_init (OrgFreedesktopUDisksProxy *proxy)
6855 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
6856 proxy->priv = org_freedesktop_udisks_proxy_get_instance_private (proxy);
6858 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_FREEDESKTOP_UDISKS_PROXY, OrgFreedesktopUDisksProxyPrivate);
6861 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_freedesktop_udisks_interface_info ());
6865 org_freedesktop_udisks_proxy_class_init (OrgFreedesktopUDisksProxyClass *klass)
6867 GObjectClass *gobject_class;
6868 GDBusProxyClass *proxy_class;
6870 gobject_class = G_OBJECT_CLASS (klass);
6871 gobject_class->finalize = org_freedesktop_udisks_proxy_finalize;
6872 gobject_class->get_property = org_freedesktop_udisks_proxy_get_property;
6873 gobject_class->set_property = org_freedesktop_udisks_proxy_set_property;
6875 proxy_class = G_DBUS_PROXY_CLASS (klass);
6876 proxy_class->g_signal = org_freedesktop_udisks_proxy_g_signal;
6877 proxy_class->g_properties_changed = org_freedesktop_udisks_proxy_g_properties_changed;
6879 org_freedesktop_udisks_override_properties (gobject_class, 1);
6881 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
6882 g_type_class_add_private (klass, sizeof (OrgFreedesktopUDisksProxyPrivate));
6887 org_freedesktop_udisks_proxy_iface_init (OrgFreedesktopUDisksIface *iface)
6889 iface->get_daemon_version = org_freedesktop_udisks_proxy_get_daemon_version;
6890 iface->get_daemon_is_inhibited = org_freedesktop_udisks_proxy_get_daemon_is_inhibited;
6891 iface->get_supports_luks_devices = org_freedesktop_udisks_proxy_get_supports_luks_devices;
6892 iface->get_known_filesystems = org_freedesktop_udisks_proxy_get_known_filesystems;
6896 * org_freedesktop_udisks_proxy_new:
6897 * @connection: A #GDBusConnection.
6898 * @flags: Flags from the #GDBusProxyFlags enumeration.
6899 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
6900 * @object_path: An object path.
6901 * @cancellable: (allow-none): A #GCancellable or %NULL.
6902 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
6903 * @user_data: User data to pass to @callback.
6905 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-UDisks.top_of_page">org.freedesktop.UDisks</link>. See g_dbus_proxy_new() for more details.
6907 * 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.
6908 * You can then call org_freedesktop_udisks_proxy_new_finish() to get the result of the operation.
6910 * See org_freedesktop_udisks_proxy_new_sync() for the synchronous, blocking version of this constructor.
6913 org_freedesktop_udisks_proxy_new (
6914 GDBusConnection *connection,
6915 GDBusProxyFlags flags,
6917 const gchar *object_path,
6918 GCancellable *cancellable,
6919 GAsyncReadyCallback callback,
6922 g_async_initable_new_async (TYPE_ORG_FREEDESKTOP_UDISKS_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.UDisks", NULL);
6926 * org_freedesktop_udisks_proxy_new_finish:
6927 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_proxy_new().
6928 * @error: Return location for error or %NULL
6930 * Finishes an operation started with org_freedesktop_udisks_proxy_new().
6932 * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set.
6934 OrgFreedesktopUDisks *
6935 org_freedesktop_udisks_proxy_new_finish (
6940 GObject *source_object;
6941 source_object = g_async_result_get_source_object (res);
6942 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
6943 g_object_unref (source_object);
6945 return ORG_FREEDESKTOP_UDISKS (ret);
6951 * org_freedesktop_udisks_proxy_new_sync:
6952 * @connection: A #GDBusConnection.
6953 * @flags: Flags from the #GDBusProxyFlags enumeration.
6954 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
6955 * @object_path: An object path.
6956 * @cancellable: (allow-none): A #GCancellable or %NULL.
6957 * @error: Return location for error or %NULL
6959 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-UDisks.top_of_page">org.freedesktop.UDisks</link>. See g_dbus_proxy_new_sync() for more details.
6961 * The calling thread is blocked until a reply is received.
6963 * See org_freedesktop_udisks_proxy_new() for the asynchronous version of this constructor.
6965 * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set.
6967 OrgFreedesktopUDisks *
6968 org_freedesktop_udisks_proxy_new_sync (
6969 GDBusConnection *connection,
6970 GDBusProxyFlags flags,
6972 const gchar *object_path,
6973 GCancellable *cancellable,
6977 ret = g_initable_new (TYPE_ORG_FREEDESKTOP_UDISKS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.UDisks", NULL);
6979 return ORG_FREEDESKTOP_UDISKS (ret);
6986 * org_freedesktop_udisks_proxy_new_for_bus:
6987 * @bus_type: A #GBusType.
6988 * @flags: Flags from the #GDBusProxyFlags enumeration.
6989 * @name: A bus name (well-known or unique).
6990 * @object_path: An object path.
6991 * @cancellable: (allow-none): A #GCancellable or %NULL.
6992 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
6993 * @user_data: User data to pass to @callback.
6995 * Like org_freedesktop_udisks_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
6997 * 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.
6998 * You can then call org_freedesktop_udisks_proxy_new_for_bus_finish() to get the result of the operation.
7000 * See org_freedesktop_udisks_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
7003 org_freedesktop_udisks_proxy_new_for_bus (
7005 GDBusProxyFlags flags,
7007 const gchar *object_path,
7008 GCancellable *cancellable,
7009 GAsyncReadyCallback callback,
7012 g_async_initable_new_async (TYPE_ORG_FREEDESKTOP_UDISKS_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.UDisks", NULL);
7016 * org_freedesktop_udisks_proxy_new_for_bus_finish:
7017 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_proxy_new_for_bus().
7018 * @error: Return location for error or %NULL
7020 * Finishes an operation started with org_freedesktop_udisks_proxy_new_for_bus().
7022 * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set.
7024 OrgFreedesktopUDisks *
7025 org_freedesktop_udisks_proxy_new_for_bus_finish (
7030 GObject *source_object;
7031 source_object = g_async_result_get_source_object (res);
7032 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
7033 g_object_unref (source_object);
7035 return ORG_FREEDESKTOP_UDISKS (ret);
7041 * org_freedesktop_udisks_proxy_new_for_bus_sync:
7042 * @bus_type: A #GBusType.
7043 * @flags: Flags from the #GDBusProxyFlags enumeration.
7044 * @name: A bus name (well-known or unique).
7045 * @object_path: An object path.
7046 * @cancellable: (allow-none): A #GCancellable or %NULL.
7047 * @error: Return location for error or %NULL
7049 * Like org_freedesktop_udisks_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
7051 * The calling thread is blocked until a reply is received.
7053 * See org_freedesktop_udisks_proxy_new_for_bus() for the asynchronous version of this constructor.
7055 * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set.
7057 OrgFreedesktopUDisks *
7058 org_freedesktop_udisks_proxy_new_for_bus_sync (
7060 GDBusProxyFlags flags,
7062 const gchar *object_path,
7063 GCancellable *cancellable,
7067 ret = g_initable_new (TYPE_ORG_FREEDESKTOP_UDISKS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.UDisks", NULL);
7069 return ORG_FREEDESKTOP_UDISKS (ret);
7075 /* ------------------------------------------------------------------------ */
7078 * OrgFreedesktopUDisksSkeleton:
7080 * The #OrgFreedesktopUDisksSkeleton structure contains only private data and should only be accessed using the provided API.
7084 * OrgFreedesktopUDisksSkeletonClass:
7085 * @parent_class: The parent class.
7087 * Class structure for #OrgFreedesktopUDisksSkeleton.
7090 struct _OrgFreedesktopUDisksSkeletonPrivate
7093 GList *changed_properties;
7094 GSource *changed_properties_idle_source;
7095 GMainContext *context;
7100 _org_freedesktop_udisks_skeleton_handle_method_call (
7101 GDBusConnection *connection G_GNUC_UNUSED,
7102 const gchar *sender G_GNUC_UNUSED,
7103 const gchar *object_path G_GNUC_UNUSED,
7104 const gchar *interface_name,
7105 const gchar *method_name,
7106 GVariant *parameters,
7107 GDBusMethodInvocation *invocation,
7110 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data);
7111 _ExtendedGDBusMethodInfo *info;
7119 GValue return_value = G_VALUE_INIT;
7120 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
7121 g_assert (info != NULL);
7122 num_params = g_variant_n_children (parameters);
7123 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
7125 g_value_init (¶mv[n], TYPE_ORG_FREEDESKTOP_UDISKS);
7126 g_value_set_object (¶mv[n++], skeleton);
7127 g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
7128 g_value_set_object (¶mv[n++], invocation);
7129 if (info->pass_fdlist)
7132 g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
7133 g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
7135 g_assert_not_reached ();
7138 g_variant_iter_init (&iter, parameters);
7139 while ((child = g_variant_iter_next_value (&iter)) != NULL)
7141 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
7142 if (arg_info->use_gvariant)
7144 g_value_init (¶mv[n], G_TYPE_VARIANT);
7145 g_value_set_variant (¶mv[n], child);
7149 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
7150 g_variant_unref (child);
7152 signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_FREEDESKTOP_UDISKS);
7153 g_value_init (&return_value, G_TYPE_BOOLEAN);
7154 g_signal_emitv (paramv, signal_id, 0, &return_value);
7155 if (!g_value_get_boolean (&return_value))
7156 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);
7157 g_value_unset (&return_value);
7158 for (n = 0; n < num_params + num_extra; n++)
7159 g_value_unset (¶mv[n]);
7164 _org_freedesktop_udisks_skeleton_handle_get_property (
7165 GDBusConnection *connection G_GNUC_UNUSED,
7166 const gchar *sender G_GNUC_UNUSED,
7167 const gchar *object_path G_GNUC_UNUSED,
7168 const gchar *interface_name G_GNUC_UNUSED,
7169 const gchar *property_name,
7173 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data);
7174 GValue value = G_VALUE_INIT;
7176 _ExtendedGDBusPropertyInfo *info;
7179 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info.parent_struct, property_name);
7180 g_assert (info != NULL);
7181 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
7184 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
7188 g_value_init (&value, pspec->value_type);
7189 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
7190 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
7191 g_value_unset (&value);
7197 _org_freedesktop_udisks_skeleton_handle_set_property (
7198 GDBusConnection *connection G_GNUC_UNUSED,
7199 const gchar *sender G_GNUC_UNUSED,
7200 const gchar *object_path G_GNUC_UNUSED,
7201 const gchar *interface_name G_GNUC_UNUSED,
7202 const gchar *property_name,
7207 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data);
7208 GValue value = G_VALUE_INIT;
7210 _ExtendedGDBusPropertyInfo *info;
7213 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info.parent_struct, property_name);
7214 g_assert (info != NULL);
7215 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
7218 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
7222 if (info->use_gvariant)
7223 g_value_set_variant (&value, variant);
7225 g_dbus_gvariant_to_gvalue (variant, &value);
7226 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
7227 g_value_unset (&value);
7233 static const GDBusInterfaceVTable _org_freedesktop_udisks_skeleton_vtable =
7235 _org_freedesktop_udisks_skeleton_handle_method_call,
7236 _org_freedesktop_udisks_skeleton_handle_get_property,
7237 _org_freedesktop_udisks_skeleton_handle_set_property,
7241 static GDBusInterfaceInfo *
7242 org_freedesktop_udisks_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
7244 return org_freedesktop_udisks_interface_info ();
7247 static GDBusInterfaceVTable *
7248 org_freedesktop_udisks_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
7250 return (GDBusInterfaceVTable *) &_org_freedesktop_udisks_skeleton_vtable;
7254 org_freedesktop_udisks_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
7256 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (_skeleton);
7258 GVariantBuilder builder;
7260 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
7261 if (_org_freedesktop_udisks_interface_info.parent_struct.properties == NULL)
7263 for (n = 0; _org_freedesktop_udisks_interface_info.parent_struct.properties[n] != NULL; n++)
7265 GDBusPropertyInfo *info = _org_freedesktop_udisks_interface_info.parent_struct.properties[n];
7266 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
7269 value = _org_freedesktop_udisks_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.UDisks", info->name, NULL, skeleton);
7272 g_variant_take_ref (value);
7273 g_variant_builder_add (&builder, "{sv}", info->name, value);
7274 g_variant_unref (value);
7279 return g_variant_builder_end (&builder);
7282 static gboolean _org_freedesktop_udisks_emit_changed (gpointer user_data);
7285 org_freedesktop_udisks_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
7287 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (_skeleton);
7288 gboolean emit_changed = FALSE;
7290 g_mutex_lock (&skeleton->priv->lock);
7291 if (skeleton->priv->changed_properties_idle_source != NULL)
7293 g_source_destroy (skeleton->priv->changed_properties_idle_source);
7294 skeleton->priv->changed_properties_idle_source = NULL;
7295 emit_changed = TRUE;
7297 g_mutex_unlock (&skeleton->priv->lock);
7300 _org_freedesktop_udisks_emit_changed (skeleton);
7304 _org_freedesktop_udisks_on_signal_device_added (
7305 OrgFreedesktopUDisks *object,
7306 const gchar *arg_device)
7308 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7310 GList *connections, *l;
7311 GVariant *signal_variant;
7312 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7314 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7316 for (l = connections; l != NULL; l = l->next)
7318 GDBusConnection *connection = l->data;
7319 g_dbus_connection_emit_signal (connection,
7320 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceAdded",
7321 signal_variant, NULL);
7323 g_variant_unref (signal_variant);
7324 g_list_free_full (connections, g_object_unref);
7328 _org_freedesktop_udisks_on_signal_device_removed (
7329 OrgFreedesktopUDisks *object,
7330 const gchar *arg_device)
7332 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7334 GList *connections, *l;
7335 GVariant *signal_variant;
7336 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7338 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7340 for (l = connections; l != NULL; l = l->next)
7342 GDBusConnection *connection = l->data;
7343 g_dbus_connection_emit_signal (connection,
7344 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceRemoved",
7345 signal_variant, NULL);
7347 g_variant_unref (signal_variant);
7348 g_list_free_full (connections, g_object_unref);
7352 _org_freedesktop_udisks_on_signal_device_changed (
7353 OrgFreedesktopUDisks *object,
7354 const gchar *arg_device)
7356 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7358 GList *connections, *l;
7359 GVariant *signal_variant;
7360 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7362 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7364 for (l = connections; l != NULL; l = l->next)
7366 GDBusConnection *connection = l->data;
7367 g_dbus_connection_emit_signal (connection,
7368 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceChanged",
7369 signal_variant, NULL);
7371 g_variant_unref (signal_variant);
7372 g_list_free_full (connections, g_object_unref);
7376 _org_freedesktop_udisks_on_signal_device_job_changed (
7377 OrgFreedesktopUDisks *object,
7378 const gchar *arg_device,
7379 gboolean arg_job_in_progress,
7380 gboolean arg_job_is_cancellable,
7381 const gchar *arg_job_id,
7382 gint arg_job_num_tasks,
7383 gint arg_job_cur_task,
7384 const gchar *arg_job_cur_task_id,
7385 gdouble arg_job_cur_task_percentage)
7387 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7389 GList *connections, *l;
7390 GVariant *signal_variant;
7391 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7393 signal_variant = g_variant_ref_sink (g_variant_new ("(obbsiisd)",
7395 arg_job_in_progress,
7396 arg_job_is_cancellable,
7400 arg_job_cur_task_id,
7401 arg_job_cur_task_percentage));
7402 for (l = connections; l != NULL; l = l->next)
7404 GDBusConnection *connection = l->data;
7405 g_dbus_connection_emit_signal (connection,
7406 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceJobChanged",
7407 signal_variant, NULL);
7409 g_variant_unref (signal_variant);
7410 g_list_free_full (connections, g_object_unref);
7414 _org_freedesktop_udisks_on_signal_adapter_added (
7415 OrgFreedesktopUDisks *object,
7416 const gchar *arg_adapter)
7418 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7420 GList *connections, *l;
7421 GVariant *signal_variant;
7422 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7424 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7426 for (l = connections; l != NULL; l = l->next)
7428 GDBusConnection *connection = l->data;
7429 g_dbus_connection_emit_signal (connection,
7430 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "AdapterAdded",
7431 signal_variant, NULL);
7433 g_variant_unref (signal_variant);
7434 g_list_free_full (connections, g_object_unref);
7438 _org_freedesktop_udisks_on_signal_adapter_removed (
7439 OrgFreedesktopUDisks *object,
7440 const gchar *arg_adapter)
7442 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7444 GList *connections, *l;
7445 GVariant *signal_variant;
7446 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7448 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7450 for (l = connections; l != NULL; l = l->next)
7452 GDBusConnection *connection = l->data;
7453 g_dbus_connection_emit_signal (connection,
7454 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "AdapterRemoved",
7455 signal_variant, NULL);
7457 g_variant_unref (signal_variant);
7458 g_list_free_full (connections, g_object_unref);
7462 _org_freedesktop_udisks_on_signal_adapter_changed (
7463 OrgFreedesktopUDisks *object,
7464 const gchar *arg_adapter)
7466 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7468 GList *connections, *l;
7469 GVariant *signal_variant;
7470 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7472 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7474 for (l = connections; l != NULL; l = l->next)
7476 GDBusConnection *connection = l->data;
7477 g_dbus_connection_emit_signal (connection,
7478 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "AdapterChanged",
7479 signal_variant, NULL);
7481 g_variant_unref (signal_variant);
7482 g_list_free_full (connections, g_object_unref);
7486 _org_freedesktop_udisks_on_signal_expander_added (
7487 OrgFreedesktopUDisks *object,
7488 const gchar *arg_expander)
7490 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7492 GList *connections, *l;
7493 GVariant *signal_variant;
7494 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7496 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7498 for (l = connections; l != NULL; l = l->next)
7500 GDBusConnection *connection = l->data;
7501 g_dbus_connection_emit_signal (connection,
7502 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "ExpanderAdded",
7503 signal_variant, NULL);
7505 g_variant_unref (signal_variant);
7506 g_list_free_full (connections, g_object_unref);
7510 _org_freedesktop_udisks_on_signal_expander_removed (
7511 OrgFreedesktopUDisks *object,
7512 const gchar *arg_expander)
7514 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7516 GList *connections, *l;
7517 GVariant *signal_variant;
7518 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7520 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7522 for (l = connections; l != NULL; l = l->next)
7524 GDBusConnection *connection = l->data;
7525 g_dbus_connection_emit_signal (connection,
7526 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "ExpanderRemoved",
7527 signal_variant, NULL);
7529 g_variant_unref (signal_variant);
7530 g_list_free_full (connections, g_object_unref);
7534 _org_freedesktop_udisks_on_signal_expander_changed (
7535 OrgFreedesktopUDisks *object,
7536 const gchar *arg_expander)
7538 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7540 GList *connections, *l;
7541 GVariant *signal_variant;
7542 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7544 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7546 for (l = connections; l != NULL; l = l->next)
7548 GDBusConnection *connection = l->data;
7549 g_dbus_connection_emit_signal (connection,
7550 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "ExpanderChanged",
7551 signal_variant, NULL);
7553 g_variant_unref (signal_variant);
7554 g_list_free_full (connections, g_object_unref);
7558 _org_freedesktop_udisks_on_signal_port_added (
7559 OrgFreedesktopUDisks *object,
7560 const gchar *arg_port)
7562 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7564 GList *connections, *l;
7565 GVariant *signal_variant;
7566 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7568 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7570 for (l = connections; l != NULL; l = l->next)
7572 GDBusConnection *connection = l->data;
7573 g_dbus_connection_emit_signal (connection,
7574 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "PortAdded",
7575 signal_variant, NULL);
7577 g_variant_unref (signal_variant);
7578 g_list_free_full (connections, g_object_unref);
7582 _org_freedesktop_udisks_on_signal_port_removed (
7583 OrgFreedesktopUDisks *object,
7584 const gchar *arg_port)
7586 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7588 GList *connections, *l;
7589 GVariant *signal_variant;
7590 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7592 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7594 for (l = connections; l != NULL; l = l->next)
7596 GDBusConnection *connection = l->data;
7597 g_dbus_connection_emit_signal (connection,
7598 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "PortRemoved",
7599 signal_variant, NULL);
7601 g_variant_unref (signal_variant);
7602 g_list_free_full (connections, g_object_unref);
7606 _org_freedesktop_udisks_on_signal_port_changed (
7607 OrgFreedesktopUDisks *object,
7608 const gchar *arg_port)
7610 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7612 GList *connections, *l;
7613 GVariant *signal_variant;
7614 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7616 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
7618 for (l = connections; l != NULL; l = l->next)
7620 GDBusConnection *connection = l->data;
7621 g_dbus_connection_emit_signal (connection,
7622 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "PortChanged",
7623 signal_variant, NULL);
7625 g_variant_unref (signal_variant);
7626 g_list_free_full (connections, g_object_unref);
7629 static void org_freedesktop_udisks_skeleton_iface_init (OrgFreedesktopUDisksIface *iface);
7630 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
7631 G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksSkeleton, org_freedesktop_udisks_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
7632 G_ADD_PRIVATE (OrgFreedesktopUDisksSkeleton)
7633 G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS, org_freedesktop_udisks_skeleton_iface_init));
7636 G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksSkeleton, org_freedesktop_udisks_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
7637 G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS, org_freedesktop_udisks_skeleton_iface_init));
7641 org_freedesktop_udisks_skeleton_finalize (GObject *object)
7643 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7645 for (n = 0; n < 4; n++)
7646 g_value_unset (&skeleton->priv->properties[n]);
7647 g_free (skeleton->priv->properties);
7648 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
7649 if (skeleton->priv->changed_properties_idle_source != NULL)
7650 g_source_destroy (skeleton->priv->changed_properties_idle_source);
7651 g_main_context_unref (skeleton->priv->context);
7652 g_mutex_clear (&skeleton->priv->lock);
7653 G_OBJECT_CLASS (org_freedesktop_udisks_skeleton_parent_class)->finalize (object);
7657 org_freedesktop_udisks_skeleton_get_property (GObject *object,
7660 GParamSpec *pspec G_GNUC_UNUSED)
7662 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7663 g_assert (prop_id != 0 && prop_id - 1 < 4);
7664 g_mutex_lock (&skeleton->priv->lock);
7665 g_value_copy (&skeleton->priv->properties[prop_id - 1], value);
7666 g_mutex_unlock (&skeleton->priv->lock);
7670 _org_freedesktop_udisks_emit_changed (gpointer user_data)
7672 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data);
7674 GVariantBuilder builder;
7675 GVariantBuilder invalidated_builder;
7678 g_mutex_lock (&skeleton->priv->lock);
7679 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
7680 g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
7681 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next)
7683 ChangedProperty *cp = l->data;
7685 const GValue *cur_value;
7687 cur_value = &skeleton->priv->properties[cp->prop_id - 1];
7688 if (!_g_value_equal (cur_value, &cp->orig_value))
7690 variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature));
7691 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant);
7692 g_variant_unref (variant);
7696 if (num_changes > 0)
7698 GList *connections, *ll;
7699 GVariant *signal_variant;
7700 signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "org.freedesktop.UDisks",
7701 &builder, &invalidated_builder));
7702 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
7703 for (ll = connections; ll != NULL; ll = ll->next)
7705 GDBusConnection *connection = ll->data;
7707 g_dbus_connection_emit_signal (connection,
7708 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)),
7709 "org.freedesktop.DBus.Properties",
7710 "PropertiesChanged",
7714 g_variant_unref (signal_variant);
7715 g_list_free_full (connections, g_object_unref);
7719 g_variant_builder_clear (&builder);
7720 g_variant_builder_clear (&invalidated_builder);
7722 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
7723 skeleton->priv->changed_properties = NULL;
7724 skeleton->priv->changed_properties_idle_source = NULL;
7725 g_mutex_unlock (&skeleton->priv->lock);
7730 _org_freedesktop_udisks_schedule_emit_changed (OrgFreedesktopUDisksSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)
7732 ChangedProperty *cp;
7735 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next)
7737 ChangedProperty *i_cp = l->data;
7738 if (i_cp->info == info)
7746 cp = g_new0 (ChangedProperty, 1);
7747 cp->prop_id = prop_id;
7749 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp);
7750 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value));
7751 g_value_copy (orig_value, &cp->orig_value);
7756 org_freedesktop_udisks_skeleton_notify (GObject *object,
7757 GParamSpec *pspec G_GNUC_UNUSED)
7759 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7760 g_mutex_lock (&skeleton->priv->lock);
7761 if (skeleton->priv->changed_properties != NULL &&
7762 skeleton->priv->changed_properties_idle_source == NULL)
7764 skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
7765 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
7766 g_source_set_callback (skeleton->priv->changed_properties_idle_source, _org_freedesktop_udisks_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
7767 g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _org_freedesktop_udisks_emit_changed");
7768 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
7769 g_source_unref (skeleton->priv->changed_properties_idle_source);
7771 g_mutex_unlock (&skeleton->priv->lock);
7775 org_freedesktop_udisks_skeleton_set_property (GObject *object,
7777 const GValue *value,
7780 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7781 g_assert (prop_id != 0 && prop_id - 1 < 4);
7782 g_mutex_lock (&skeleton->priv->lock);
7783 g_object_freeze_notify (object);
7784 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))
7786 if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL)
7787 _org_freedesktop_udisks_schedule_emit_changed (skeleton, _org_freedesktop_udisks_property_info_pointers[prop_id - 1], prop_id, &skeleton->priv->properties[prop_id - 1]);
7788 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);
7789 g_object_notify_by_pspec (object, pspec);
7791 g_mutex_unlock (&skeleton->priv->lock);
7792 g_object_thaw_notify (object);
7796 org_freedesktop_udisks_skeleton_init (OrgFreedesktopUDisksSkeleton *skeleton)
7798 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
7799 skeleton->priv = org_freedesktop_udisks_skeleton_get_instance_private (skeleton);
7801 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON, OrgFreedesktopUDisksSkeletonPrivate);
7804 g_mutex_init (&skeleton->priv->lock);
7805 skeleton->priv->context = g_main_context_ref_thread_default ();
7806 skeleton->priv->properties = g_new0 (GValue, 4);
7807 g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING);
7808 g_value_init (&skeleton->priv->properties[1], G_TYPE_BOOLEAN);
7809 g_value_init (&skeleton->priv->properties[2], G_TYPE_BOOLEAN);
7810 g_value_init (&skeleton->priv->properties[3], G_TYPE_VARIANT);
7813 static const gchar *
7814 org_freedesktop_udisks_skeleton_get_daemon_version (OrgFreedesktopUDisks *object)
7816 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7818 g_mutex_lock (&skeleton->priv->lock);
7819 value = g_value_get_string (&(skeleton->priv->properties[0]));
7820 g_mutex_unlock (&skeleton->priv->lock);
7825 org_freedesktop_udisks_skeleton_get_daemon_is_inhibited (OrgFreedesktopUDisks *object)
7827 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7829 g_mutex_lock (&skeleton->priv->lock);
7830 value = g_value_get_boolean (&(skeleton->priv->properties[1]));
7831 g_mutex_unlock (&skeleton->priv->lock);
7836 org_freedesktop_udisks_skeleton_get_supports_luks_devices (OrgFreedesktopUDisks *object)
7838 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7840 g_mutex_lock (&skeleton->priv->lock);
7841 value = g_value_get_boolean (&(skeleton->priv->properties[2]));
7842 g_mutex_unlock (&skeleton->priv->lock);
7847 org_freedesktop_udisks_skeleton_get_known_filesystems (OrgFreedesktopUDisks *object)
7849 OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object);
7851 g_mutex_lock (&skeleton->priv->lock);
7852 value = g_value_get_variant (&(skeleton->priv->properties[3]));
7853 g_mutex_unlock (&skeleton->priv->lock);
7858 org_freedesktop_udisks_skeleton_class_init (OrgFreedesktopUDisksSkeletonClass *klass)
7860 GObjectClass *gobject_class;
7861 GDBusInterfaceSkeletonClass *skeleton_class;
7863 gobject_class = G_OBJECT_CLASS (klass);
7864 gobject_class->finalize = org_freedesktop_udisks_skeleton_finalize;
7865 gobject_class->get_property = org_freedesktop_udisks_skeleton_get_property;
7866 gobject_class->set_property = org_freedesktop_udisks_skeleton_set_property;
7867 gobject_class->notify = org_freedesktop_udisks_skeleton_notify;
7870 org_freedesktop_udisks_override_properties (gobject_class, 1);
7872 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
7873 skeleton_class->get_info = org_freedesktop_udisks_skeleton_dbus_interface_get_info;
7874 skeleton_class->get_properties = org_freedesktop_udisks_skeleton_dbus_interface_get_properties;
7875 skeleton_class->flush = org_freedesktop_udisks_skeleton_dbus_interface_flush;
7876 skeleton_class->get_vtable = org_freedesktop_udisks_skeleton_dbus_interface_get_vtable;
7878 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
7879 g_type_class_add_private (klass, sizeof (OrgFreedesktopUDisksSkeletonPrivate));
7884 org_freedesktop_udisks_skeleton_iface_init (OrgFreedesktopUDisksIface *iface)
7886 iface->device_added = _org_freedesktop_udisks_on_signal_device_added;
7887 iface->device_removed = _org_freedesktop_udisks_on_signal_device_removed;
7888 iface->device_changed = _org_freedesktop_udisks_on_signal_device_changed;
7889 iface->device_job_changed = _org_freedesktop_udisks_on_signal_device_job_changed;
7890 iface->adapter_added = _org_freedesktop_udisks_on_signal_adapter_added;
7891 iface->adapter_removed = _org_freedesktop_udisks_on_signal_adapter_removed;
7892 iface->adapter_changed = _org_freedesktop_udisks_on_signal_adapter_changed;
7893 iface->expander_added = _org_freedesktop_udisks_on_signal_expander_added;
7894 iface->expander_removed = _org_freedesktop_udisks_on_signal_expander_removed;
7895 iface->expander_changed = _org_freedesktop_udisks_on_signal_expander_changed;
7896 iface->port_added = _org_freedesktop_udisks_on_signal_port_added;
7897 iface->port_removed = _org_freedesktop_udisks_on_signal_port_removed;
7898 iface->port_changed = _org_freedesktop_udisks_on_signal_port_changed;
7899 iface->get_daemon_version = org_freedesktop_udisks_skeleton_get_daemon_version;
7900 iface->get_daemon_is_inhibited = org_freedesktop_udisks_skeleton_get_daemon_is_inhibited;
7901 iface->get_supports_luks_devices = org_freedesktop_udisks_skeleton_get_supports_luks_devices;
7902 iface->get_known_filesystems = org_freedesktop_udisks_skeleton_get_known_filesystems;
7906 * org_freedesktop_udisks_skeleton_new:
7908 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-UDisks.top_of_page">org.freedesktop.UDisks</link>.
7910 * Returns: (transfer full) (type OrgFreedesktopUDisksSkeleton): The skeleton object.
7912 OrgFreedesktopUDisks *
7913 org_freedesktop_udisks_skeleton_new (void)
7915 return ORG_FREEDESKTOP_UDISKS (g_object_new (TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON, NULL));