From c9a304c0a13b36dce7be38987c3433d8bc0b5ce0 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 1 Jul 2012 18:05:37 +0200 Subject: initial import --- Makefile | 18 + rodisc.c | 609 ++ udisks-device.c | 20198 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ udisks-device.h | 1798 +++++ udisks.c | 7755 +++++++++++++++++++++ udisks.h | 1043 +++ 6 files changed, 31421 insertions(+) create mode 100644 Makefile create mode 100644 rodisc.c create mode 100644 udisks-device.c create mode 100644 udisks-device.h create mode 100644 udisks.c create mode 100644 udisks.h diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d09120d --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CFLAGS?=-Wall + +RODISC_PKGCONFIG:=glib-2.0 gobject-2.0 gio-unix-2.0 libsoup-2.4 avahi-gobject +RODISC_CFLAGS:=$(shell pkg-config --cflags $(RODISC_PKGCONFIG)) +RODISC_LIBS:=$(shell pkg-config --libs $(RODISC_PKGCONFIG)) + +all: rodisc + +rodisc: rodisc.o udisks.o udisks-device.o + $(CC) $(LDFLAGS) -o $@ $+ $(LIBS) $(RODISC_LIBS) + +%.o: %.c + $(CC) $(RODISC_CFLAGS) $(CFLAGS) -o $@ -c $< + +clean: + rm -f *.o rodisc + +.PHONY: all clean diff --git a/rodisc.c b/rodisc.c new file mode 100644 index 0000000..748d401 --- /dev/null +++ b/rodisc.c @@ -0,0 +1,609 @@ +#include + +#include +#include + +#include +#include + +#include + +#include "udisks.h" +#include "udisks-device.h" + +#define RODISC_MDNS_SERVICE "_odisk._tcp" + +#define RODISC_TYPE_GENERIC "public.optical-storage-media" +#define RODISC_TYPE_CD "public.cd-media" +#define RODISC_TYPE_DVD "public.dvd-media" +#define RODISC_TYPE_BD "public.optical-storage-media" + +static GMainLoop *main_loop; + +static SoupServer *server; + +static OrgFreedesktopUDisks *monitor; + +static GaClient *mdns_client; +static GaEntryGroup *mdns_group; +static GaEntryGroupService *mdns_service; + +static GHashTable *discs; +static guint disc_change_count = 0; + +static gchar **files = NULL; + +static GOptionEntry entries[] = +{ + { "file", 'f', 0, G_OPTION_ARG_FILENAME_ARRAY, &files, "Image files to export as remote discs", "FILE"}, + { NULL } +}; + +typedef struct { + gchar *id; + gchar *uri; + gchar *file_path; + GFile *file; + gchar *label; + const gchar *type; + guint64 size; +} RODisc; + +typedef struct { + RODisc *disc; + gsize start; + gpointer buffer; + SoupMessage *msg; +} RODiscReadOp; + +static void mdns_service_freeze() +{ + g_return_if_fail(mdns_service); + ga_entry_group_service_freeze(mdns_service); +} + +static void mdns_service_thaw() +{ + GError *error = NULL; + g_return_if_fail(mdns_service); + if (!ga_entry_group_service_thaw(mdns_service, &error)) { + g_warning("Could not update service TXT entries: %s", error->message); + g_error_free(error); + } +} + +static void mdns_service_update() +{ + GError *error = NULL; + + g_return_if_fail(mdns_service); + + // "sys=waMA=00:00:00:00:00:00,adVF=0x4,adDT=0x2,adCC=0" + // waMA = MAC address + // adVF = Volume flags (0x200 "ask me first") + // adDT = Supported media? + // adCC = Disc change count? + + guint flags = 0; + guint media = 2; + gchar *record = + g_strdup_printf("waMA=00:00:00:00:00:00,adVF=0x%x,adDT=0x%x,adCC=%u", + flags, media, disc_change_count); + + if (!ga_entry_group_service_set(mdns_service, "sys", record, &error)) + { + g_warning("Could not update main TXT record: %s", error->message); + g_error_free(error); + } +} + +static void mdns_service_update_disc(RODisc *disc) +{ + GError *error = NULL; + + g_return_if_fail(mdns_service); + + // "CdRom0=adVN=TS3EP05,adVT=public.cd-media" + gchar *record = g_strdup_printf("adVN=%s,adVT=%s", disc->label, disc->type); + + const gchar *uri_basename = &disc->uri[1]; // Skip first '/' + if (!ga_entry_group_service_set(mdns_service, uri_basename, record, &error)) + { + g_warning("Could not update TXT record for disc at '%s': %s", + disc->uri, error->message); + g_error_free(error); + } +} + +static void mdns_service_remove_disc(RODisc *disc) +{ + GError *error = NULL; + g_return_if_fail(mdns_service); + const gchar *uri_basename = &disc->uri[1]; + if (!ga_entry_group_service_remove_key(mdns_service, uri_basename, &error)) { + g_warning("Could not update TXT record for disc at '%s': %s", + disc->uri, error->message); + g_error_free(error); + } +} + +static void mdns_service_update_discs_func(gpointer key, gpointer value, gpointer user_data) +{ + RODisc *disc = (RODisc*) value; + mdns_service_update_disc(disc); +} + +static void mdns_service_update_discs() +{ + g_hash_table_foreach(discs, mdns_service_update_discs_func, NULL); +} + +static void mdns_register_service() +{ + GError * error = NULL; + if (!mdns_group) { + mdns_group = ga_entry_group_new(); + + if (!ga_entry_group_attach(mdns_group, mdns_client, &error)) { + g_warning("Could not attach MDNS group to client: %s", error->message); + g_error_free(error); + return; + } + } + + const gchar *name = avahi_client_get_host_name(mdns_client->avahi_client); + guint port = soup_server_get_port(server); + mdns_service = ga_entry_group_add_service(mdns_group, + name, RODISC_MDNS_SERVICE, + port, &error, + NULL); + if (!mdns_service) { + g_warning("Could not create service: %s", error->message); + g_error_free(error); + return; + } + + // Create TXT records, disc records, etc. + mdns_service_update(); + mdns_service_update_discs(); + + if (!ga_entry_group_commit(mdns_group, &error)) { + g_warning("Could not announce MDNS service: %s", error->message); + g_error_free(error); + return; + } +} + +static void mdns_client_state_changed_cb(GaClient *client, GaClientState state, gpointer user_data) +{ + switch (state) { + case GA_CLIENT_STATE_FAILURE: + g_warning("MDNS client state failure"); + break; + case GA_CLIENT_STATE_S_RUNNING: + g_debug("MDNS client found server running"); + mdns_register_service(); + break; + case GA_CLIENT_STATE_S_COLLISION: + case GA_CLIENT_STATE_S_REGISTERING: + g_message("MDNS collision"); + if (mdns_group) { + ga_entry_group_reset(mdns_group, NULL); + mdns_service = 0; + } + + break; + default: + // Do nothing + break; + } +} + +static void server_disc_read_cb(GInputStream *stream, GAsyncResult *res, gpointer user_data) +{ + RODiscReadOp *op = (RODiscReadOp*) user_data; + GError *error = NULL; + gssize size = g_input_stream_read_finish(stream, res, &error); + if (size == -1) { + g_warning("Failed to read from %s: %s", + op->disc->file_path, error->message); + soup_message_set_status(op->msg, SOUP_STATUS_INTERNAL_SERVER_ERROR); + soup_server_unpause_message(server, op->msg); + g_error_free(error); + g_free(op->buffer); + g_slice_free(RODiscReadOp, op); + return; + } + + g_debug(" read a total of %ld bytes", size); + + soup_message_set_status(op->msg, SOUP_STATUS_PARTIAL_CONTENT); + soup_message_headers_set_content_range(op->msg->response_headers, + op->start, op->start + size - 1, + op->disc->size); + soup_message_body_append_take(op->msg->response_body, op->buffer, size); + soup_server_unpause_message(server, op->msg); + + g_slice_free(RODiscReadOp, op); +} + +static void server_disc_perform_read(SoupMessage *msg, RODisc *disc, goffset start, goffset end) +{ + GError *error = NULL; + + g_debug("Opening %s", disc->file_path); + + GFileInputStream * stream = g_file_read(disc->file, NULL, &error); + + if (!stream) { + g_warning("Could not open file '%s' for reading: %s", + disc->file_path, error->message); + soup_message_set_status(msg, SOUP_STATUS_INTERNAL_SERVER_ERROR); + g_error_free(error); + return; + } + + gsize size = (end - start) + 1; + g_debug(" reading range %lu-%lu size %lu", start, end, size); + + if (!g_seekable_seek(G_SEEKABLE(stream), start, G_SEEK_SET, NULL, &error)) { + g_warning("Could not seek in file '%s': %s", + disc->file_path, error->message); + soup_message_set_status(msg, SOUP_STATUS_INTERNAL_SERVER_ERROR); + g_error_free(error); + return; + } + + RODiscReadOp *op = g_slice_new(RODiscReadOp); + op->disc = disc; + op->start = start; + op->buffer = g_malloc(size); + op->msg = msg; + + soup_server_pause_message(server, msg); + + g_input_stream_read_async(G_INPUT_STREAM(stream), op->buffer, size, + G_PRIORITY_DEFAULT, NULL, + (GAsyncReadyCallback) server_disc_read_cb, op); + g_object_unref(stream); +} + +static void server_disc_cb(SoupServer *server, SoupMessage *msg, const char *path, + GHashTable *query, SoupClientContext *client, gpointer user_data) +{ + + RODisc *disc = (RODisc*) user_data; + if (!g_str_has_suffix(path,".dmg")) { + g_debug("Not found (%s)", path); + soup_message_set_status(msg, SOUP_STATUS_NOT_FOUND); + return; + } + soup_message_headers_append(msg->response_headers, "Server", "RODisc/1.0"); + if (msg->method == SOUP_METHOD_HEAD) { + g_debug("Head on %s", path); + soup_message_set_status(msg, SOUP_STATUS_OK); + soup_message_headers_set_content_length(msg->response_headers, disc->size); + soup_message_headers_set_content_type(msg->response_headers, "application/octet-stream", NULL); + soup_message_headers_replace(msg->response_headers, "Accept-Ranges", "bytes"); + } else if (msg->method == SOUP_METHOD_GET) { + g_debug("Get on %s", path); + soup_message_headers_set_content_type(msg->response_headers, "application/octet-stream", NULL); + soup_message_headers_replace(msg->response_headers, "Accept-Ranges", "bytes"); + SoupRange *ranges; + int length; + if (soup_message_headers_get_ranges(msg->request_headers, disc->size, &ranges, &length)) { + if (length != 1) { + g_warning("Multi-range not yet supported"); + soup_message_set_status(msg, SOUP_STATUS_INVALID_RANGE); + return; + } + goffset start = ranges[0].start, end = ranges[0].end; + server_disc_perform_read(msg, disc, start, end); + } else { + soup_message_headers_set_content_length(msg->response_headers, disc->size); + soup_message_set_status(msg, SOUP_STATUS_REQUEST_ENTITY_TOO_LARGE); + g_warning("Must specify a range"); + } + } else { + soup_message_set_status(msg, SOUP_STATUS_NOT_IMPLEMENTED); + g_warning("Unimplemented method on %s", path); + } +} + +static inline RODisc *rodisc_lookup(const gchar *id) +{ + return g_hash_table_lookup(discs, id); +} + +static inline RODisc *rodisc_new() +{ + return g_slice_new0(RODisc); +} + +static void rodisc_destroy(RODisc *disc) +{ + g_free(disc->id); + g_free(disc->uri); + g_object_unref(disc->file); + g_free(disc->file_path); + g_free(disc->label); + g_slice_free(RODisc, disc); +} + +static void rodisc_export(RODisc *disc) +{ + g_debug("Exporting %s to %s (volume '%s' type '%s')", + disc->file_path, disc->uri, disc->label, disc->type); + g_hash_table_insert(discs, disc->id, disc); + + soup_server_add_handler(server, disc->uri, server_disc_cb, disc, NULL); + + mdns_service_freeze(); + disc_change_count++; + mdns_service_update_disc(disc); + mdns_service_update(); + mdns_service_thaw(); +} + +static void rodisc_remove(RODisc *disc) +{ + g_debug("Unexporting %s", disc->uri); + + mdns_service_freeze(); + disc_change_count++; + mdns_service_remove_disc(disc); + mdns_service_update(); + mdns_service_thaw(); + + soup_server_remove_handler(server, disc->uri); + g_hash_table_remove(discs, disc->id); +} + +static void rodisc_refresh(RODisc *disc) +{ + mdns_service_freeze(); + disc_change_count++; + mdns_service_update_disc(disc); + mdns_service_update(); + mdns_service_thaw(); +} + +static void monitor_set_disc_attrs(RODisc *disc, OrgFreedesktopUDisksDevice *device) +{ + const gchar * disc_type = org_freedesktop_udisks_device_get_drive_media(device); + + disc->label = org_freedesktop_udisks_device_dup_id_label(device); + if (!disc->label || disc->label[0] == '\0') { + g_free(disc->label); + disc->label = g_strdup("Disc"); + } + + if (g_str_has_prefix(disc_type, "optical_cd")) { + disc->type = RODISC_TYPE_CD; + } else if (g_str_has_prefix(disc_type, "optical_dvd")) { + disc->type = RODISC_TYPE_DVD; + } else { + disc->type = RODISC_TYPE_GENERIC; + } + + disc->size = org_freedesktop_udisks_device_get_device_size(device); +} + +static void monitor_try_add_device(const gchar *device_path) +{ + GError *error = NULL; + OrgFreedesktopUDisksDevice *device = + org_freedesktop_udisks_device_proxy_new_for_bus_sync( + G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, + "org.freedesktop.UDisks", device_path, + NULL, &error); + if (!device) { + g_warning("Could not add UDisk device: %s", error->message); + g_error_free(error); + return; + } + if (!org_freedesktop_udisks_device_get_device_is_optical_disc(device)) { + g_object_unref(device); + return; + } + + RODisc *disc = rodisc_new(); + + const gchar * device_file_path = org_freedesktop_udisks_device_get_device_file(device); + const gchar * const * id_paths = org_freedesktop_udisks_device_get_device_file_by_id(device); + disc->id = g_strdup(device_path); + disc->uri = g_strconcat("/", g_path_get_basename(id_paths[0]), NULL); + disc->file = g_file_new_for_path(device_file_path); + disc->file_path = g_file_get_path(disc->file); + + monitor_set_disc_attrs(disc, device); + + rodisc_export(disc); +} + +static void monitor_try_update_remove_device(const gchar *device_path, RODisc *disc) +{ + OrgFreedesktopUDisksDevice *device = + org_freedesktop_udisks_device_proxy_new_for_bus_sync( + G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, + "org.freedesktop.UDisks", device_path, + NULL, NULL); + if (!device) { + g_debug("Device removal"); + rodisc_remove(disc); + return; + } + if (!org_freedesktop_udisks_device_get_device_is_optical_disc(device)) { + g_debug("Media removal"); + g_object_unref(device); + rodisc_remove(disc); + return; + } + if (g_strcasecmp(org_freedesktop_udisks_device_get_id_label(device), + disc->label) != 0) { + g_debug("Media change"); + g_free(disc->label); + monitor_set_disc_attrs(disc, device); + rodisc_refresh(disc); + } +} + +static void monitor_device_added_cb(GObject *source_object, gchar *device, + gpointer user_data) +{ + g_debug("Device added: %s", device); + RODisc *disc = rodisc_lookup(device); + if (disc) { + g_warning("Disk already added: %s", device); + } else { + monitor_try_add_device(device); + } +} + +static void monitor_device_changed_cb(GObject *source_object, gchar *device, + gpointer user_data) +{ + g_debug("Device changed: %s", device); + RODisc *disc = rodisc_lookup(device); + // Hopefully we detected the eject event, otherwise we'll mess up. + if (disc) { + monitor_try_update_remove_device(device, disc); + } else { + monitor_try_add_device(device); + } +} + +static void monitor_device_removed_cb(GObject *source_object, gchar *device, + gpointer user_data) +{ + g_debug("Device removed: %s", device); + RODisc *disc = rodisc_lookup(device); + if (disc) { + monitor_try_update_remove_device(device, disc); + } +} + + +static void monitor_enumerate_devices_cb(GObject *source_object, + GAsyncResult *res, + gpointer user_data) +{ + GError *error = NULL; + gchar **devices; + if (org_freedesktop_udisks_call_enumerate_devices_finish(monitor, &devices, res, &error)) { + gchar **s; + for (s = devices; *s; s++) { + monitor_try_add_device(*s); + } + g_strfreev(devices); + } else { + g_warning("Could not enumerate devices using UDisks: %s", error->message); + g_error_free(error); + } +} + +static void file_add_disc(const gchar *path) +{ + static int num = 0; + GFile *file = g_file_new_for_path(path); + GFileInfo *info = g_file_query_info(file, G_FILE_ATTRIBUTE_STANDARD_SIZE, + G_FILE_QUERY_INFO_NONE, NULL, NULL); + g_return_if_fail(info); + const int my_num = ++num; + RODisc *disc = rodisc_new(); + disc->id = g_strdup_printf("file%d", my_num); + disc->uri = g_strdup_printf("/file%d", my_num); + disc->file_path = g_file_get_path(file); + disc->file = file; + disc->label = g_file_get_basename(file); + disc->type = RODISC_TYPE_GENERIC; + disc->size = g_file_info_get_size(info); + rodisc_export(disc); + g_object_unref(info); +} + +static void files_add() +{ + gchar **f; + if (!files) return; + for (f = files; *f; f++) { + file_add_disc(*f); + } +} + +static void server_cb(SoupServer *server, SoupMessage *msg, const char *path, + GHashTable *query, SoupClientContext *client, gpointer user_data) +{ + g_message("Unknown path requested: %s", path); + soup_message_set_status(msg, SOUP_STATUS_NOT_FOUND); +} + +int main(int argc, char * argv[]) +{ + GError *error = NULL; + GOptionContext *context = g_option_context_new("- remote optical disc service"); + + g_type_init(); + main_loop = g_main_loop_new(NULL, FALSE); + + discs = g_hash_table_new_full(g_str_hash, g_str_equal, + NULL, (GDestroyNotify) rodisc_destroy); + + g_option_context_add_main_entries(context, entries, NULL); + if (!g_option_context_parse(context, &argc, &argv, &error)) { + g_printerr("Option parsing failed: %s\n", error->message); + return EXIT_FAILURE; + } + + SoupAddress *addr = soup_address_new_any(SOUP_ADDRESS_FAMILY_IPV4, SOUP_ADDRESS_ANY_PORT); + server = soup_server_new(SOUP_SERVER_INTERFACE, addr, NULL); + g_object_unref(addr); + if (!server) { + g_warning("Could not create HTTP server"); + return EXIT_FAILURE; + } + + soup_server_add_handler(server, NULL, server_cb, NULL, NULL); + soup_server_run_async(server); + + mdns_client = ga_client_new(GA_CLIENT_FLAG_NO_FLAGS); + g_signal_connect(mdns_client, "state-changed", + G_CALLBACK(mdns_client_state_changed_cb), NULL); + if (!ga_client_start(mdns_client, &error)) { + g_warning("Could not start MDNS client"); + g_error_free(error); + return EXIT_FAILURE; + } + + monitor = org_freedesktop_udisks_proxy_new_for_bus_sync( + G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, + "org.freedesktop.UDisks", "/org/freedesktop/UDisks", + NULL, &error); + if (!monitor) { + g_warning("Could not create proxy to the UDisks service: %s", error->message); + g_error_free(error); + return EXIT_FAILURE; + } + g_signal_connect(monitor, "device-added", + G_CALLBACK(monitor_device_added_cb), NULL); + g_signal_connect(monitor, "device-changed", + G_CALLBACK(monitor_device_changed_cb), NULL); + g_signal_connect(monitor, "device-removed", + G_CALLBACK(monitor_device_removed_cb), NULL); + org_freedesktop_udisks_call_enumerate_devices(monitor, NULL, + monitor_enumerate_devices_cb, NULL); + + files_add(); + + g_message("Listening on %d", soup_server_get_port(server)); + + g_main_loop_run(main_loop); + + g_hash_table_destroy(discs); + g_object_unref(monitor); + g_object_unref(mdns_client); + g_object_unref(server); + g_main_loop_unref(main_loop); + return EXIT_SUCCESS; +} + diff --git a/udisks-device.c b/udisks-device.c new file mode 100644 index 0000000..99ea50d --- /dev/null +++ b/udisks-device.c @@ -0,0 +1,20198 @@ +/* + * Generated by gdbus-codegen 2.30.3. DO NOT EDIT. + * + * The license of this code is the same as for the source it was derived from. + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include "udisks-device.h" + +#ifdef G_OS_UNIX +# include +#endif + +typedef struct +{ + GDBusArgInfo parent_struct; + gboolean use_gvariant; +} _ExtendedGDBusArgInfo; + +typedef struct +{ + GDBusMethodInfo parent_struct; + const gchar *signal_name; + gboolean pass_fdlist; +} _ExtendedGDBusMethodInfo; + +typedef struct +{ + GDBusSignalInfo parent_struct; + const gchar *signal_name; +} _ExtendedGDBusSignalInfo; + +typedef struct +{ + GDBusPropertyInfo parent_struct; + const gchar *hyphen_name; + gboolean use_gvariant; +} _ExtendedGDBusPropertyInfo; + +typedef struct +{ + GDBusInterfaceInfo parent_struct; + const gchar *hyphen_name; +} _ExtendedGDBusInterfaceInfo; + +typedef struct +{ + const _ExtendedGDBusPropertyInfo *info; + guint prop_id; + GValue orig_value; /* the value before the change */ +} ChangedProperty; + +static void +_changed_property_free (ChangedProperty *data) +{ + g_value_unset (&data->orig_value); + g_free (data); +} + +static gboolean +_g_strv_equal0 (gchar **a, gchar **b) +{ + gboolean ret = FALSE; + guint n; + if (a == NULL && b == NULL) + { + ret = TRUE; + goto out; + } + if (a == NULL || b == NULL) + goto out; + if (g_strv_length (a) != g_strv_length (b)) + goto out; + for (n = 0; a[n] != NULL; n++) + if (g_strcmp0 (a[n], b[n]) != 0) + goto out; + ret = TRUE; +out: + return ret; +} + +static gboolean +_g_variant_equal0 (GVariant *a, GVariant *b) +{ + gboolean ret = FALSE; + if (a == NULL && b == NULL) + { + ret = TRUE; + goto out; + } + if (a == NULL || b == NULL) + goto out; + ret = g_variant_equal (a, b); +out: + return ret; +} + +G_GNUC_UNUSED static gboolean +_g_value_equal (const GValue *a, const GValue *b) +{ + gboolean ret = FALSE; + g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); + switch (G_VALUE_TYPE (a)) + { + case G_TYPE_BOOLEAN: + ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); + break; + case G_TYPE_UCHAR: + ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); + break; + case G_TYPE_INT: + ret = (g_value_get_int (a) == g_value_get_int (b)); + break; + case G_TYPE_UINT: + ret = (g_value_get_uint (a) == g_value_get_uint (b)); + break; + case G_TYPE_INT64: + ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); + break; + case G_TYPE_UINT64: + ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); + break; + case G_TYPE_DOUBLE: + ret = (g_value_get_double (a) == g_value_get_double (b)); + break; + case G_TYPE_STRING: + ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); + break; + case G_TYPE_VARIANT: + ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); + break; + default: + if (G_VALUE_TYPE (a) == G_TYPE_STRV) + ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); + else + g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); + break; + } + return ret; +} + +/* ------------------------------------------------------------------------ + * Code for interface org.freedesktop.UDisks.Device + * ------------------------------------------------------------------------ + */ + +/** + * SECTION:OrgFreedesktopUDisksDevice + * @title: OrgFreedesktopUDisksDevice + * @short_description: Generated C code for the org.freedesktop.UDisks.Device D-Bus interface + * + * This section contains code for working with the org.freedesktop.UDisks.Device D-Bus interface in C. + */ + +/* ---- Introspection data for org.freedesktop.UDisks.Device ---- */ + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_job_cancel_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_job_cancel_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_job_cancel_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_job_cancel = +{ + { + -1, + "JobCancel", + NULL, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_job_cancel_annotation_info_pointers + }, + "handle-job-cancel", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_table_create_IN_ARG_scheme = +{ + { + -1, + "scheme", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_table_create_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_partition_table_create_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_partition_table_create_IN_ARG_scheme, + &_org_freedesktop_udisks_device_method_info_partition_table_create_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_partition_table_create_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_partition_table_create_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_partition_table_create_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_partition_table_create = +{ + { + -1, + "PartitionTableCreate", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_partition_table_create_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_partition_table_create_annotation_info_pointers + }, + "handle-partition-table-create", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_delete_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_partition_delete_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_partition_delete_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_partition_delete_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_partition_delete_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_partition_delete_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_partition_delete = +{ + { + -1, + "PartitionDelete", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_partition_delete_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_partition_delete_annotation_info_pointers + }, + "handle-partition-delete", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_offset = +{ + { + -1, + "offset", + "t", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_size = +{ + { + -1, + "size", + "t", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_type = +{ + { + -1, + "type", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_label = +{ + { + -1, + "label", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_flags = +{ + { + -1, + "flags", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_fstype = +{ + { + -1, + "fstype", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_fsoptions = +{ + { + -1, + "fsoptions", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_offset, + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_size, + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_type, + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_label, + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_flags, + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_options, + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_fstype, + &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_fsoptions, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_create_OUT_ARG_created_device = +{ + { + -1, + "created_device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_partition_create_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_partition_create_OUT_ARG_created_device, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_partition_create_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_partition_create_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_partition_create_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_partition_create = +{ + { + -1, + "PartitionCreate", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_partition_create_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_partition_create_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_partition_create_annotation_info_pointers + }, + "handle-partition-create", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_type = +{ + { + -1, + "type", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_label = +{ + { + -1, + "label", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_flags = +{ + { + -1, + "flags", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_type, + &_org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_label, + &_org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_flags, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_partition_modify_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_partition_modify_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_partition_modify_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_partition_modify = +{ + { + -1, + "PartitionModify", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_partition_modify_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_partition_modify_annotation_info_pointers + }, + "handle-partition-modify", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_create_IN_ARG_fstype = +{ + { + -1, + "fstype", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_create_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_create_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_create_IN_ARG_fstype, + &_org_freedesktop_udisks_device_method_info_filesystem_create_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_filesystem_create_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_filesystem_create_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_filesystem_create_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_filesystem_create = +{ + { + -1, + "FilesystemCreate", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_create_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_filesystem_create_annotation_info_pointers + }, + "handle-filesystem-create", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_set_label_IN_ARG_new_label = +{ + { + -1, + "new_label", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_set_label_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_set_label_IN_ARG_new_label, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_filesystem_set_label_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_filesystem_set_label_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_filesystem_set_label_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_filesystem_set_label = +{ + { + -1, + "FilesystemSetLabel", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_set_label_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_filesystem_set_label_annotation_info_pointers + }, + "handle-filesystem-set-label", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_mount_IN_ARG_filesystem_type = +{ + { + -1, + "filesystem_type", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_mount_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_mount_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_mount_IN_ARG_filesystem_type, + &_org_freedesktop_udisks_device_method_info_filesystem_mount_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_mount_OUT_ARG_mount_path = +{ + { + -1, + "mount_path", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_mount_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_mount_OUT_ARG_mount_path, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_filesystem_mount_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_filesystem_mount_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_filesystem_mount_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_filesystem_mount = +{ + { + -1, + "FilesystemMount", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_mount_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_mount_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_filesystem_mount_annotation_info_pointers + }, + "handle-filesystem-mount", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_unmount_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_unmount_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_unmount_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_filesystem_unmount_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_filesystem_unmount_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_filesystem_unmount_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_filesystem_unmount = +{ + { + -1, + "FilesystemUnmount", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_unmount_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_filesystem_unmount_annotation_info_pointers + }, + "handle-filesystem-unmount", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_check_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_check_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_check_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_check_OUT_ARG_is_clean = +{ + { + -1, + "is_clean", + "b", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_check_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_check_OUT_ARG_is_clean, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_filesystem_check_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_filesystem_check_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_filesystem_check_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_filesystem_check = +{ + { + -1, + "FilesystemCheck", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_check_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_check_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_filesystem_check_annotation_info_pointers + }, + "handle-filesystem-check", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_filesystem_list_open_files_OUT_ARG_processes = +{ + { + -1, + "processes", + "a(uus)", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_filesystem_list_open_files_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_filesystem_list_open_files_OUT_ARG_processes, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_filesystem_list_open_files_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_filesystem_list_open_files_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_filesystem_list_open_files_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_filesystem_list_open_files = +{ + { + -1, + "FilesystemListOpenFiles", + NULL, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_filesystem_list_open_files_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_filesystem_list_open_files_annotation_info_pointers + }, + "handle-filesystem-list-open-files", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_luks_unlock_IN_ARG_passphrase = +{ + { + -1, + "passphrase", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_luks_unlock_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_luks_unlock_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_luks_unlock_IN_ARG_passphrase, + &_org_freedesktop_udisks_device_method_info_luks_unlock_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_luks_unlock_OUT_ARG_cleartext_device = +{ + { + -1, + "cleartext_device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_luks_unlock_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_luks_unlock_OUT_ARG_cleartext_device, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_luks_unlock_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_luks_unlock_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_luks_unlock_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_luks_unlock = +{ + { + -1, + "LuksUnlock", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_luks_unlock_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_luks_unlock_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_luks_unlock_annotation_info_pointers + }, + "handle-luks-unlock", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_luks_lock_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_luks_lock_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_luks_lock_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_luks_lock_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_luks_lock_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_luks_lock_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_luks_lock = +{ + { + -1, + "LuksLock", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_luks_lock_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_luks_lock_annotation_info_pointers + }, + "handle-luks-lock", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_luks_change_passphrase_IN_ARG_current_passphrase = +{ + { + -1, + "current_passphrase", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_luks_change_passphrase_IN_ARG_new_passphrase = +{ + { + -1, + "new_passphrase", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_luks_change_passphrase_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_luks_change_passphrase_IN_ARG_current_passphrase, + &_org_freedesktop_udisks_device_method_info_luks_change_passphrase_IN_ARG_new_passphrase, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_luks_change_passphrase_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_luks_change_passphrase_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_luks_change_passphrase_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_luks_change_passphrase = +{ + { + -1, + "LuksChangePassphrase", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_luks_change_passphrase_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_luks_change_passphrase_annotation_info_pointers + }, + "handle-luks-change-passphrase", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_add_spare_IN_ARG_component = +{ + { + -1, + "component", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_add_spare_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_linux_md_add_spare_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_linux_md_add_spare_IN_ARG_component, + &_org_freedesktop_udisks_device_method_info_linux_md_add_spare_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_linux_md_add_spare_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_linux_md_add_spare_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_linux_md_add_spare_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_linux_md_add_spare = +{ + { + -1, + "LinuxMdAddSpare", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_linux_md_add_spare_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_linux_md_add_spare_annotation_info_pointers + }, + "handle-linux-md-add-spare", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_expand_IN_ARG_components = +{ + { + -1, + "components", + "ao", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_expand_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_linux_md_expand_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_linux_md_expand_IN_ARG_components, + &_org_freedesktop_udisks_device_method_info_linux_md_expand_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_linux_md_expand_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_linux_md_expand_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_linux_md_expand_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_linux_md_expand = +{ + { + -1, + "LinuxMdExpand", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_linux_md_expand_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_linux_md_expand_annotation_info_pointers + }, + "handle-linux-md-expand", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_remove_component_IN_ARG_component = +{ + { + -1, + "component", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_remove_component_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_linux_md_remove_component_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_linux_md_remove_component_IN_ARG_component, + &_org_freedesktop_udisks_device_method_info_linux_md_remove_component_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_linux_md_remove_component_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_linux_md_remove_component_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_linux_md_remove_component_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_linux_md_remove_component = +{ + { + -1, + "LinuxMdRemoveComponent", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_linux_md_remove_component_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_linux_md_remove_component_annotation_info_pointers + }, + "handle-linux-md-remove-component", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_stop_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_linux_md_stop_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_linux_md_stop_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_linux_md_stop_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_linux_md_stop_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_linux_md_stop_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_linux_md_stop = +{ + { + -1, + "LinuxMdStop", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_linux_md_stop_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_linux_md_stop_annotation_info_pointers + }, + "handle-linux-md-stop", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_lvm2_lvstop_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_linux_lvm2_lvstop_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_linux_lvm2_lvstop_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_linux_lvm2_lvstop_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_linux_lvm2_lvstop_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_linux_lvm2_lvstop_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_linux_lvm2_lvstop = +{ + { + -1, + "LinuxLvm2LVStop", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_linux_lvm2_lvstop_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_linux_lvm2_lvstop_annotation_info_pointers + }, + "handle-linux-lvm2-lvstop", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_check_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_linux_md_check_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_linux_md_check_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_linux_md_check_OUT_ARG_number_of_errors = +{ + { + -1, + "number_of_errors", + "t", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_linux_md_check_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_linux_md_check_OUT_ARG_number_of_errors, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_linux_md_check_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_linux_md_check_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_linux_md_check_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_linux_md_check = +{ + { + -1, + "LinuxMdCheck", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_linux_md_check_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_linux_md_check_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_linux_md_check_annotation_info_pointers + }, + "handle-linux-md-check", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_inhibit_polling_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_inhibit_polling_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_inhibit_polling_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_inhibit_polling_OUT_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_inhibit_polling_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_inhibit_polling_OUT_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_inhibit_polling_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_inhibit_polling_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_inhibit_polling_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_inhibit_polling = +{ + { + -1, + "DriveInhibitPolling", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_inhibit_polling_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_inhibit_polling_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_inhibit_polling_annotation_info_pointers + }, + "handle-drive-inhibit-polling", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_uninhibit_polling_IN_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_uninhibit_polling_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_uninhibit_polling_IN_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_uninhibit_polling_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_uninhibit_polling_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_uninhibit_polling_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_uninhibit_polling = +{ + { + -1, + "DriveUninhibitPolling", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_uninhibit_polling_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_uninhibit_polling_annotation_info_pointers + }, + "handle-drive-uninhibit-polling", + FALSE +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_poll_media_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_poll_media_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_poll_media_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_poll_media = +{ + { + -1, + "DrivePollMedia", + NULL, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_poll_media_annotation_info_pointers + }, + "handle-drive-poll-media", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_eject_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_eject_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_eject_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_eject_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_eject_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_eject_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_eject = +{ + { + -1, + "DriveEject", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_eject_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_eject_annotation_info_pointers + }, + "handle-drive-eject", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_detach_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_detach_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_detach_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_detach_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_detach_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_detach_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_detach = +{ + { + -1, + "DriveDetach", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_detach_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_detach_annotation_info_pointers + }, + "handle-drive-detach", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_IN_ARG_timeout_seconds = +{ + { + -1, + "timeout_seconds", + "i", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_IN_ARG_timeout_seconds, + &_org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_OUT_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_OUT_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_set_spindown_timeout_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_set_spindown_timeout_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_set_spindown_timeout_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout = +{ + { + -1, + "DriveSetSpindownTimeout", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_set_spindown_timeout_annotation_info_pointers + }, + "handle-drive-set-spindown-timeout", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_unset_spindown_timeout_IN_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_unset_spindown_timeout_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_unset_spindown_timeout_IN_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_unset_spindown_timeout_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_unset_spindown_timeout_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_unset_spindown_timeout_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_unset_spindown_timeout = +{ + { + -1, + "DriveUnsetSpindownTimeout", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_unset_spindown_timeout_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_unset_spindown_timeout_annotation_info_pointers + }, + "handle-drive-unset-spindown-timeout", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_ata_smart_refresh_data_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_ata_smart_refresh_data_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_ata_smart_refresh_data_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_ata_smart_refresh_data_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_ata_smart_refresh_data_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_ata_smart_refresh_data_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_ata_smart_refresh_data = +{ + { + -1, + "DriveAtaSmartRefreshData", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_ata_smart_refresh_data_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_ata_smart_refresh_data_annotation_info_pointers + }, + "handle-drive-ata-smart-refresh-data", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest_IN_ARG_test = +{ + { + -1, + "test", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest_IN_ARG_test, + &_org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_ata_smart_initiate_selftest_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_ata_smart_initiate_selftest_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_ata_smart_initiate_selftest_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest = +{ + { + -1, + "DriveAtaSmartInitiateSelftest", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_ata_smart_initiate_selftest_annotation_info_pointers + }, + "handle-drive-ata-smart-initiate-selftest", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_benchmark_IN_ARG_do_write_benchmark = +{ + { + -1, + "do_write_benchmark", + "b", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_benchmark_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_benchmark_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_benchmark_IN_ARG_do_write_benchmark, + &_org_freedesktop_udisks_device_method_info_drive_benchmark_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_read_transfer_rate_results = +{ + { + -1, + "read_transfer_rate_results", + "a(td)", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_write_transfer_rate_results = +{ + { + -1, + "write_transfer_rate_results", + "a(td)", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_access_time_results = +{ + { + -1, + "access_time_results", + "a(td)", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_read_transfer_rate_results, + &_org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_write_transfer_rate_results, + &_org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_access_time_results, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_device_method_drive_benchmark_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_device_method_drive_benchmark_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_drive_benchmark_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_device_method_info_drive_benchmark = +{ + { + -1, + "DriveBenchmark", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_benchmark_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_device_method_info_drive_benchmark_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_device_method_drive_benchmark_annotation_info_pointers + }, + "handle-drive-benchmark", + FALSE +}; + +static const _ExtendedGDBusMethodInfo * const _org_freedesktop_udisks_device_method_info_pointers[] = +{ + &_org_freedesktop_udisks_device_method_info_job_cancel, + &_org_freedesktop_udisks_device_method_info_partition_table_create, + &_org_freedesktop_udisks_device_method_info_partition_delete, + &_org_freedesktop_udisks_device_method_info_partition_create, + &_org_freedesktop_udisks_device_method_info_partition_modify, + &_org_freedesktop_udisks_device_method_info_filesystem_create, + &_org_freedesktop_udisks_device_method_info_filesystem_set_label, + &_org_freedesktop_udisks_device_method_info_filesystem_mount, + &_org_freedesktop_udisks_device_method_info_filesystem_unmount, + &_org_freedesktop_udisks_device_method_info_filesystem_check, + &_org_freedesktop_udisks_device_method_info_filesystem_list_open_files, + &_org_freedesktop_udisks_device_method_info_luks_unlock, + &_org_freedesktop_udisks_device_method_info_luks_lock, + &_org_freedesktop_udisks_device_method_info_luks_change_passphrase, + &_org_freedesktop_udisks_device_method_info_linux_md_add_spare, + &_org_freedesktop_udisks_device_method_info_linux_md_expand, + &_org_freedesktop_udisks_device_method_info_linux_md_remove_component, + &_org_freedesktop_udisks_device_method_info_linux_md_stop, + &_org_freedesktop_udisks_device_method_info_linux_lvm2_lvstop, + &_org_freedesktop_udisks_device_method_info_linux_md_check, + &_org_freedesktop_udisks_device_method_info_drive_inhibit_polling, + &_org_freedesktop_udisks_device_method_info_drive_uninhibit_polling, + &_org_freedesktop_udisks_device_method_info_drive_poll_media, + &_org_freedesktop_udisks_device_method_info_drive_eject, + &_org_freedesktop_udisks_device_method_info_drive_detach, + &_org_freedesktop_udisks_device_method_info_drive_set_spindown_timeout, + &_org_freedesktop_udisks_device_method_info_drive_unset_spindown_timeout, + &_org_freedesktop_udisks_device_method_info_drive_ata_smart_refresh_data, + &_org_freedesktop_udisks_device_method_info_drive_ata_smart_initiate_selftest, + &_org_freedesktop_udisks_device_method_info_drive_benchmark, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_device_signal_info_changed = +{ + { + -1, + "Changed", + NULL, + NULL + }, + "changed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_in_progress = +{ + { + -1, + "job_in_progress", + "b", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_is_cancellable = +{ + { + -1, + "job_is_cancellable", + "b", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_id = +{ + { + -1, + "job_id", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_initiated_by_uid = +{ + { + -1, + "job_initiated_by_uid", + "u", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_percentage = +{ + { + -1, + "job_percentage", + "d", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_device_signal_info_job_changed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_in_progress, + &_org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_is_cancellable, + &_org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_id, + &_org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_initiated_by_uid, + &_org_freedesktop_udisks_device_signal_info_job_changed_ARG_job_percentage, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_device_signal_info_job_changed = +{ + { + -1, + "JobChanged", + (GDBusArgInfo **) &_org_freedesktop_udisks_device_signal_info_job_changed_ARG_pointers, + NULL + }, + "job-changed" +}; + +static const _ExtendedGDBusSignalInfo * const _org_freedesktop_udisks_device_signal_info_pointers[] = +{ + &_org_freedesktop_udisks_device_signal_info_changed, + &_org_freedesktop_udisks_device_signal_info_job_changed, + NULL +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_native_path = +{ + { + -1, + "NativePath", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "native-path", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_detection_time = +{ + { + -1, + "DeviceDetectionTime", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-detection-time", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_media_detection_time = +{ + { + -1, + "DeviceMediaDetectionTime", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-media-detection-time", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_major = +{ + { + -1, + "DeviceMajor", + "x", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-major", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_minor = +{ + { + -1, + "DeviceMinor", + "x", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-minor", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_file = +{ + { + -1, + "DeviceFile", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-file", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_file_presentation = +{ + { + -1, + "DeviceFilePresentation", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-file-presentation", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_file_by_id = +{ + { + -1, + "DeviceFileById", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-file-by-id", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_file_by_path = +{ + { + -1, + "DeviceFileByPath", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-file-by-path", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_system_internal = +{ + { + -1, + "DeviceIsSystemInternal", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-system-internal", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_partition = +{ + { + -1, + "DeviceIsPartition", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-partition", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_partition_table = +{ + { + -1, + "DeviceIsPartitionTable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-partition-table", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_removable = +{ + { + -1, + "DeviceIsRemovable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-removable", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_media_available = +{ + { + -1, + "DeviceIsMediaAvailable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-media-available", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_media_change_detected = +{ + { + -1, + "DeviceIsMediaChangeDetected", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-media-change-detected", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_media_change_detection_polling = +{ + { + -1, + "DeviceIsMediaChangeDetectionPolling", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-media-change-detection-polling", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_media_change_detection_inhibitable = +{ + { + -1, + "DeviceIsMediaChangeDetectionInhibitable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-media-change-detection-inhibitable", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_media_change_detection_inhibited = +{ + { + -1, + "DeviceIsMediaChangeDetectionInhibited", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-media-change-detection-inhibited", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_read_only = +{ + { + -1, + "DeviceIsReadOnly", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-read-only", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_drive = +{ + { + -1, + "DeviceIsDrive", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-drive", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_optical_disc = +{ + { + -1, + "DeviceIsOpticalDisc", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-optical-disc", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_mounted = +{ + { + -1, + "DeviceIsMounted", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-mounted", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_mount_paths = +{ + { + -1, + "DeviceMountPaths", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-mount-paths", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_mounted_by_uid = +{ + { + -1, + "DeviceMountedByUid", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-mounted-by-uid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_luks = +{ + { + -1, + "DeviceIsLuks", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-luks", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_luks_cleartext = +{ + { + -1, + "DeviceIsLuksCleartext", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-luks-cleartext", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_linux_md_component = +{ + { + -1, + "DeviceIsLinuxMdComponent", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-linux-md-component", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_linux_md = +{ + { + -1, + "DeviceIsLinuxMd", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-linux-md", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_linux_lvm2_lv = +{ + { + -1, + "DeviceIsLinuxLvm2LV", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-linux-lvm2-lv", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_linux_lvm2_pv = +{ + { + -1, + "DeviceIsLinuxLvm2PV", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-linux-lvm2-pv", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_linux_dmmp_component = +{ + { + -1, + "DeviceIsLinuxDmmpComponent", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-linux-dmmp-component", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_linux_dmmp = +{ + { + -1, + "DeviceIsLinuxDmmp", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-linux-dmmp", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_is_linux_loop = +{ + { + -1, + "DeviceIsLinuxLoop", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-is-linux-loop", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_size = +{ + { + -1, + "DeviceSize", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-size", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_block_size = +{ + { + -1, + "DeviceBlockSize", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-block-size", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_presentation_hide = +{ + { + -1, + "DevicePresentationHide", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-presentation-hide", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_presentation_nopolicy = +{ + { + -1, + "DevicePresentationNopolicy", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-presentation-nopolicy", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_presentation_name = +{ + { + -1, + "DevicePresentationName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-presentation-name", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_presentation_icon_name = +{ + { + -1, + "DevicePresentationIconName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-presentation-icon-name", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_device_automount_hint = +{ + { + -1, + "DeviceAutomountHint", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "device-automount-hint", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_job_in_progress = +{ + { + -1, + "JobInProgress", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "job-in-progress", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_job_id = +{ + { + -1, + "JobId", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "job-id", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_job_initiated_by_uid = +{ + { + -1, + "JobInitiatedByUid", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "job-initiated-by-uid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_job_is_cancellable = +{ + { + -1, + "JobIsCancellable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "job-is-cancellable", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_job_percentage = +{ + { + -1, + "JobPercentage", + "d", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "job-percentage", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_id_usage = +{ + { + -1, + "IdUsage", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "id-usage", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_id_type = +{ + { + -1, + "IdType", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "id-type", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_id_version = +{ + { + -1, + "IdVersion", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "id-version", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_id_uuid = +{ + { + -1, + "IdUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "id-uuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_id_label = +{ + { + -1, + "IdLabel", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "id-label", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_luks_holder = +{ + { + -1, + "LuksHolder", + "o", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "luks-holder", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_luks_cleartext_slave = +{ + { + -1, + "LuksCleartextSlave", + "o", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "luks-cleartext-slave", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_luks_cleartext_unlocked_by_uid = +{ + { + -1, + "LuksCleartextUnlockedByUid", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "luks-cleartext-unlocked-by-uid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_slave = +{ + { + -1, + "PartitionSlave", + "o", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-slave", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_scheme = +{ + { + -1, + "PartitionScheme", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-scheme", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_type = +{ + { + -1, + "PartitionType", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-type", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_label = +{ + { + -1, + "PartitionLabel", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-label", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_uuid = +{ + { + -1, + "PartitionUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-uuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_flags = +{ + { + -1, + "PartitionFlags", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-flags", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_number = +{ + { + -1, + "PartitionNumber", + "i", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-number", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_offset = +{ + { + -1, + "PartitionOffset", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-offset", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_size = +{ + { + -1, + "PartitionSize", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-size", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_alignment_offset = +{ + { + -1, + "PartitionAlignmentOffset", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-alignment-offset", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_table_scheme = +{ + { + -1, + "PartitionTableScheme", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-table-scheme", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_partition_table_count = +{ + { + -1, + "PartitionTableCount", + "i", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "partition-table-count", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_vendor = +{ + { + -1, + "DriveVendor", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-vendor", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_model = +{ + { + -1, + "DriveModel", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-model", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_revision = +{ + { + -1, + "DriveRevision", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-revision", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_serial = +{ + { + -1, + "DriveSerial", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-serial", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_wwn = +{ + { + -1, + "DriveWwn", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-wwn", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_rotation_rate = +{ + { + -1, + "DriveRotationRate", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-rotation-rate", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_write_cache = +{ + { + -1, + "DriveWriteCache", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-write-cache", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_connection_interface = +{ + { + -1, + "DriveConnectionInterface", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-connection-interface", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_connection_speed = +{ + { + -1, + "DriveConnectionSpeed", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-connection-speed", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_media_compatibility = +{ + { + -1, + "DriveMediaCompatibility", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-media-compatibility", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_media = +{ + { + -1, + "DriveMedia", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-media", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_is_media_ejectable = +{ + { + -1, + "DriveIsMediaEjectable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-is-media-ejectable", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_can_detach = +{ + { + -1, + "DriveCanDetach", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-can-detach", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_can_spindown = +{ + { + -1, + "DriveCanSpindown", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-can-spindown", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_is_rotational = +{ + { + -1, + "DriveIsRotational", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-is-rotational", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_adapter = +{ + { + -1, + "DriveAdapter", + "o", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-adapter", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_ports = +{ + { + -1, + "DrivePorts", + "ao", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-ports", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_similar_devices = +{ + { + -1, + "DriveSimilarDevices", + "ao", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-similar-devices", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_optical_disc_is_blank = +{ + { + -1, + "OpticalDiscIsBlank", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "optical-disc-is-blank", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_optical_disc_is_appendable = +{ + { + -1, + "OpticalDiscIsAppendable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "optical-disc-is-appendable", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_optical_disc_is_closed = +{ + { + -1, + "OpticalDiscIsClosed", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "optical-disc-is-closed", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_optical_disc_num_tracks = +{ + { + -1, + "OpticalDiscNumTracks", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "optical-disc-num-tracks", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_optical_disc_num_audio_tracks = +{ + { + -1, + "OpticalDiscNumAudioTracks", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "optical-disc-num-audio-tracks", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_optical_disc_num_sessions = +{ + { + -1, + "OpticalDiscNumSessions", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "optical-disc-num-sessions", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_ata_smart_is_available = +{ + { + -1, + "DriveAtaSmartIsAvailable", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-ata-smart-is-available", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_ata_smart_time_collected = +{ + { + -1, + "DriveAtaSmartTimeCollected", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-ata-smart-time-collected", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_ata_smart_status = +{ + { + -1, + "DriveAtaSmartStatus", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-ata-smart-status", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_drive_ata_smart_blob = +{ + { + -1, + "DriveAtaSmartBlob", + "ay", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "drive-ata-smart-blob", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_level = +{ + { + -1, + "LinuxMdComponentLevel", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-level", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_position = +{ + { + -1, + "LinuxMdComponentPosition", + "i", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-position", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_num_raid_devices = +{ + { + -1, + "LinuxMdComponentNumRaidDevices", + "i", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-num-raid-devices", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_uuid = +{ + { + -1, + "LinuxMdComponentUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-uuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_name = +{ + { + -1, + "LinuxMdComponentName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-name", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_home_host = +{ + { + -1, + "LinuxMdComponentHomeHost", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-home-host", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_version = +{ + { + -1, + "LinuxMdComponentVersion", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-version", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_holder = +{ + { + -1, + "LinuxMdComponentHolder", + "o", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-holder", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_component_state = +{ + { + -1, + "LinuxMdComponentState", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-component-state", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_state = +{ + { + -1, + "LinuxMdState", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-state", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_level = +{ + { + -1, + "LinuxMdLevel", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-level", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_uuid = +{ + { + -1, + "LinuxMdUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-uuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_home_host = +{ + { + -1, + "LinuxMdHomeHost", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-home-host", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_name = +{ + { + -1, + "LinuxMdName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-name", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_num_raid_devices = +{ + { + -1, + "LinuxMdNumRaidDevices", + "i", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-num-raid-devices", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_version = +{ + { + -1, + "LinuxMdVersion", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-version", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_slaves = +{ + { + -1, + "LinuxMdSlaves", + "ao", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-slaves", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_is_degraded = +{ + { + -1, + "LinuxMdIsDegraded", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-is-degraded", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_sync_action = +{ + { + -1, + "LinuxMdSyncAction", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-sync-action", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_sync_percentage = +{ + { + -1, + "LinuxMdSyncPercentage", + "d", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-sync-percentage", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_md_sync_speed = +{ + { + -1, + "LinuxMdSyncSpeed", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-md-sync-speed", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvuuid = +{ + { + -1, + "LinuxLvm2PVUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvuuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvnum_metadata_areas = +{ + { + -1, + "LinuxLvm2PVNumMetadataAreas", + "u", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvnum-metadata-areas", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_name = +{ + { + -1, + "LinuxLvm2PVGroupName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-name", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_uuid = +{ + { + -1, + "LinuxLvm2PVGroupUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-uuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_size = +{ + { + -1, + "LinuxLvm2PVGroupSize", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-size", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_unallocated_size = +{ + { + -1, + "LinuxLvm2PVGroupUnallocatedSize", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-unallocated-size", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_sequence_number = +{ + { + -1, + "LinuxLvm2PVGroupSequenceNumber", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-sequence-number", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_extent_size = +{ + { + -1, + "LinuxLvm2PVGroupExtentSize", + "t", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-extent-size", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_physical_volumes = +{ + { + -1, + "LinuxLvm2PVGroupPhysicalVolumes", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-physical-volumes", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_logical_volumes = +{ + { + -1, + "LinuxLvm2PVGroupLogicalVolumes", + "as", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-pvgroup-logical-volumes", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_lvname = +{ + { + -1, + "LinuxLvm2LVName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-lvname", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_lvuuid = +{ + { + -1, + "LinuxLvm2LVUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-lvuuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_lvgroup_name = +{ + { + -1, + "LinuxLvm2LVGroupName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-lvgroup-name", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_lvm2_lvgroup_uuid = +{ + { + -1, + "LinuxLvm2LVGroupUuid", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-lvm2-lvgroup-uuid", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_dmmp_component_holder = +{ + { + -1, + "LinuxDmmpComponentHolder", + "o", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-dmmp-component-holder", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_dmmp_name = +{ + { + -1, + "LinuxDmmpName", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-dmmp-name", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_dmmp_slaves = +{ + { + -1, + "LinuxDmmpSlaves", + "ao", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-dmmp-slaves", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_dmmp_parameters = +{ + { + -1, + "LinuxDmmpParameters", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-dmmp-parameters", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_device_property_info_linux_loop_filename = +{ + { + -1, + "LinuxLoopFilename", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "linux-loop-filename", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo * const _org_freedesktop_udisks_device_property_info_pointers[] = +{ + &_org_freedesktop_udisks_device_property_info_native_path, + &_org_freedesktop_udisks_device_property_info_device_detection_time, + &_org_freedesktop_udisks_device_property_info_device_media_detection_time, + &_org_freedesktop_udisks_device_property_info_device_major, + &_org_freedesktop_udisks_device_property_info_device_minor, + &_org_freedesktop_udisks_device_property_info_device_file, + &_org_freedesktop_udisks_device_property_info_device_file_presentation, + &_org_freedesktop_udisks_device_property_info_device_file_by_id, + &_org_freedesktop_udisks_device_property_info_device_file_by_path, + &_org_freedesktop_udisks_device_property_info_device_is_system_internal, + &_org_freedesktop_udisks_device_property_info_device_is_partition, + &_org_freedesktop_udisks_device_property_info_device_is_partition_table, + &_org_freedesktop_udisks_device_property_info_device_is_removable, + &_org_freedesktop_udisks_device_property_info_device_is_media_available, + &_org_freedesktop_udisks_device_property_info_device_is_media_change_detected, + &_org_freedesktop_udisks_device_property_info_device_is_media_change_detection_polling, + &_org_freedesktop_udisks_device_property_info_device_is_media_change_detection_inhibitable, + &_org_freedesktop_udisks_device_property_info_device_is_media_change_detection_inhibited, + &_org_freedesktop_udisks_device_property_info_device_is_read_only, + &_org_freedesktop_udisks_device_property_info_device_is_drive, + &_org_freedesktop_udisks_device_property_info_device_is_optical_disc, + &_org_freedesktop_udisks_device_property_info_device_is_mounted, + &_org_freedesktop_udisks_device_property_info_device_mount_paths, + &_org_freedesktop_udisks_device_property_info_device_mounted_by_uid, + &_org_freedesktop_udisks_device_property_info_device_is_luks, + &_org_freedesktop_udisks_device_property_info_device_is_luks_cleartext, + &_org_freedesktop_udisks_device_property_info_device_is_linux_md_component, + &_org_freedesktop_udisks_device_property_info_device_is_linux_md, + &_org_freedesktop_udisks_device_property_info_device_is_linux_lvm2_lv, + &_org_freedesktop_udisks_device_property_info_device_is_linux_lvm2_pv, + &_org_freedesktop_udisks_device_property_info_device_is_linux_dmmp_component, + &_org_freedesktop_udisks_device_property_info_device_is_linux_dmmp, + &_org_freedesktop_udisks_device_property_info_device_is_linux_loop, + &_org_freedesktop_udisks_device_property_info_device_size, + &_org_freedesktop_udisks_device_property_info_device_block_size, + &_org_freedesktop_udisks_device_property_info_device_presentation_hide, + &_org_freedesktop_udisks_device_property_info_device_presentation_nopolicy, + &_org_freedesktop_udisks_device_property_info_device_presentation_name, + &_org_freedesktop_udisks_device_property_info_device_presentation_icon_name, + &_org_freedesktop_udisks_device_property_info_device_automount_hint, + &_org_freedesktop_udisks_device_property_info_job_in_progress, + &_org_freedesktop_udisks_device_property_info_job_id, + &_org_freedesktop_udisks_device_property_info_job_initiated_by_uid, + &_org_freedesktop_udisks_device_property_info_job_is_cancellable, + &_org_freedesktop_udisks_device_property_info_job_percentage, + &_org_freedesktop_udisks_device_property_info_id_usage, + &_org_freedesktop_udisks_device_property_info_id_type, + &_org_freedesktop_udisks_device_property_info_id_version, + &_org_freedesktop_udisks_device_property_info_id_uuid, + &_org_freedesktop_udisks_device_property_info_id_label, + &_org_freedesktop_udisks_device_property_info_luks_holder, + &_org_freedesktop_udisks_device_property_info_luks_cleartext_slave, + &_org_freedesktop_udisks_device_property_info_luks_cleartext_unlocked_by_uid, + &_org_freedesktop_udisks_device_property_info_partition_slave, + &_org_freedesktop_udisks_device_property_info_partition_scheme, + &_org_freedesktop_udisks_device_property_info_partition_type, + &_org_freedesktop_udisks_device_property_info_partition_label, + &_org_freedesktop_udisks_device_property_info_partition_uuid, + &_org_freedesktop_udisks_device_property_info_partition_flags, + &_org_freedesktop_udisks_device_property_info_partition_number, + &_org_freedesktop_udisks_device_property_info_partition_offset, + &_org_freedesktop_udisks_device_property_info_partition_size, + &_org_freedesktop_udisks_device_property_info_partition_alignment_offset, + &_org_freedesktop_udisks_device_property_info_partition_table_scheme, + &_org_freedesktop_udisks_device_property_info_partition_table_count, + &_org_freedesktop_udisks_device_property_info_drive_vendor, + &_org_freedesktop_udisks_device_property_info_drive_model, + &_org_freedesktop_udisks_device_property_info_drive_revision, + &_org_freedesktop_udisks_device_property_info_drive_serial, + &_org_freedesktop_udisks_device_property_info_drive_wwn, + &_org_freedesktop_udisks_device_property_info_drive_rotation_rate, + &_org_freedesktop_udisks_device_property_info_drive_write_cache, + &_org_freedesktop_udisks_device_property_info_drive_connection_interface, + &_org_freedesktop_udisks_device_property_info_drive_connection_speed, + &_org_freedesktop_udisks_device_property_info_drive_media_compatibility, + &_org_freedesktop_udisks_device_property_info_drive_media, + &_org_freedesktop_udisks_device_property_info_drive_is_media_ejectable, + &_org_freedesktop_udisks_device_property_info_drive_can_detach, + &_org_freedesktop_udisks_device_property_info_drive_can_spindown, + &_org_freedesktop_udisks_device_property_info_drive_is_rotational, + &_org_freedesktop_udisks_device_property_info_drive_adapter, + &_org_freedesktop_udisks_device_property_info_drive_ports, + &_org_freedesktop_udisks_device_property_info_drive_similar_devices, + &_org_freedesktop_udisks_device_property_info_optical_disc_is_blank, + &_org_freedesktop_udisks_device_property_info_optical_disc_is_appendable, + &_org_freedesktop_udisks_device_property_info_optical_disc_is_closed, + &_org_freedesktop_udisks_device_property_info_optical_disc_num_tracks, + &_org_freedesktop_udisks_device_property_info_optical_disc_num_audio_tracks, + &_org_freedesktop_udisks_device_property_info_optical_disc_num_sessions, + &_org_freedesktop_udisks_device_property_info_drive_ata_smart_is_available, + &_org_freedesktop_udisks_device_property_info_drive_ata_smart_time_collected, + &_org_freedesktop_udisks_device_property_info_drive_ata_smart_status, + &_org_freedesktop_udisks_device_property_info_drive_ata_smart_blob, + &_org_freedesktop_udisks_device_property_info_linux_md_component_level, + &_org_freedesktop_udisks_device_property_info_linux_md_component_position, + &_org_freedesktop_udisks_device_property_info_linux_md_component_num_raid_devices, + &_org_freedesktop_udisks_device_property_info_linux_md_component_uuid, + &_org_freedesktop_udisks_device_property_info_linux_md_component_name, + &_org_freedesktop_udisks_device_property_info_linux_md_component_home_host, + &_org_freedesktop_udisks_device_property_info_linux_md_component_version, + &_org_freedesktop_udisks_device_property_info_linux_md_component_holder, + &_org_freedesktop_udisks_device_property_info_linux_md_component_state, + &_org_freedesktop_udisks_device_property_info_linux_md_state, + &_org_freedesktop_udisks_device_property_info_linux_md_level, + &_org_freedesktop_udisks_device_property_info_linux_md_uuid, + &_org_freedesktop_udisks_device_property_info_linux_md_home_host, + &_org_freedesktop_udisks_device_property_info_linux_md_name, + &_org_freedesktop_udisks_device_property_info_linux_md_num_raid_devices, + &_org_freedesktop_udisks_device_property_info_linux_md_version, + &_org_freedesktop_udisks_device_property_info_linux_md_slaves, + &_org_freedesktop_udisks_device_property_info_linux_md_is_degraded, + &_org_freedesktop_udisks_device_property_info_linux_md_sync_action, + &_org_freedesktop_udisks_device_property_info_linux_md_sync_percentage, + &_org_freedesktop_udisks_device_property_info_linux_md_sync_speed, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvuuid, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvnum_metadata_areas, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_name, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_uuid, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_size, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_unallocated_size, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_sequence_number, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_extent_size, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_physical_volumes, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_pvgroup_logical_volumes, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_lvname, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_lvuuid, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_lvgroup_name, + &_org_freedesktop_udisks_device_property_info_linux_lvm2_lvgroup_uuid, + &_org_freedesktop_udisks_device_property_info_linux_dmmp_component_holder, + &_org_freedesktop_udisks_device_property_info_linux_dmmp_name, + &_org_freedesktop_udisks_device_property_info_linux_dmmp_slaves, + &_org_freedesktop_udisks_device_property_info_linux_dmmp_parameters, + &_org_freedesktop_udisks_device_property_info_linux_loop_filename, + NULL +}; + +static const _ExtendedGDBusInterfaceInfo _org_freedesktop_udisks_device_interface_info = +{ + { + -1, + "org.freedesktop.UDisks.Device", + (GDBusMethodInfo **) &_org_freedesktop_udisks_device_method_info_pointers, + (GDBusSignalInfo **) &_org_freedesktop_udisks_device_signal_info_pointers, + (GDBusPropertyInfo **) &_org_freedesktop_udisks_device_property_info_pointers, + NULL + }, + "org-freedesktop-udisks-device", +}; + + +/** + * org_freedesktop_udisks_device_interface_info: + * + * Gets a machine-readable description of the org.freedesktop.UDisks.Device D-Bus interface. + * + * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. + */ +GDBusInterfaceInfo * +org_freedesktop_udisks_device_interface_info (void) +{ + return (GDBusInterfaceInfo *) &_org_freedesktop_udisks_device_interface_info; +} + +/** + * org_freedesktop_udisks_device_override_properties: + * @klass: The class structure for a #GObject-derived class. + * @property_id_begin: The property id to assign to the first overridden property. + * + * Overrides all #GObject properties in the #OrgFreedesktopUDisksDevice interface for a concrete class. + * The properties are overridden in the order they are defined. + * + * Returns: The last property id. + */ +guint +org_freedesktop_udisks_device_override_properties (GObjectClass *klass, guint property_id_begin) +{ + g_object_class_override_property (klass, property_id_begin++, "native-path"); + g_object_class_override_property (klass, property_id_begin++, "device-detection-time"); + g_object_class_override_property (klass, property_id_begin++, "device-media-detection-time"); + g_object_class_override_property (klass, property_id_begin++, "device-major"); + g_object_class_override_property (klass, property_id_begin++, "device-minor"); + g_object_class_override_property (klass, property_id_begin++, "device-file"); + g_object_class_override_property (klass, property_id_begin++, "device-file-presentation"); + g_object_class_override_property (klass, property_id_begin++, "device-file-by-id"); + g_object_class_override_property (klass, property_id_begin++, "device-file-by-path"); + g_object_class_override_property (klass, property_id_begin++, "device-is-system-internal"); + g_object_class_override_property (klass, property_id_begin++, "device-is-partition"); + g_object_class_override_property (klass, property_id_begin++, "device-is-partition-table"); + g_object_class_override_property (klass, property_id_begin++, "device-is-removable"); + g_object_class_override_property (klass, property_id_begin++, "device-is-media-available"); + g_object_class_override_property (klass, property_id_begin++, "device-is-media-change-detected"); + g_object_class_override_property (klass, property_id_begin++, "device-is-media-change-detection-polling"); + g_object_class_override_property (klass, property_id_begin++, "device-is-media-change-detection-inhibitable"); + g_object_class_override_property (klass, property_id_begin++, "device-is-media-change-detection-inhibited"); + g_object_class_override_property (klass, property_id_begin++, "device-is-read-only"); + g_object_class_override_property (klass, property_id_begin++, "device-is-drive"); + g_object_class_override_property (klass, property_id_begin++, "device-is-optical-disc"); + g_object_class_override_property (klass, property_id_begin++, "device-is-mounted"); + g_object_class_override_property (klass, property_id_begin++, "device-mount-paths"); + g_object_class_override_property (klass, property_id_begin++, "device-mounted-by-uid"); + g_object_class_override_property (klass, property_id_begin++, "device-is-luks"); + g_object_class_override_property (klass, property_id_begin++, "device-is-luks-cleartext"); + g_object_class_override_property (klass, property_id_begin++, "device-is-linux-md-component"); + g_object_class_override_property (klass, property_id_begin++, "device-is-linux-md"); + g_object_class_override_property (klass, property_id_begin++, "device-is-linux-lvm2-lv"); + g_object_class_override_property (klass, property_id_begin++, "device-is-linux-lvm2-pv"); + g_object_class_override_property (klass, property_id_begin++, "device-is-linux-dmmp-component"); + g_object_class_override_property (klass, property_id_begin++, "device-is-linux-dmmp"); + g_object_class_override_property (klass, property_id_begin++, "device-is-linux-loop"); + g_object_class_override_property (klass, property_id_begin++, "device-size"); + g_object_class_override_property (klass, property_id_begin++, "device-block-size"); + g_object_class_override_property (klass, property_id_begin++, "device-presentation-hide"); + g_object_class_override_property (klass, property_id_begin++, "device-presentation-nopolicy"); + g_object_class_override_property (klass, property_id_begin++, "device-presentation-name"); + g_object_class_override_property (klass, property_id_begin++, "device-presentation-icon-name"); + g_object_class_override_property (klass, property_id_begin++, "device-automount-hint"); + g_object_class_override_property (klass, property_id_begin++, "job-in-progress"); + g_object_class_override_property (klass, property_id_begin++, "job-id"); + g_object_class_override_property (klass, property_id_begin++, "job-initiated-by-uid"); + g_object_class_override_property (klass, property_id_begin++, "job-is-cancellable"); + g_object_class_override_property (klass, property_id_begin++, "job-percentage"); + g_object_class_override_property (klass, property_id_begin++, "id-usage"); + g_object_class_override_property (klass, property_id_begin++, "id-type"); + g_object_class_override_property (klass, property_id_begin++, "id-version"); + g_object_class_override_property (klass, property_id_begin++, "id-uuid"); + g_object_class_override_property (klass, property_id_begin++, "id-label"); + g_object_class_override_property (klass, property_id_begin++, "luks-holder"); + g_object_class_override_property (klass, property_id_begin++, "luks-cleartext-slave"); + g_object_class_override_property (klass, property_id_begin++, "luks-cleartext-unlocked-by-uid"); + g_object_class_override_property (klass, property_id_begin++, "partition-slave"); + g_object_class_override_property (klass, property_id_begin++, "partition-scheme"); + g_object_class_override_property (klass, property_id_begin++, "partition-type"); + g_object_class_override_property (klass, property_id_begin++, "partition-label"); + g_object_class_override_property (klass, property_id_begin++, "partition-uuid"); + g_object_class_override_property (klass, property_id_begin++, "partition-flags"); + g_object_class_override_property (klass, property_id_begin++, "partition-number"); + g_object_class_override_property (klass, property_id_begin++, "partition-offset"); + g_object_class_override_property (klass, property_id_begin++, "partition-size"); + g_object_class_override_property (klass, property_id_begin++, "partition-alignment-offset"); + g_object_class_override_property (klass, property_id_begin++, "partition-table-scheme"); + g_object_class_override_property (klass, property_id_begin++, "partition-table-count"); + g_object_class_override_property (klass, property_id_begin++, "drive-vendor"); + g_object_class_override_property (klass, property_id_begin++, "drive-model"); + g_object_class_override_property (klass, property_id_begin++, "drive-revision"); + g_object_class_override_property (klass, property_id_begin++, "drive-serial"); + g_object_class_override_property (klass, property_id_begin++, "drive-wwn"); + g_object_class_override_property (klass, property_id_begin++, "drive-rotation-rate"); + g_object_class_override_property (klass, property_id_begin++, "drive-write-cache"); + g_object_class_override_property (klass, property_id_begin++, "drive-connection-interface"); + g_object_class_override_property (klass, property_id_begin++, "drive-connection-speed"); + g_object_class_override_property (klass, property_id_begin++, "drive-media-compatibility"); + g_object_class_override_property (klass, property_id_begin++, "drive-media"); + g_object_class_override_property (klass, property_id_begin++, "drive-is-media-ejectable"); + g_object_class_override_property (klass, property_id_begin++, "drive-can-detach"); + g_object_class_override_property (klass, property_id_begin++, "drive-can-spindown"); + g_object_class_override_property (klass, property_id_begin++, "drive-is-rotational"); + g_object_class_override_property (klass, property_id_begin++, "drive-adapter"); + g_object_class_override_property (klass, property_id_begin++, "drive-ports"); + g_object_class_override_property (klass, property_id_begin++, "drive-similar-devices"); + g_object_class_override_property (klass, property_id_begin++, "optical-disc-is-blank"); + g_object_class_override_property (klass, property_id_begin++, "optical-disc-is-appendable"); + g_object_class_override_property (klass, property_id_begin++, "optical-disc-is-closed"); + g_object_class_override_property (klass, property_id_begin++, "optical-disc-num-tracks"); + g_object_class_override_property (klass, property_id_begin++, "optical-disc-num-audio-tracks"); + g_object_class_override_property (klass, property_id_begin++, "optical-disc-num-sessions"); + g_object_class_override_property (klass, property_id_begin++, "drive-ata-smart-is-available"); + g_object_class_override_property (klass, property_id_begin++, "drive-ata-smart-time-collected"); + g_object_class_override_property (klass, property_id_begin++, "drive-ata-smart-status"); + g_object_class_override_property (klass, property_id_begin++, "drive-ata-smart-blob"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-level"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-position"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-num-raid-devices"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-uuid"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-name"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-home-host"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-version"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-holder"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-component-state"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-state"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-level"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-uuid"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-home-host"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-name"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-num-raid-devices"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-version"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-slaves"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-is-degraded"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-sync-action"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-sync-percentage"); + g_object_class_override_property (klass, property_id_begin++, "linux-md-sync-speed"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvuuid"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvnum-metadata-areas"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-name"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-uuid"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-size"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-unallocated-size"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-sequence-number"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-extent-size"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-physical-volumes"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-pvgroup-logical-volumes"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-lvname"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-lvuuid"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-lvgroup-name"); + g_object_class_override_property (klass, property_id_begin++, "linux-lvm2-lvgroup-uuid"); + g_object_class_override_property (klass, property_id_begin++, "linux-dmmp-component-holder"); + g_object_class_override_property (klass, property_id_begin++, "linux-dmmp-name"); + g_object_class_override_property (klass, property_id_begin++, "linux-dmmp-slaves"); + g_object_class_override_property (klass, property_id_begin++, "linux-dmmp-parameters"); + g_object_class_override_property (klass, property_id_begin++, "linux-loop-filename"); + return property_id_begin - 1; +} + + + +/** + * OrgFreedesktopUDisksDevice: + * + * Abstract interface type for the D-Bus interface org.freedesktop.UDisks.Device. + */ + +/** + * OrgFreedesktopUDisksDeviceIface: + * @parent_iface: The parent interface. + * @handle_drive_ata_smart_initiate_selftest: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-ata-smart-initiate-selftest signal. + * @handle_drive_ata_smart_refresh_data: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-ata-smart-refresh-data signal. + * @handle_drive_benchmark: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-benchmark signal. + * @handle_drive_detach: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-detach signal. + * @handle_drive_eject: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-eject signal. + * @handle_drive_inhibit_polling: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-inhibit-polling signal. + * @handle_drive_poll_media: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-poll-media signal. + * @handle_drive_set_spindown_timeout: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-set-spindown-timeout signal. + * @handle_drive_uninhibit_polling: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-uninhibit-polling signal. + * @handle_drive_unset_spindown_timeout: Handler for the #OrgFreedesktopUDisksDevice::handle-drive-unset-spindown-timeout signal. + * @handle_filesystem_check: Handler for the #OrgFreedesktopUDisksDevice::handle-filesystem-check signal. + * @handle_filesystem_create: Handler for the #OrgFreedesktopUDisksDevice::handle-filesystem-create signal. + * @handle_filesystem_list_open_files: Handler for the #OrgFreedesktopUDisksDevice::handle-filesystem-list-open-files signal. + * @handle_filesystem_mount: Handler for the #OrgFreedesktopUDisksDevice::handle-filesystem-mount signal. + * @handle_filesystem_set_label: Handler for the #OrgFreedesktopUDisksDevice::handle-filesystem-set-label signal. + * @handle_filesystem_unmount: Handler for the #OrgFreedesktopUDisksDevice::handle-filesystem-unmount signal. + * @handle_job_cancel: Handler for the #OrgFreedesktopUDisksDevice::handle-job-cancel signal. + * @handle_linux_lvm2_lvstop: Handler for the #OrgFreedesktopUDisksDevice::handle-linux-lvm2-lvstop signal. + * @handle_linux_md_add_spare: Handler for the #OrgFreedesktopUDisksDevice::handle-linux-md-add-spare signal. + * @handle_linux_md_check: Handler for the #OrgFreedesktopUDisksDevice::handle-linux-md-check signal. + * @handle_linux_md_expand: Handler for the #OrgFreedesktopUDisksDevice::handle-linux-md-expand signal. + * @handle_linux_md_remove_component: Handler for the #OrgFreedesktopUDisksDevice::handle-linux-md-remove-component signal. + * @handle_linux_md_stop: Handler for the #OrgFreedesktopUDisksDevice::handle-linux-md-stop signal. + * @handle_luks_change_passphrase: Handler for the #OrgFreedesktopUDisksDevice::handle-luks-change-passphrase signal. + * @handle_luks_lock: Handler for the #OrgFreedesktopUDisksDevice::handle-luks-lock signal. + * @handle_luks_unlock: Handler for the #OrgFreedesktopUDisksDevice::handle-luks-unlock signal. + * @handle_partition_create: Handler for the #OrgFreedesktopUDisksDevice::handle-partition-create signal. + * @handle_partition_delete: Handler for the #OrgFreedesktopUDisksDevice::handle-partition-delete signal. + * @handle_partition_modify: Handler for the #OrgFreedesktopUDisksDevice::handle-partition-modify signal. + * @handle_partition_table_create: Handler for the #OrgFreedesktopUDisksDevice::handle-partition-table-create signal. + * @get_device_automount_hint: Getter for the #OrgFreedesktopUDisksDevice:device-automount-hint property. + * @get_device_block_size: Getter for the #OrgFreedesktopUDisksDevice:device-block-size property. + * @get_device_detection_time: Getter for the #OrgFreedesktopUDisksDevice:device-detection-time property. + * @get_device_file: Getter for the #OrgFreedesktopUDisksDevice:device-file property. + * @get_device_file_by_id: Getter for the #OrgFreedesktopUDisksDevice:device-file-by-id property. + * @get_device_file_by_path: Getter for the #OrgFreedesktopUDisksDevice:device-file-by-path property. + * @get_device_file_presentation: Getter for the #OrgFreedesktopUDisksDevice:device-file-presentation property. + * @get_device_is_drive: Getter for the #OrgFreedesktopUDisksDevice:device-is-drive property. + * @get_device_is_linux_dmmp: Getter for the #OrgFreedesktopUDisksDevice:device-is-linux-dmmp property. + * @get_device_is_linux_dmmp_component: Getter for the #OrgFreedesktopUDisksDevice:device-is-linux-dmmp-component property. + * @get_device_is_linux_loop: Getter for the #OrgFreedesktopUDisksDevice:device-is-linux-loop property. + * @get_device_is_linux_lvm2_lv: Getter for the #OrgFreedesktopUDisksDevice:device-is-linux-lvm2-lv property. + * @get_device_is_linux_lvm2_pv: Getter for the #OrgFreedesktopUDisksDevice:device-is-linux-lvm2-pv property. + * @get_device_is_linux_md: Getter for the #OrgFreedesktopUDisksDevice:device-is-linux-md property. + * @get_device_is_linux_md_component: Getter for the #OrgFreedesktopUDisksDevice:device-is-linux-md-component property. + * @get_device_is_luks: Getter for the #OrgFreedesktopUDisksDevice:device-is-luks property. + * @get_device_is_luks_cleartext: Getter for the #OrgFreedesktopUDisksDevice:device-is-luks-cleartext property. + * @get_device_is_media_available: Getter for the #OrgFreedesktopUDisksDevice:device-is-media-available property. + * @get_device_is_media_change_detected: Getter for the #OrgFreedesktopUDisksDevice:device-is-media-change-detected property. + * @get_device_is_media_change_detection_inhibitable: Getter for the #OrgFreedesktopUDisksDevice:device-is-media-change-detection-inhibitable property. + * @get_device_is_media_change_detection_inhibited: Getter for the #OrgFreedesktopUDisksDevice:device-is-media-change-detection-inhibited property. + * @get_device_is_media_change_detection_polling: Getter for the #OrgFreedesktopUDisksDevice:device-is-media-change-detection-polling property. + * @get_device_is_mounted: Getter for the #OrgFreedesktopUDisksDevice:device-is-mounted property. + * @get_device_is_optical_disc: Getter for the #OrgFreedesktopUDisksDevice:device-is-optical-disc property. + * @get_device_is_partition: Getter for the #OrgFreedesktopUDisksDevice:device-is-partition property. + * @get_device_is_partition_table: Getter for the #OrgFreedesktopUDisksDevice:device-is-partition-table property. + * @get_device_is_read_only: Getter for the #OrgFreedesktopUDisksDevice:device-is-read-only property. + * @get_device_is_removable: Getter for the #OrgFreedesktopUDisksDevice:device-is-removable property. + * @get_device_is_system_internal: Getter for the #OrgFreedesktopUDisksDevice:device-is-system-internal property. + * @get_device_major: Getter for the #OrgFreedesktopUDisksDevice:device-major property. + * @get_device_media_detection_time: Getter for the #OrgFreedesktopUDisksDevice:device-media-detection-time property. + * @get_device_minor: Getter for the #OrgFreedesktopUDisksDevice:device-minor property. + * @get_device_mount_paths: Getter for the #OrgFreedesktopUDisksDevice:device-mount-paths property. + * @get_device_mounted_by_uid: Getter for the #OrgFreedesktopUDisksDevice:device-mounted-by-uid property. + * @get_device_presentation_hide: Getter for the #OrgFreedesktopUDisksDevice:device-presentation-hide property. + * @get_device_presentation_icon_name: Getter for the #OrgFreedesktopUDisksDevice:device-presentation-icon-name property. + * @get_device_presentation_name: Getter for the #OrgFreedesktopUDisksDevice:device-presentation-name property. + * @get_device_presentation_nopolicy: Getter for the #OrgFreedesktopUDisksDevice:device-presentation-nopolicy property. + * @get_device_size: Getter for the #OrgFreedesktopUDisksDevice:device-size property. + * @get_drive_adapter: Getter for the #OrgFreedesktopUDisksDevice:drive-adapter property. + * @get_drive_ata_smart_blob: Getter for the #OrgFreedesktopUDisksDevice:drive-ata-smart-blob property. + * @get_drive_ata_smart_is_available: Getter for the #OrgFreedesktopUDisksDevice:drive-ata-smart-is-available property. + * @get_drive_ata_smart_status: Getter for the #OrgFreedesktopUDisksDevice:drive-ata-smart-status property. + * @get_drive_ata_smart_time_collected: Getter for the #OrgFreedesktopUDisksDevice:drive-ata-smart-time-collected property. + * @get_drive_can_detach: Getter for the #OrgFreedesktopUDisksDevice:drive-can-detach property. + * @get_drive_can_spindown: Getter for the #OrgFreedesktopUDisksDevice:drive-can-spindown property. + * @get_drive_connection_interface: Getter for the #OrgFreedesktopUDisksDevice:drive-connection-interface property. + * @get_drive_connection_speed: Getter for the #OrgFreedesktopUDisksDevice:drive-connection-speed property. + * @get_drive_is_media_ejectable: Getter for the #OrgFreedesktopUDisksDevice:drive-is-media-ejectable property. + * @get_drive_is_rotational: Getter for the #OrgFreedesktopUDisksDevice:drive-is-rotational property. + * @get_drive_media: Getter for the #OrgFreedesktopUDisksDevice:drive-media property. + * @get_drive_media_compatibility: Getter for the #OrgFreedesktopUDisksDevice:drive-media-compatibility property. + * @get_drive_model: Getter for the #OrgFreedesktopUDisksDevice:drive-model property. + * @get_drive_ports: Getter for the #OrgFreedesktopUDisksDevice:drive-ports property. + * @get_drive_revision: Getter for the #OrgFreedesktopUDisksDevice:drive-revision property. + * @get_drive_rotation_rate: Getter for the #OrgFreedesktopUDisksDevice:drive-rotation-rate property. + * @get_drive_serial: Getter for the #OrgFreedesktopUDisksDevice:drive-serial property. + * @get_drive_similar_devices: Getter for the #OrgFreedesktopUDisksDevice:drive-similar-devices property. + * @get_drive_vendor: Getter for the #OrgFreedesktopUDisksDevice:drive-vendor property. + * @get_drive_write_cache: Getter for the #OrgFreedesktopUDisksDevice:drive-write-cache property. + * @get_drive_wwn: Getter for the #OrgFreedesktopUDisksDevice:drive-wwn property. + * @get_id_label: Getter for the #OrgFreedesktopUDisksDevice:id-label property. + * @get_id_type: Getter for the #OrgFreedesktopUDisksDevice:id-type property. + * @get_id_usage: Getter for the #OrgFreedesktopUDisksDevice:id-usage property. + * @get_id_uuid: Getter for the #OrgFreedesktopUDisksDevice:id-uuid property. + * @get_id_version: Getter for the #OrgFreedesktopUDisksDevice:id-version property. + * @get_job_id: Getter for the #OrgFreedesktopUDisksDevice:job-id property. + * @get_job_in_progress: Getter for the #OrgFreedesktopUDisksDevice:job-in-progress property. + * @get_job_initiated_by_uid: Getter for the #OrgFreedesktopUDisksDevice:job-initiated-by-uid property. + * @get_job_is_cancellable: Getter for the #OrgFreedesktopUDisksDevice:job-is-cancellable property. + * @get_job_percentage: Getter for the #OrgFreedesktopUDisksDevice:job-percentage property. + * @get_linux_dmmp_component_holder: Getter for the #OrgFreedesktopUDisksDevice:linux-dmmp-component-holder property. + * @get_linux_dmmp_name: Getter for the #OrgFreedesktopUDisksDevice:linux-dmmp-name property. + * @get_linux_dmmp_parameters: Getter for the #OrgFreedesktopUDisksDevice:linux-dmmp-parameters property. + * @get_linux_dmmp_slaves: Getter for the #OrgFreedesktopUDisksDevice:linux-dmmp-slaves property. + * @get_linux_loop_filename: Getter for the #OrgFreedesktopUDisksDevice:linux-loop-filename property. + * @get_linux_lvm2_lvgroup_name: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-lvgroup-name property. + * @get_linux_lvm2_lvgroup_uuid: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-lvgroup-uuid property. + * @get_linux_lvm2_lvname: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-lvname property. + * @get_linux_lvm2_lvuuid: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-lvuuid property. + * @get_linux_lvm2_pvgroup_extent_size: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-extent-size property. + * @get_linux_lvm2_pvgroup_logical_volumes: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-logical-volumes property. + * @get_linux_lvm2_pvgroup_name: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-name property. + * @get_linux_lvm2_pvgroup_physical_volumes: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-physical-volumes property. + * @get_linux_lvm2_pvgroup_sequence_number: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-sequence-number property. + * @get_linux_lvm2_pvgroup_size: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-size property. + * @get_linux_lvm2_pvgroup_unallocated_size: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-unallocated-size property. + * @get_linux_lvm2_pvgroup_uuid: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-uuid property. + * @get_linux_lvm2_pvnum_metadata_areas: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvnum-metadata-areas property. + * @get_linux_lvm2_pvuuid: Getter for the #OrgFreedesktopUDisksDevice:linux-lvm2-pvuuid property. + * @get_linux_md_component_holder: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-holder property. + * @get_linux_md_component_home_host: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-home-host property. + * @get_linux_md_component_level: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-level property. + * @get_linux_md_component_name: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-name property. + * @get_linux_md_component_num_raid_devices: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-num-raid-devices property. + * @get_linux_md_component_position: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-position property. + * @get_linux_md_component_state: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-state property. + * @get_linux_md_component_uuid: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-uuid property. + * @get_linux_md_component_version: Getter for the #OrgFreedesktopUDisksDevice:linux-md-component-version property. + * @get_linux_md_home_host: Getter for the #OrgFreedesktopUDisksDevice:linux-md-home-host property. + * @get_linux_md_is_degraded: Getter for the #OrgFreedesktopUDisksDevice:linux-md-is-degraded property. + * @get_linux_md_level: Getter for the #OrgFreedesktopUDisksDevice:linux-md-level property. + * @get_linux_md_name: Getter for the #OrgFreedesktopUDisksDevice:linux-md-name property. + * @get_linux_md_num_raid_devices: Getter for the #OrgFreedesktopUDisksDevice:linux-md-num-raid-devices property. + * @get_linux_md_slaves: Getter for the #OrgFreedesktopUDisksDevice:linux-md-slaves property. + * @get_linux_md_state: Getter for the #OrgFreedesktopUDisksDevice:linux-md-state property. + * @get_linux_md_sync_action: Getter for the #OrgFreedesktopUDisksDevice:linux-md-sync-action property. + * @get_linux_md_sync_percentage: Getter for the #OrgFreedesktopUDisksDevice:linux-md-sync-percentage property. + * @get_linux_md_sync_speed: Getter for the #OrgFreedesktopUDisksDevice:linux-md-sync-speed property. + * @get_linux_md_uuid: Getter for the #OrgFreedesktopUDisksDevice:linux-md-uuid property. + * @get_linux_md_version: Getter for the #OrgFreedesktopUDisksDevice:linux-md-version property. + * @get_luks_cleartext_slave: Getter for the #OrgFreedesktopUDisksDevice:luks-cleartext-slave property. + * @get_luks_cleartext_unlocked_by_uid: Getter for the #OrgFreedesktopUDisksDevice:luks-cleartext-unlocked-by-uid property. + * @get_luks_holder: Getter for the #OrgFreedesktopUDisksDevice:luks-holder property. + * @get_native_path: Getter for the #OrgFreedesktopUDisksDevice:native-path property. + * @get_optical_disc_is_appendable: Getter for the #OrgFreedesktopUDisksDevice:optical-disc-is-appendable property. + * @get_optical_disc_is_blank: Getter for the #OrgFreedesktopUDisksDevice:optical-disc-is-blank property. + * @get_optical_disc_is_closed: Getter for the #OrgFreedesktopUDisksDevice:optical-disc-is-closed property. + * @get_optical_disc_num_audio_tracks: Getter for the #OrgFreedesktopUDisksDevice:optical-disc-num-audio-tracks property. + * @get_optical_disc_num_sessions: Getter for the #OrgFreedesktopUDisksDevice:optical-disc-num-sessions property. + * @get_optical_disc_num_tracks: Getter for the #OrgFreedesktopUDisksDevice:optical-disc-num-tracks property. + * @get_partition_alignment_offset: Getter for the #OrgFreedesktopUDisksDevice:partition-alignment-offset property. + * @get_partition_flags: Getter for the #OrgFreedesktopUDisksDevice:partition-flags property. + * @get_partition_label: Getter for the #OrgFreedesktopUDisksDevice:partition-label property. + * @get_partition_number: Getter for the #OrgFreedesktopUDisksDevice:partition-number property. + * @get_partition_offset: Getter for the #OrgFreedesktopUDisksDevice:partition-offset property. + * @get_partition_scheme: Getter for the #OrgFreedesktopUDisksDevice:partition-scheme property. + * @get_partition_size: Getter for the #OrgFreedesktopUDisksDevice:partition-size property. + * @get_partition_slave: Getter for the #OrgFreedesktopUDisksDevice:partition-slave property. + * @get_partition_table_count: Getter for the #OrgFreedesktopUDisksDevice:partition-table-count property. + * @get_partition_table_scheme: Getter for the #OrgFreedesktopUDisksDevice:partition-table-scheme property. + * @get_partition_type: Getter for the #OrgFreedesktopUDisksDevice:partition-type property. + * @get_partition_uuid: Getter for the #OrgFreedesktopUDisksDevice:partition-uuid property. + * @changed: Handler for the #OrgFreedesktopUDisksDevice::changed signal. + * @job_changed: Handler for the #OrgFreedesktopUDisksDevice::job-changed signal. + * + * Virtual table for the D-Bus interface org.freedesktop.UDisks.Device. + */ + +static void +org_freedesktop_udisks_device_default_init (OrgFreedesktopUDisksDeviceIface *iface) +{ + /* GObject signals for incoming D-Bus method calls: */ + /** + * OrgFreedesktopUDisksDevice::handle-job-cancel: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the JobCancel() D-Bus method. + * + * 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_device_complete_job_cancel() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-job-cancel", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_job_cancel), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisksDevice::handle-partition-table-create: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_scheme: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the PartitionTableCreate() D-Bus method. + * + * 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_device_complete_partition_table_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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-partition-table-create", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_partition_table_create), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-partition-delete: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the PartitionDelete() D-Bus method. + * + * 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_device_complete_partition_delete() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-partition-delete", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_partition_delete), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-partition-create: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_offset: Argument passed by remote caller. + * @arg_size: Argument passed by remote caller. + * @arg_type: Argument passed by remote caller. + * @arg_label: Argument passed by remote caller. + * @arg_flags: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * @arg_fstype: Argument passed by remote caller. + * @arg_fsoptions: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the PartitionCreate() D-Bus method. + * + * 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_device_complete_partition_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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-partition-create", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_partition_create), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 9, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64, G_TYPE_UINT64, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-partition-modify: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_type: Argument passed by remote caller. + * @arg_label: Argument passed by remote caller. + * @arg_flags: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the PartitionModify() D-Bus method. + * + * 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_device_complete_partition_modify() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-partition-modify", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_partition_modify), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 4, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-filesystem-create: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_fstype: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the FilesystemCreate() D-Bus method. + * + * 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_device_complete_filesystem_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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-filesystem-create", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_filesystem_create), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-filesystem-set-label: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_new_label: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the FilesystemSetLabel() D-Bus method. + * + * 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_device_complete_filesystem_set_label() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-filesystem-set-label", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_filesystem_set_label), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisksDevice::handle-filesystem-mount: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_filesystem_type: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the FilesystemMount() D-Bus method. + * + * 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_device_complete_filesystem_mount() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-filesystem-mount", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_filesystem_mount), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-filesystem-unmount: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the FilesystemUnmount() D-Bus method. + * + * 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_device_complete_filesystem_unmount() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-filesystem-unmount", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_filesystem_unmount), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-filesystem-check: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the FilesystemCheck() D-Bus method. + * + * 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_device_complete_filesystem_check() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-filesystem-check", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_filesystem_check), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-filesystem-list-open-files: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the FilesystemListOpenFiles() D-Bus method. + * + * 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_device_complete_filesystem_list_open_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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-filesystem-list-open-files", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_filesystem_list_open_files), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisksDevice::handle-luks-unlock: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_passphrase: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LuksUnlock() D-Bus method. + * + * 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_device_complete_luks_unlock() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-luks-unlock", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_luks_unlock), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-luks-lock: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LuksLock() D-Bus method. + * + * 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_device_complete_luks_lock() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-luks-lock", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_luks_lock), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-luks-change-passphrase: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_current_passphrase: Argument passed by remote caller. + * @arg_new_passphrase: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LuksChangePassphrase() D-Bus method. + * + * 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_device_complete_luks_change_passphrase() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-luks-change-passphrase", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_luks_change_passphrase), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisksDevice::handle-linux-md-add-spare: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_component: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxMdAddSpare() D-Bus method. + * + * 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_device_complete_linux_md_add_spare() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-md-add-spare", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_linux_md_add_spare), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-linux-md-expand: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_components: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxMdExpand() D-Bus method. + * + * 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_device_complete_linux_md_expand() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-md-expand", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_linux_md_expand), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-linux-md-remove-component: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_component: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxMdRemoveComponent() D-Bus method. + * + * 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_device_complete_linux_md_remove_component() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-md-remove-component", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_linux_md_remove_component), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-linux-md-stop: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxMdStop() D-Bus method. + * + * 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_device_complete_linux_md_stop() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-md-stop", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_linux_md_stop), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-linux-lvm2-lvstop: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2LVStop() D-Bus method. + * + * 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_device_complete_linux_lvm2_lvstop() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-lvstop", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_linux_lvm2_lvstop), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-linux-md-check: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxMdCheck() D-Bus method. + * + * 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_device_complete_linux_md_check() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-md-check", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_linux_md_check), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-inhibit-polling: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveInhibitPolling() D-Bus method. + * + * 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_device_complete_drive_inhibit_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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-inhibit-polling", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_inhibit_polling), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-uninhibit-polling: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_cookie: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveUninhibitPolling() D-Bus method. + * + * 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_device_complete_drive_uninhibit_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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-uninhibit-polling", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_uninhibit_polling), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-poll-media: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the DrivePollMedia() D-Bus method. + * + * 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_device_complete_drive_poll_media() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-poll-media", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_poll_media), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-eject: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveEject() D-Bus method. + * + * 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_device_complete_drive_eject() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-eject", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_eject), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-detach: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveDetach() D-Bus method. + * + * 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_device_complete_drive_detach() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-detach", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_detach), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-set-spindown-timeout: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_timeout_seconds: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveSetSpindownTimeout() D-Bus method. + * + * 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_device_complete_drive_set_spindown_timeout() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-set-spindown-timeout", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_set_spindown_timeout), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-unset-spindown-timeout: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_cookie: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveUnsetSpindownTimeout() D-Bus method. + * + * 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_device_complete_drive_unset_spindown_timeout() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-unset-spindown-timeout", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_unset_spindown_timeout), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-ata-smart-refresh-data: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveAtaSmartRefreshData() D-Bus method. + * + * 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_device_complete_drive_ata_smart_refresh_data() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-ata-smart-refresh-data", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_ata_smart_refresh_data), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-ata-smart-initiate-selftest: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_test: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveAtaSmartInitiateSelftest() D-Bus method. + * + * 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_device_complete_drive_ata_smart_initiate_selftest() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-ata-smart-initiate-selftest", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_ata_smart_initiate_selftest), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisksDevice::handle-drive-benchmark: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: A #GDBusMethodInvocation. + * @arg_do_write_benchmark: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveBenchmark() D-Bus method. + * + * 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_device_complete_drive_benchmark() 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-benchmark", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, handle_drive_benchmark), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN, G_TYPE_STRV); + + /* GObject signals for received D-Bus signals: */ + /** + * OrgFreedesktopUDisksDevice::changed: + * @object: A #OrgFreedesktopUDisksDevice. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "Changed" is received. + * + * 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. + */ + g_signal_new ("changed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, changed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 0); + + /** + * OrgFreedesktopUDisksDevice::job-changed: + * @object: A #OrgFreedesktopUDisksDevice. + * @arg_job_in_progress: Argument. + * @arg_job_is_cancellable: Argument. + * @arg_job_id: Argument. + * @arg_job_initiated_by_uid: Argument. + * @arg_job_percentage: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "JobChanged" is received. + * + * 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. + */ + g_signal_new ("job-changed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksDeviceIface, job_changed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 5, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_DOUBLE); + + /* GObject properties for D-Bus properties: */ + /** + * OrgFreedesktopUDisksDevice:native-path: + * + * Represents the D-Bus property "NativePath". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("native-path", "NativePath", "NativePath", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-detection-time: + * + * Represents the D-Bus property "DeviceDetectionTime". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("device-detection-time", "DeviceDetectionTime", "DeviceDetectionTime", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-media-detection-time: + * + * Represents the D-Bus property "DeviceMediaDetectionTime". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("device-media-detection-time", "DeviceMediaDetectionTime", "DeviceMediaDetectionTime", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-major: + * + * Represents the D-Bus property "DeviceMajor". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_int64 ("device-major", "DeviceMajor", "DeviceMajor", G_MININT64, G_MAXINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-minor: + * + * Represents the D-Bus property "DeviceMinor". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_int64 ("device-minor", "DeviceMinor", "DeviceMinor", G_MININT64, G_MAXINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-file: + * + * Represents the D-Bus property "DeviceFile". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("device-file", "DeviceFile", "DeviceFile", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-file-presentation: + * + * Represents the D-Bus property "DeviceFilePresentation". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("device-file-presentation", "DeviceFilePresentation", "DeviceFilePresentation", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-file-by-id: + * + * Represents the D-Bus property "DeviceFileById". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("device-file-by-id", "DeviceFileById", "DeviceFileById", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-file-by-path: + * + * Represents the D-Bus property "DeviceFileByPath". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("device-file-by-path", "DeviceFileByPath", "DeviceFileByPath", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-system-internal: + * + * Represents the D-Bus property "DeviceIsSystemInternal". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-system-internal", "DeviceIsSystemInternal", "DeviceIsSystemInternal", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-partition: + * + * Represents the D-Bus property "DeviceIsPartition". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-partition", "DeviceIsPartition", "DeviceIsPartition", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-partition-table: + * + * Represents the D-Bus property "DeviceIsPartitionTable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-partition-table", "DeviceIsPartitionTable", "DeviceIsPartitionTable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-removable: + * + * Represents the D-Bus property "DeviceIsRemovable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-removable", "DeviceIsRemovable", "DeviceIsRemovable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-media-available: + * + * Represents the D-Bus property "DeviceIsMediaAvailable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-media-available", "DeviceIsMediaAvailable", "DeviceIsMediaAvailable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-media-change-detected: + * + * Represents the D-Bus property "DeviceIsMediaChangeDetected". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-media-change-detected", "DeviceIsMediaChangeDetected", "DeviceIsMediaChangeDetected", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-media-change-detection-polling: + * + * Represents the D-Bus property "DeviceIsMediaChangeDetectionPolling". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-media-change-detection-polling", "DeviceIsMediaChangeDetectionPolling", "DeviceIsMediaChangeDetectionPolling", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-media-change-detection-inhibitable: + * + * Represents the D-Bus property "DeviceIsMediaChangeDetectionInhibitable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-media-change-detection-inhibitable", "DeviceIsMediaChangeDetectionInhibitable", "DeviceIsMediaChangeDetectionInhibitable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-media-change-detection-inhibited: + * + * Represents the D-Bus property "DeviceIsMediaChangeDetectionInhibited". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-media-change-detection-inhibited", "DeviceIsMediaChangeDetectionInhibited", "DeviceIsMediaChangeDetectionInhibited", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-read-only: + * + * Represents the D-Bus property "DeviceIsReadOnly". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-read-only", "DeviceIsReadOnly", "DeviceIsReadOnly", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-drive: + * + * Represents the D-Bus property "DeviceIsDrive". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-drive", "DeviceIsDrive", "DeviceIsDrive", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-optical-disc: + * + * Represents the D-Bus property "DeviceIsOpticalDisc". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-optical-disc", "DeviceIsOpticalDisc", "DeviceIsOpticalDisc", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-mounted: + * + * Represents the D-Bus property "DeviceIsMounted". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-mounted", "DeviceIsMounted", "DeviceIsMounted", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-mount-paths: + * + * Represents the D-Bus property "DeviceMountPaths". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("device-mount-paths", "DeviceMountPaths", "DeviceMountPaths", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-mounted-by-uid: + * + * Represents the D-Bus property "DeviceMountedByUid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("device-mounted-by-uid", "DeviceMountedByUid", "DeviceMountedByUid", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-luks: + * + * Represents the D-Bus property "DeviceIsLuks". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-luks", "DeviceIsLuks", "DeviceIsLuks", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-luks-cleartext: + * + * Represents the D-Bus property "DeviceIsLuksCleartext". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-luks-cleartext", "DeviceIsLuksCleartext", "DeviceIsLuksCleartext", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-linux-md-component: + * + * Represents the D-Bus property "DeviceIsLinuxMdComponent". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-linux-md-component", "DeviceIsLinuxMdComponent", "DeviceIsLinuxMdComponent", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-linux-md: + * + * Represents the D-Bus property "DeviceIsLinuxMd". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-linux-md", "DeviceIsLinuxMd", "DeviceIsLinuxMd", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-linux-lvm2-lv: + * + * Represents the D-Bus property "DeviceIsLinuxLvm2LV". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-linux-lvm2-lv", "DeviceIsLinuxLvm2LV", "DeviceIsLinuxLvm2LV", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-linux-lvm2-pv: + * + * Represents the D-Bus property "DeviceIsLinuxLvm2PV". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-linux-lvm2-pv", "DeviceIsLinuxLvm2PV", "DeviceIsLinuxLvm2PV", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-linux-dmmp-component: + * + * Represents the D-Bus property "DeviceIsLinuxDmmpComponent". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-linux-dmmp-component", "DeviceIsLinuxDmmpComponent", "DeviceIsLinuxDmmpComponent", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-linux-dmmp: + * + * Represents the D-Bus property "DeviceIsLinuxDmmp". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-linux-dmmp", "DeviceIsLinuxDmmp", "DeviceIsLinuxDmmp", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-is-linux-loop: + * + * Represents the D-Bus property "DeviceIsLinuxLoop". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-is-linux-loop", "DeviceIsLinuxLoop", "DeviceIsLinuxLoop", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-size: + * + * Represents the D-Bus property "DeviceSize". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("device-size", "DeviceSize", "DeviceSize", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-block-size: + * + * Represents the D-Bus property "DeviceBlockSize". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("device-block-size", "DeviceBlockSize", "DeviceBlockSize", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-presentation-hide: + * + * Represents the D-Bus property "DevicePresentationHide". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-presentation-hide", "DevicePresentationHide", "DevicePresentationHide", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-presentation-nopolicy: + * + * Represents the D-Bus property "DevicePresentationNopolicy". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("device-presentation-nopolicy", "DevicePresentationNopolicy", "DevicePresentationNopolicy", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-presentation-name: + * + * Represents the D-Bus property "DevicePresentationName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("device-presentation-name", "DevicePresentationName", "DevicePresentationName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-presentation-icon-name: + * + * Represents the D-Bus property "DevicePresentationIconName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("device-presentation-icon-name", "DevicePresentationIconName", "DevicePresentationIconName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:device-automount-hint: + * + * Represents the D-Bus property "DeviceAutomountHint". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("device-automount-hint", "DeviceAutomountHint", "DeviceAutomountHint", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:job-in-progress: + * + * Represents the D-Bus property "JobInProgress". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("job-in-progress", "JobInProgress", "JobInProgress", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:job-id: + * + * Represents the D-Bus property "JobId". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("job-id", "JobId", "JobId", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:job-initiated-by-uid: + * + * Represents the D-Bus property "JobInitiatedByUid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("job-initiated-by-uid", "JobInitiatedByUid", "JobInitiatedByUid", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:job-is-cancellable: + * + * Represents the D-Bus property "JobIsCancellable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("job-is-cancellable", "JobIsCancellable", "JobIsCancellable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:job-percentage: + * + * Represents the D-Bus property "JobPercentage". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_double ("job-percentage", "JobPercentage", "JobPercentage", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:id-usage: + * + * Represents the D-Bus property "IdUsage". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("id-usage", "IdUsage", "IdUsage", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:id-type: + * + * Represents the D-Bus property "IdType". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("id-type", "IdType", "IdType", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:id-version: + * + * Represents the D-Bus property "IdVersion". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("id-version", "IdVersion", "IdVersion", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:id-uuid: + * + * Represents the D-Bus property "IdUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("id-uuid", "IdUuid", "IdUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:id-label: + * + * Represents the D-Bus property "IdLabel". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("id-label", "IdLabel", "IdLabel", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:luks-holder: + * + * Represents the D-Bus property "LuksHolder". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("luks-holder", "LuksHolder", "LuksHolder", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:luks-cleartext-slave: + * + * Represents the D-Bus property "LuksCleartextSlave". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("luks-cleartext-slave", "LuksCleartextSlave", "LuksCleartextSlave", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:luks-cleartext-unlocked-by-uid: + * + * Represents the D-Bus property "LuksCleartextUnlockedByUid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("luks-cleartext-unlocked-by-uid", "LuksCleartextUnlockedByUid", "LuksCleartextUnlockedByUid", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-slave: + * + * Represents the D-Bus property "PartitionSlave". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("partition-slave", "PartitionSlave", "PartitionSlave", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-scheme: + * + * Represents the D-Bus property "PartitionScheme". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("partition-scheme", "PartitionScheme", "PartitionScheme", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-type: + * + * Represents the D-Bus property "PartitionType". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("partition-type", "PartitionType", "PartitionType", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-label: + * + * Represents the D-Bus property "PartitionLabel". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("partition-label", "PartitionLabel", "PartitionLabel", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-uuid: + * + * Represents the D-Bus property "PartitionUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("partition-uuid", "PartitionUuid", "PartitionUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-flags: + * + * Represents the D-Bus property "PartitionFlags". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("partition-flags", "PartitionFlags", "PartitionFlags", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-number: + * + * Represents the D-Bus property "PartitionNumber". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_int ("partition-number", "PartitionNumber", "PartitionNumber", G_MININT32, G_MAXINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-offset: + * + * Represents the D-Bus property "PartitionOffset". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("partition-offset", "PartitionOffset", "PartitionOffset", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-size: + * + * Represents the D-Bus property "PartitionSize". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("partition-size", "PartitionSize", "PartitionSize", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-alignment-offset: + * + * Represents the D-Bus property "PartitionAlignmentOffset". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("partition-alignment-offset", "PartitionAlignmentOffset", "PartitionAlignmentOffset", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-table-scheme: + * + * Represents the D-Bus property "PartitionTableScheme". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("partition-table-scheme", "PartitionTableScheme", "PartitionTableScheme", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:partition-table-count: + * + * Represents the D-Bus property "PartitionTableCount". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_int ("partition-table-count", "PartitionTableCount", "PartitionTableCount", G_MININT32, G_MAXINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-vendor: + * + * Represents the D-Bus property "DriveVendor". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-vendor", "DriveVendor", "DriveVendor", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-model: + * + * Represents the D-Bus property "DriveModel". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-model", "DriveModel", "DriveModel", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-revision: + * + * Represents the D-Bus property "DriveRevision". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-revision", "DriveRevision", "DriveRevision", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-serial: + * + * Represents the D-Bus property "DriveSerial". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-serial", "DriveSerial", "DriveSerial", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-wwn: + * + * Represents the D-Bus property "DriveWwn". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-wwn", "DriveWwn", "DriveWwn", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-rotation-rate: + * + * Represents the D-Bus property "DriveRotationRate". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("drive-rotation-rate", "DriveRotationRate", "DriveRotationRate", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-write-cache: + * + * Represents the D-Bus property "DriveWriteCache". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-write-cache", "DriveWriteCache", "DriveWriteCache", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-connection-interface: + * + * Represents the D-Bus property "DriveConnectionInterface". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-connection-interface", "DriveConnectionInterface", "DriveConnectionInterface", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-connection-speed: + * + * Represents the D-Bus property "DriveConnectionSpeed". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("drive-connection-speed", "DriveConnectionSpeed", "DriveConnectionSpeed", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-media-compatibility: + * + * Represents the D-Bus property "DriveMediaCompatibility". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("drive-media-compatibility", "DriveMediaCompatibility", "DriveMediaCompatibility", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-media: + * + * Represents the D-Bus property "DriveMedia". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-media", "DriveMedia", "DriveMedia", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-is-media-ejectable: + * + * Represents the D-Bus property "DriveIsMediaEjectable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("drive-is-media-ejectable", "DriveIsMediaEjectable", "DriveIsMediaEjectable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-can-detach: + * + * Represents the D-Bus property "DriveCanDetach". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("drive-can-detach", "DriveCanDetach", "DriveCanDetach", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-can-spindown: + * + * Represents the D-Bus property "DriveCanSpindown". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("drive-can-spindown", "DriveCanSpindown", "DriveCanSpindown", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-is-rotational: + * + * Represents the D-Bus property "DriveIsRotational". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("drive-is-rotational", "DriveIsRotational", "DriveIsRotational", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-adapter: + * + * Represents the D-Bus property "DriveAdapter". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-adapter", "DriveAdapter", "DriveAdapter", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-ports: + * + * Represents the D-Bus property "DrivePorts". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("drive-ports", "DrivePorts", "DrivePorts", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-similar-devices: + * + * Represents the D-Bus property "DriveSimilarDevices". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("drive-similar-devices", "DriveSimilarDevices", "DriveSimilarDevices", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:optical-disc-is-blank: + * + * Represents the D-Bus property "OpticalDiscIsBlank". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("optical-disc-is-blank", "OpticalDiscIsBlank", "OpticalDiscIsBlank", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:optical-disc-is-appendable: + * + * Represents the D-Bus property "OpticalDiscIsAppendable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("optical-disc-is-appendable", "OpticalDiscIsAppendable", "OpticalDiscIsAppendable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:optical-disc-is-closed: + * + * Represents the D-Bus property "OpticalDiscIsClosed". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("optical-disc-is-closed", "OpticalDiscIsClosed", "OpticalDiscIsClosed", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:optical-disc-num-tracks: + * + * Represents the D-Bus property "OpticalDiscNumTracks". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("optical-disc-num-tracks", "OpticalDiscNumTracks", "OpticalDiscNumTracks", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:optical-disc-num-audio-tracks: + * + * Represents the D-Bus property "OpticalDiscNumAudioTracks". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("optical-disc-num-audio-tracks", "OpticalDiscNumAudioTracks", "OpticalDiscNumAudioTracks", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:optical-disc-num-sessions: + * + * Represents the D-Bus property "OpticalDiscNumSessions". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("optical-disc-num-sessions", "OpticalDiscNumSessions", "OpticalDiscNumSessions", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-ata-smart-is-available: + * + * Represents the D-Bus property "DriveAtaSmartIsAvailable". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("drive-ata-smart-is-available", "DriveAtaSmartIsAvailable", "DriveAtaSmartIsAvailable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-ata-smart-time-collected: + * + * Represents the D-Bus property "DriveAtaSmartTimeCollected". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("drive-ata-smart-time-collected", "DriveAtaSmartTimeCollected", "DriveAtaSmartTimeCollected", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-ata-smart-status: + * + * Represents the D-Bus property "DriveAtaSmartStatus". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-ata-smart-status", "DriveAtaSmartStatus", "DriveAtaSmartStatus", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:drive-ata-smart-blob: + * + * Represents the D-Bus property "DriveAtaSmartBlob". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("drive-ata-smart-blob", "DriveAtaSmartBlob", "DriveAtaSmartBlob", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-level: + * + * Represents the D-Bus property "LinuxMdComponentLevel". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-component-level", "LinuxMdComponentLevel", "LinuxMdComponentLevel", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-position: + * + * Represents the D-Bus property "LinuxMdComponentPosition". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_int ("linux-md-component-position", "LinuxMdComponentPosition", "LinuxMdComponentPosition", G_MININT32, G_MAXINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-num-raid-devices: + * + * Represents the D-Bus property "LinuxMdComponentNumRaidDevices". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_int ("linux-md-component-num-raid-devices", "LinuxMdComponentNumRaidDevices", "LinuxMdComponentNumRaidDevices", G_MININT32, G_MAXINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-uuid: + * + * Represents the D-Bus property "LinuxMdComponentUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-component-uuid", "LinuxMdComponentUuid", "LinuxMdComponentUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-name: + * + * Represents the D-Bus property "LinuxMdComponentName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-component-name", "LinuxMdComponentName", "LinuxMdComponentName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-home-host: + * + * Represents the D-Bus property "LinuxMdComponentHomeHost". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-component-home-host", "LinuxMdComponentHomeHost", "LinuxMdComponentHomeHost", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-version: + * + * Represents the D-Bus property "LinuxMdComponentVersion". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-component-version", "LinuxMdComponentVersion", "LinuxMdComponentVersion", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-holder: + * + * Represents the D-Bus property "LinuxMdComponentHolder". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-component-holder", "LinuxMdComponentHolder", "LinuxMdComponentHolder", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-component-state: + * + * Represents the D-Bus property "LinuxMdComponentState". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("linux-md-component-state", "LinuxMdComponentState", "LinuxMdComponentState", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-state: + * + * Represents the D-Bus property "LinuxMdState". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-state", "LinuxMdState", "LinuxMdState", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-level: + * + * Represents the D-Bus property "LinuxMdLevel". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-level", "LinuxMdLevel", "LinuxMdLevel", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-uuid: + * + * Represents the D-Bus property "LinuxMdUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-uuid", "LinuxMdUuid", "LinuxMdUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-home-host: + * + * Represents the D-Bus property "LinuxMdHomeHost". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-home-host", "LinuxMdHomeHost", "LinuxMdHomeHost", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-name: + * + * Represents the D-Bus property "LinuxMdName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-name", "LinuxMdName", "LinuxMdName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-num-raid-devices: + * + * Represents the D-Bus property "LinuxMdNumRaidDevices". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_int ("linux-md-num-raid-devices", "LinuxMdNumRaidDevices", "LinuxMdNumRaidDevices", G_MININT32, G_MAXINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-version: + * + * Represents the D-Bus property "LinuxMdVersion". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-version", "LinuxMdVersion", "LinuxMdVersion", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-slaves: + * + * Represents the D-Bus property "LinuxMdSlaves". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("linux-md-slaves", "LinuxMdSlaves", "LinuxMdSlaves", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-is-degraded: + * + * Represents the D-Bus property "LinuxMdIsDegraded". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("linux-md-is-degraded", "LinuxMdIsDegraded", "LinuxMdIsDegraded", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-sync-action: + * + * Represents the D-Bus property "LinuxMdSyncAction". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-md-sync-action", "LinuxMdSyncAction", "LinuxMdSyncAction", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-sync-percentage: + * + * Represents the D-Bus property "LinuxMdSyncPercentage". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_double ("linux-md-sync-percentage", "LinuxMdSyncPercentage", "LinuxMdSyncPercentage", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-md-sync-speed: + * + * Represents the D-Bus property "LinuxMdSyncSpeed". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("linux-md-sync-speed", "LinuxMdSyncSpeed", "LinuxMdSyncSpeed", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvuuid: + * + * Represents the D-Bus property "LinuxLvm2PVUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-lvm2-pvuuid", "LinuxLvm2PVUuid", "LinuxLvm2PVUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvnum-metadata-areas: + * + * Represents the D-Bus property "LinuxLvm2PVNumMetadataAreas". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint ("linux-lvm2-pvnum-metadata-areas", "LinuxLvm2PVNumMetadataAreas", "LinuxLvm2PVNumMetadataAreas", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-name: + * + * Represents the D-Bus property "LinuxLvm2PVGroupName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-lvm2-pvgroup-name", "LinuxLvm2PVGroupName", "LinuxLvm2PVGroupName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-uuid: + * + * Represents the D-Bus property "LinuxLvm2PVGroupUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-lvm2-pvgroup-uuid", "LinuxLvm2PVGroupUuid", "LinuxLvm2PVGroupUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-size: + * + * Represents the D-Bus property "LinuxLvm2PVGroupSize". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("linux-lvm2-pvgroup-size", "LinuxLvm2PVGroupSize", "LinuxLvm2PVGroupSize", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-unallocated-size: + * + * Represents the D-Bus property "LinuxLvm2PVGroupUnallocatedSize". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("linux-lvm2-pvgroup-unallocated-size", "LinuxLvm2PVGroupUnallocatedSize", "LinuxLvm2PVGroupUnallocatedSize", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-sequence-number: + * + * Represents the D-Bus property "LinuxLvm2PVGroupSequenceNumber". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("linux-lvm2-pvgroup-sequence-number", "LinuxLvm2PVGroupSequenceNumber", "LinuxLvm2PVGroupSequenceNumber", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-extent-size: + * + * Represents the D-Bus property "LinuxLvm2PVGroupExtentSize". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_uint64 ("linux-lvm2-pvgroup-extent-size", "LinuxLvm2PVGroupExtentSize", "LinuxLvm2PVGroupExtentSize", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-physical-volumes: + * + * Represents the D-Bus property "LinuxLvm2PVGroupPhysicalVolumes". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("linux-lvm2-pvgroup-physical-volumes", "LinuxLvm2PVGroupPhysicalVolumes", "LinuxLvm2PVGroupPhysicalVolumes", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-pvgroup-logical-volumes: + * + * Represents the D-Bus property "LinuxLvm2PVGroupLogicalVolumes". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("linux-lvm2-pvgroup-logical-volumes", "LinuxLvm2PVGroupLogicalVolumes", "LinuxLvm2PVGroupLogicalVolumes", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-lvname: + * + * Represents the D-Bus property "LinuxLvm2LVName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-lvm2-lvname", "LinuxLvm2LVName", "LinuxLvm2LVName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-lvuuid: + * + * Represents the D-Bus property "LinuxLvm2LVUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-lvm2-lvuuid", "LinuxLvm2LVUuid", "LinuxLvm2LVUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-lvgroup-name: + * + * Represents the D-Bus property "LinuxLvm2LVGroupName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-lvm2-lvgroup-name", "LinuxLvm2LVGroupName", "LinuxLvm2LVGroupName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-lvm2-lvgroup-uuid: + * + * Represents the D-Bus property "LinuxLvm2LVGroupUuid". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-lvm2-lvgroup-uuid", "LinuxLvm2LVGroupUuid", "LinuxLvm2LVGroupUuid", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-dmmp-component-holder: + * + * Represents the D-Bus property "LinuxDmmpComponentHolder". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-dmmp-component-holder", "LinuxDmmpComponentHolder", "LinuxDmmpComponentHolder", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-dmmp-name: + * + * Represents the D-Bus property "LinuxDmmpName". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-dmmp-name", "LinuxDmmpName", "LinuxDmmpName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-dmmp-slaves: + * + * Represents the D-Bus property "LinuxDmmpSlaves". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boxed ("linux-dmmp-slaves", "LinuxDmmpSlaves", "LinuxDmmpSlaves", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-dmmp-parameters: + * + * Represents the D-Bus property "LinuxDmmpParameters". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-dmmp-parameters", "LinuxDmmpParameters", "LinuxDmmpParameters", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisksDevice:linux-loop-filename: + * + * Represents the D-Bus property "LinuxLoopFilename". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("linux-loop-filename", "LinuxLoopFilename", "LinuxLoopFilename", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); +} + +typedef OrgFreedesktopUDisksDeviceIface OrgFreedesktopUDisksDeviceInterface; +G_DEFINE_INTERFACE (OrgFreedesktopUDisksDevice, org_freedesktop_udisks_device, G_TYPE_OBJECT); + +/** + * org_freedesktop_udisks_device_get_native_path: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "NativePath" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_native_path() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_native_path (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_native_path (object); +} + +/** + * org_freedesktop_udisks_device_dup_native_path: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "NativePath" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_native_path (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "native-path", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_native_path: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "NativePath" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_native_path (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "native-path", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_detection_time: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceDetectionTime" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_device_detection_time (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_detection_time (object); +} + +/** + * org_freedesktop_udisks_device_set_device_detection_time: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceDetectionTime" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_detection_time (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "device-detection-time", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_media_detection_time: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceMediaDetectionTime" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_device_media_detection_time (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_media_detection_time (object); +} + +/** + * org_freedesktop_udisks_device_set_device_media_detection_time: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceMediaDetectionTime" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_media_detection_time (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "device-media-detection-time", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_major: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceMajor" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gint64 +org_freedesktop_udisks_device_get_device_major (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_major (object); +} + +/** + * org_freedesktop_udisks_device_set_device_major: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceMajor" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_major (OrgFreedesktopUDisksDevice *object, gint64 value) +{ + g_object_set (G_OBJECT (object), "device-major", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_minor: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceMinor" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gint64 +org_freedesktop_udisks_device_get_device_minor (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_minor (object); +} + +/** + * org_freedesktop_udisks_device_set_device_minor: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceMinor" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_minor (OrgFreedesktopUDisksDevice *object, gint64 value) +{ + g_object_set (G_OBJECT (object), "device-minor", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_file: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceFile" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_file() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_device_file (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_file (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_file: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DeviceFile" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_device_file (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "device-file", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_file: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceFile" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_file (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "device-file", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_file_presentation: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceFilePresentation" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_file_presentation() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_device_file_presentation (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_file_presentation (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_file_presentation: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DeviceFilePresentation" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_device_file_presentation (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "device-file-presentation", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_file_presentation: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceFilePresentation" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_file_presentation (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "device-file-presentation", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_file_by_id: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceFileById" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_file_by_id() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_device_file_by_id (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_file_by_id (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_file_by_id: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DeviceFileById" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_device_file_by_id (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "device-file-by-id", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_file_by_id: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceFileById" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_file_by_id (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "device-file-by-id", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_file_by_path: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceFileByPath" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_file_by_path() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_device_file_by_path (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_file_by_path (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_file_by_path: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DeviceFileByPath" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_device_file_by_path (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "device-file-by-path", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_file_by_path: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceFileByPath" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_file_by_path (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "device-file-by-path", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_system_internal: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsSystemInternal" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_system_internal (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_system_internal (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_system_internal: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsSystemInternal" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_system_internal (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-system-internal", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_partition: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsPartition" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_partition (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_partition (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_partition: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsPartition" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_partition (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-partition", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_partition_table: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsPartitionTable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_partition_table (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_partition_table (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_partition_table: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsPartitionTable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_partition_table (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-partition-table", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_removable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsRemovable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_removable (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_removable (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_removable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsRemovable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_removable (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-removable", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_media_available: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsMediaAvailable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_media_available (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_media_available (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_media_available: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsMediaAvailable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_media_available (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-media-available", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_media_change_detected: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsMediaChangeDetected" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_media_change_detected (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_media_change_detected (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_media_change_detected: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsMediaChangeDetected" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_media_change_detected (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-media-change-detected", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_media_change_detection_polling: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsMediaChangeDetectionPolling" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_media_change_detection_polling (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_media_change_detection_polling (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_media_change_detection_polling: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsMediaChangeDetectionPolling" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_media_change_detection_polling (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-media-change-detection-polling", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_media_change_detection_inhibitable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsMediaChangeDetectionInhibitable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_media_change_detection_inhibitable (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_media_change_detection_inhibitable (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_media_change_detection_inhibitable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsMediaChangeDetectionInhibitable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_media_change_detection_inhibitable (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-media-change-detection-inhibitable", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_media_change_detection_inhibited: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsMediaChangeDetectionInhibited" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_media_change_detection_inhibited (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_media_change_detection_inhibited (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_media_change_detection_inhibited: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsMediaChangeDetectionInhibited" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_media_change_detection_inhibited (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-media-change-detection-inhibited", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_read_only: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsReadOnly" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_read_only (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_read_only (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_read_only: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsReadOnly" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_read_only (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-read-only", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_drive: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsDrive" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_drive (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_drive (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_drive: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsDrive" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_drive (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-drive", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_optical_disc: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsOpticalDisc" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_optical_disc (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_optical_disc (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_optical_disc: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsOpticalDisc" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_optical_disc (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-optical-disc", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_mounted: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsMounted" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_mounted (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_mounted (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_mounted: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsMounted" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_mounted (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-mounted", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_mount_paths: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceMountPaths" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_mount_paths() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_device_mount_paths (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_mount_paths (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_mount_paths: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DeviceMountPaths" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_device_mount_paths (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "device-mount-paths", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_mount_paths: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceMountPaths" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_mount_paths (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "device-mount-paths", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_mounted_by_uid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceMountedByUid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_device_mounted_by_uid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_mounted_by_uid (object); +} + +/** + * org_freedesktop_udisks_device_set_device_mounted_by_uid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceMountedByUid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_mounted_by_uid (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "device-mounted-by-uid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_luks: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLuks" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_luks (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_luks (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_luks: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLuks" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_luks (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-luks", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_luks_cleartext: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLuksCleartext" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_luks_cleartext (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_luks_cleartext (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_luks_cleartext: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLuksCleartext" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_luks_cleartext (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-luks-cleartext", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_linux_md_component: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLinuxMdComponent" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_linux_md_component (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_linux_md_component (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_linux_md_component: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLinuxMdComponent" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_linux_md_component (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-linux-md-component", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_linux_md: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLinuxMd" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_linux_md (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_linux_md (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_linux_md: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLinuxMd" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_linux_md (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-linux-md", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_linux_lvm2_lv: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLinuxLvm2LV" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_linux_lvm2_lv (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_linux_lvm2_lv (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_linux_lvm2_lv: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLinuxLvm2LV" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_linux_lvm2_lv (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-linux-lvm2-lv", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_linux_lvm2_pv: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLinuxLvm2PV" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_linux_lvm2_pv (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_linux_lvm2_pv (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_linux_lvm2_pv: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLinuxLvm2PV" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_linux_lvm2_pv (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-linux-lvm2-pv", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_linux_dmmp_component: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLinuxDmmpComponent" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_linux_dmmp_component (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_linux_dmmp_component (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_linux_dmmp_component: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLinuxDmmpComponent" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_linux_dmmp_component (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-linux-dmmp-component", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_linux_dmmp: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLinuxDmmp" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_linux_dmmp (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_linux_dmmp (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_linux_dmmp: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLinuxDmmp" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_linux_dmmp (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-linux-dmmp", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_is_linux_loop: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceIsLinuxLoop" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_is_linux_loop (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_is_linux_loop (object); +} + +/** + * org_freedesktop_udisks_device_set_device_is_linux_loop: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceIsLinuxLoop" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_is_linux_loop (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-is-linux-loop", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceSize" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_device_size (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_size (object); +} + +/** + * org_freedesktop_udisks_device_set_device_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceSize" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_size (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "device-size", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_block_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceBlockSize" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_device_block_size (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_block_size (object); +} + +/** + * org_freedesktop_udisks_device_set_device_block_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceBlockSize" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_block_size (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "device-block-size", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_presentation_hide: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DevicePresentationHide" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_presentation_hide (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_presentation_hide (object); +} + +/** + * org_freedesktop_udisks_device_set_device_presentation_hide: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DevicePresentationHide" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_presentation_hide (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-presentation-hide", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_presentation_nopolicy: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DevicePresentationNopolicy" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_device_presentation_nopolicy (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_presentation_nopolicy (object); +} + +/** + * org_freedesktop_udisks_device_set_device_presentation_nopolicy: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DevicePresentationNopolicy" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_presentation_nopolicy (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "device-presentation-nopolicy", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_presentation_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DevicePresentationName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_presentation_name() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_device_presentation_name (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_presentation_name (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_presentation_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DevicePresentationName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_device_presentation_name (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "device-presentation-name", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_presentation_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DevicePresentationName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_presentation_name (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "device-presentation-name", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_presentation_icon_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DevicePresentationIconName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_presentation_icon_name() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_presentation_icon_name (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_presentation_icon_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DevicePresentationIconName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "device-presentation-icon-name", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_presentation_icon_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DevicePresentationIconName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "device-presentation-icon-name", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_device_automount_hint: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DeviceAutomountHint" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_device_automount_hint() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_device_automount_hint (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_device_automount_hint (object); +} + +/** + * org_freedesktop_udisks_device_dup_device_automount_hint: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DeviceAutomountHint" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_device_automount_hint (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "device-automount-hint", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_device_automount_hint: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DeviceAutomountHint" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_device_automount_hint (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "device-automount-hint", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_job_in_progress: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "JobInProgress" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_job_in_progress (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_job_in_progress (object); +} + +/** + * org_freedesktop_udisks_device_set_job_in_progress: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "JobInProgress" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_job_in_progress (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "job-in-progress", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_job_id: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "JobId" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_job_id() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_job_id (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_job_id (object); +} + +/** + * org_freedesktop_udisks_device_dup_job_id: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "JobId" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_job_id (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "job-id", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_job_id: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "JobId" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_job_id (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "job-id", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_job_initiated_by_uid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "JobInitiatedByUid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_job_initiated_by_uid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_job_initiated_by_uid (object); +} + +/** + * org_freedesktop_udisks_device_set_job_initiated_by_uid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "JobInitiatedByUid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_job_initiated_by_uid (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "job-initiated-by-uid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_job_is_cancellable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "JobIsCancellable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_job_is_cancellable (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_job_is_cancellable (object); +} + +/** + * org_freedesktop_udisks_device_set_job_is_cancellable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "JobIsCancellable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_job_is_cancellable (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "job-is-cancellable", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_job_percentage: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "JobPercentage" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gdouble +org_freedesktop_udisks_device_get_job_percentage (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_job_percentage (object); +} + +/** + * org_freedesktop_udisks_device_set_job_percentage: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "JobPercentage" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_job_percentage (OrgFreedesktopUDisksDevice *object, gdouble value) +{ + g_object_set (G_OBJECT (object), "job-percentage", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_id_usage: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "IdUsage" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_id_usage() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_id_usage (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_id_usage (object); +} + +/** + * org_freedesktop_udisks_device_dup_id_usage: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "IdUsage" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_id_usage (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "id-usage", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_id_usage: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "IdUsage" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_id_usage (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "id-usage", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_id_type: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "IdType" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_id_type() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_id_type (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_id_type (object); +} + +/** + * org_freedesktop_udisks_device_dup_id_type: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "IdType" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_id_type (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "id-type", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_id_type: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "IdType" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_id_type (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "id-type", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_id_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "IdVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_id_version() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_id_version (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_id_version (object); +} + +/** + * org_freedesktop_udisks_device_dup_id_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "IdVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_id_version (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "id-version", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_id_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "IdVersion" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_id_version (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "id-version", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_id_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "IdUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_id_uuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_id_uuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_id_uuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_id_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "IdUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_id_uuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "id-uuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_id_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "IdUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_id_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "id-uuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_id_label: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "IdLabel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_id_label() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_id_label (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_id_label (object); +} + +/** + * org_freedesktop_udisks_device_dup_id_label: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "IdLabel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_id_label (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "id-label", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_id_label: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "IdLabel" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_id_label (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "id-label", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_luks_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LuksHolder" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_luks_holder() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_luks_holder (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_luks_holder (object); +} + +/** + * org_freedesktop_udisks_device_dup_luks_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LuksHolder" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_luks_holder (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "luks-holder", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_luks_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LuksHolder" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_luks_holder (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "luks-holder", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_luks_cleartext_slave: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LuksCleartextSlave" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_luks_cleartext_slave() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_luks_cleartext_slave (object); +} + +/** + * org_freedesktop_udisks_device_dup_luks_cleartext_slave: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LuksCleartextSlave" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "luks-cleartext-slave", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_luks_cleartext_slave: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LuksCleartextSlave" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "luks-cleartext-slave", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_luks_cleartext_unlocked_by_uid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LuksCleartextUnlockedByUid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_luks_cleartext_unlocked_by_uid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_luks_cleartext_unlocked_by_uid (object); +} + +/** + * org_freedesktop_udisks_device_set_luks_cleartext_unlocked_by_uid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LuksCleartextUnlockedByUid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_luks_cleartext_unlocked_by_uid (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "luks-cleartext-unlocked-by-uid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_slave: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionSlave" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_partition_slave() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_partition_slave (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_slave (object); +} + +/** + * org_freedesktop_udisks_device_dup_partition_slave: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "PartitionSlave" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_partition_slave (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "partition-slave", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_partition_slave: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionSlave" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_slave (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "partition-slave", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_scheme: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionScheme" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_partition_scheme() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_partition_scheme (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_scheme (object); +} + +/** + * org_freedesktop_udisks_device_dup_partition_scheme: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "PartitionScheme" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_partition_scheme (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "partition-scheme", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_partition_scheme: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionScheme" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_scheme (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "partition-scheme", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_type: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionType" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_partition_type() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_partition_type (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_type (object); +} + +/** + * org_freedesktop_udisks_device_dup_partition_type: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "PartitionType" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_partition_type (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "partition-type", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_partition_type: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionType" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_type (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "partition-type", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_label: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionLabel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_partition_label() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_partition_label (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_label (object); +} + +/** + * org_freedesktop_udisks_device_dup_partition_label: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "PartitionLabel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_partition_label (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "partition-label", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_partition_label: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionLabel" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_label (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "partition-label", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_partition_uuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_partition_uuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_uuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_partition_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "PartitionUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_partition_uuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "partition-uuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_partition_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "partition-uuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_flags: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionFlags" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_partition_flags() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_partition_flags (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_flags (object); +} + +/** + * org_freedesktop_udisks_device_dup_partition_flags: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "PartitionFlags" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_partition_flags (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "partition-flags", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_partition_flags: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionFlags" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_flags (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "partition-flags", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_number: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionNumber" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gint +org_freedesktop_udisks_device_get_partition_number (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_number (object); +} + +/** + * org_freedesktop_udisks_device_set_partition_number: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionNumber" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_number (OrgFreedesktopUDisksDevice *object, gint value) +{ + g_object_set (G_OBJECT (object), "partition-number", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_offset: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionOffset" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_partition_offset (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_offset (object); +} + +/** + * org_freedesktop_udisks_device_set_partition_offset: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionOffset" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_offset (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "partition-offset", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionSize" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_partition_size (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_size (object); +} + +/** + * org_freedesktop_udisks_device_set_partition_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionSize" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_size (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "partition-size", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_alignment_offset: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionAlignmentOffset" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_partition_alignment_offset (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_alignment_offset (object); +} + +/** + * org_freedesktop_udisks_device_set_partition_alignment_offset: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionAlignmentOffset" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_alignment_offset (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "partition-alignment-offset", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_table_scheme: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionTableScheme" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_partition_table_scheme() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_partition_table_scheme (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_table_scheme (object); +} + +/** + * org_freedesktop_udisks_device_dup_partition_table_scheme: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "PartitionTableScheme" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_partition_table_scheme (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "partition-table-scheme", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_partition_table_scheme: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionTableScheme" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_table_scheme (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "partition-table-scheme", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_partition_table_count: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "PartitionTableCount" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gint +org_freedesktop_udisks_device_get_partition_table_count (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_partition_table_count (object); +} + +/** + * org_freedesktop_udisks_device_set_partition_table_count: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "PartitionTableCount" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_partition_table_count (OrgFreedesktopUDisksDevice *object, gint value) +{ + g_object_set (G_OBJECT (object), "partition-table-count", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_vendor: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveVendor" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_vendor() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_vendor (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_vendor (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_vendor: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveVendor" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_vendor (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-vendor", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_vendor: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveVendor" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_vendor (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-vendor", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_model: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveModel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_model() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_model (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_model (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_model: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveModel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_model (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-model", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_model: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveModel" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_model (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-model", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_revision: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveRevision" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_revision() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_revision (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_revision (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_revision: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveRevision" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_revision (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-revision", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_revision: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveRevision" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_revision (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-revision", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_serial: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveSerial" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_serial() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_serial (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_serial (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_serial: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveSerial" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_serial (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-serial", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_serial: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveSerial" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_serial (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-serial", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_wwn: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveWwn" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_wwn() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_wwn (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_wwn (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_wwn: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveWwn" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_wwn (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-wwn", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_wwn: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveWwn" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_wwn (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-wwn", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_rotation_rate: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveRotationRate" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_drive_rotation_rate (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_rotation_rate (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_rotation_rate: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveRotationRate" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_rotation_rate (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "drive-rotation-rate", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_write_cache: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveWriteCache" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_write_cache() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_write_cache (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_write_cache (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_write_cache: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveWriteCache" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_write_cache (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-write-cache", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_write_cache: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveWriteCache" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_write_cache (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-write-cache", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_connection_interface: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveConnectionInterface" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_connection_interface() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_connection_interface (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_connection_interface (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_connection_interface: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveConnectionInterface" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_connection_interface (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-connection-interface", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_connection_interface: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveConnectionInterface" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_connection_interface (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-connection-interface", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_connection_speed: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveConnectionSpeed" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_drive_connection_speed (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_connection_speed (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_connection_speed: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveConnectionSpeed" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_connection_speed (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "drive-connection-speed", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_media_compatibility: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveMediaCompatibility" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_media_compatibility() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_drive_media_compatibility (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_media_compatibility (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_media_compatibility: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveMediaCompatibility" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_drive_media_compatibility (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "drive-media-compatibility", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_media_compatibility: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveMediaCompatibility" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_media_compatibility (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "drive-media-compatibility", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_media: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveMedia" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_media() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_media (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_media (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_media: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveMedia" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_media (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-media", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_media: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveMedia" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_media (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-media", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_is_media_ejectable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveIsMediaEjectable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_drive_is_media_ejectable (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_is_media_ejectable (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_is_media_ejectable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveIsMediaEjectable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_is_media_ejectable (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "drive-is-media-ejectable", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_can_detach: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveCanDetach" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_drive_can_detach (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_can_detach (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_can_detach: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveCanDetach" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_can_detach (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "drive-can-detach", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_can_spindown: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveCanSpindown" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_drive_can_spindown (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_can_spindown (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_can_spindown: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveCanSpindown" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_can_spindown (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "drive-can-spindown", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_is_rotational: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveIsRotational" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_drive_is_rotational (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_is_rotational (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_is_rotational: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveIsRotational" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_is_rotational (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "drive-is-rotational", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_adapter: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveAdapter" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_adapter() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_adapter (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_adapter (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_adapter: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveAdapter" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_adapter (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-adapter", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_adapter: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveAdapter" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_adapter (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-adapter", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_ports: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DrivePorts" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_ports() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_drive_ports (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_ports (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_ports: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DrivePorts" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_drive_ports (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "drive-ports", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_ports: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DrivePorts" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_ports (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "drive-ports", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_similar_devices: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveSimilarDevices" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_similar_devices() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_drive_similar_devices (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_similar_devices (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_similar_devices: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveSimilarDevices" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_drive_similar_devices (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "drive-similar-devices", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_similar_devices: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveSimilarDevices" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_similar_devices (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "drive-similar-devices", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_optical_disc_is_blank: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "OpticalDiscIsBlank" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_optical_disc_is_blank (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_optical_disc_is_blank (object); +} + +/** + * org_freedesktop_udisks_device_set_optical_disc_is_blank: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "OpticalDiscIsBlank" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_optical_disc_is_blank (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "optical-disc-is-blank", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_optical_disc_is_appendable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "OpticalDiscIsAppendable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_optical_disc_is_appendable (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_optical_disc_is_appendable (object); +} + +/** + * org_freedesktop_udisks_device_set_optical_disc_is_appendable: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "OpticalDiscIsAppendable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_optical_disc_is_appendable (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "optical-disc-is-appendable", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_optical_disc_is_closed: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "OpticalDiscIsClosed" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_optical_disc_is_closed (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_optical_disc_is_closed (object); +} + +/** + * org_freedesktop_udisks_device_set_optical_disc_is_closed: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "OpticalDiscIsClosed" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_optical_disc_is_closed (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "optical-disc-is-closed", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_optical_disc_num_tracks: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "OpticalDiscNumTracks" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_optical_disc_num_tracks (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_optical_disc_num_tracks (object); +} + +/** + * org_freedesktop_udisks_device_set_optical_disc_num_tracks: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "OpticalDiscNumTracks" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_optical_disc_num_tracks (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "optical-disc-num-tracks", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_optical_disc_num_audio_tracks: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "OpticalDiscNumAudioTracks" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_optical_disc_num_audio_tracks (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_optical_disc_num_audio_tracks (object); +} + +/** + * org_freedesktop_udisks_device_set_optical_disc_num_audio_tracks: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "OpticalDiscNumAudioTracks" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_optical_disc_num_audio_tracks (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "optical-disc-num-audio-tracks", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_optical_disc_num_sessions: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "OpticalDiscNumSessions" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_optical_disc_num_sessions (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_optical_disc_num_sessions (object); +} + +/** + * org_freedesktop_udisks_device_set_optical_disc_num_sessions: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "OpticalDiscNumSessions" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_optical_disc_num_sessions (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "optical-disc-num-sessions", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_ata_smart_is_available: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveAtaSmartIsAvailable" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_drive_ata_smart_is_available (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_ata_smart_is_available (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_ata_smart_is_available: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveAtaSmartIsAvailable" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_ata_smart_is_available (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "drive-ata-smart-is-available", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_ata_smart_time_collected: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveAtaSmartTimeCollected" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_drive_ata_smart_time_collected (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_ata_smart_time_collected (object); +} + +/** + * org_freedesktop_udisks_device_set_drive_ata_smart_time_collected: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveAtaSmartTimeCollected" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_ata_smart_time_collected (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "drive-ata-smart-time-collected", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_ata_smart_status: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveAtaSmartStatus" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_ata_smart_status() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_ata_smart_status (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_ata_smart_status: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveAtaSmartStatus" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-ata-smart-status", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_ata_smart_status: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveAtaSmartStatus" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-ata-smart-status", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_drive_ata_smart_blob: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "DriveAtaSmartBlob" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_drive_ata_smart_blob() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_drive_ata_smart_blob (object); +} + +/** + * org_freedesktop_udisks_device_dup_drive_ata_smart_blob: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "DriveAtaSmartBlob" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "drive-ata-smart-blob", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_drive_ata_smart_blob: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "DriveAtaSmartBlob" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "drive-ata-smart-blob", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_level: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentLevel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_component_level() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_component_level (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_level (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_component_level: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdComponentLevel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_component_level (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-component-level", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_level: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentLevel" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_level (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-level", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_position: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentPosition" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gint +org_freedesktop_udisks_device_get_linux_md_component_position (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_position (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_position: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentPosition" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_position (OrgFreedesktopUDisksDevice *object, gint value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-position", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_num_raid_devices: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentNumRaidDevices" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gint +org_freedesktop_udisks_device_get_linux_md_component_num_raid_devices (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_num_raid_devices (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_num_raid_devices: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentNumRaidDevices" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_num_raid_devices (OrgFreedesktopUDisksDevice *object, gint value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-num-raid-devices", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_component_uuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_uuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_component_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdComponentUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-component-uuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-uuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_component_name() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_component_name (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_name (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_component_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdComponentName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_component_name (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-component-name", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_name (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-name", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_home_host: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentHomeHost" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_component_home_host() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_home_host (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_component_home_host: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdComponentHomeHost" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-component-home-host", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_home_host: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentHomeHost" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-home-host", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_component_version() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_component_version (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_version (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_component_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdComponentVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_component_version (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-component-version", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentVersion" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_version (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-version", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentHolder" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_component_holder() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_component_holder (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_holder (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_component_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdComponentHolder" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_component_holder (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-component-holder", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentHolder" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_holder (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-holder", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_component_state: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdComponentState" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_component_state() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_linux_md_component_state (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_component_state (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_component_state: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdComponentState" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_linux_md_component_state (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "linux-md-component-state", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_component_state: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdComponentState" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_component_state (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "linux-md-component-state", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_state: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdState" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_state() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_state (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_state (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_state: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdState" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_state (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-state", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_state: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdState" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_state (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-state", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_level: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdLevel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_level() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_level (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_level (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_level: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdLevel" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_level (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-level", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_level: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdLevel" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_level (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-level", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_uuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_uuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_uuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_uuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-uuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-uuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_home_host: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdHomeHost" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_home_host() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_home_host (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_home_host (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_home_host: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdHomeHost" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_home_host (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-home-host", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_home_host: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdHomeHost" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_home_host (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-home-host", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_name() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_name (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_name (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_name (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-name", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_name (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-name", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_num_raid_devices: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdNumRaidDevices" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gint +org_freedesktop_udisks_device_get_linux_md_num_raid_devices (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_num_raid_devices (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_md_num_raid_devices: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdNumRaidDevices" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_num_raid_devices (OrgFreedesktopUDisksDevice *object, gint value) +{ + g_object_set (G_OBJECT (object), "linux-md-num-raid-devices", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_version() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_version (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_version (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_version (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-version", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_version: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdVersion" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_version (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-version", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_slaves: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdSlaves" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_slaves() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_linux_md_slaves (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_slaves (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_slaves: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdSlaves" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_linux_md_slaves (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "linux-md-slaves", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_slaves: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdSlaves" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_slaves (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "linux-md-slaves", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_is_degraded: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdIsDegraded" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_device_get_linux_md_is_degraded (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_is_degraded (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_md_is_degraded: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdIsDegraded" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_is_degraded (OrgFreedesktopUDisksDevice *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "linux-md-is-degraded", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_sync_action: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdSyncAction" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_md_sync_action() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_md_sync_action (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_sync_action (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_md_sync_action: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxMdSyncAction" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_md_sync_action (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-md-sync-action", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_md_sync_action: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdSyncAction" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_sync_action (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-md-sync-action", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_sync_percentage: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdSyncPercentage" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gdouble +org_freedesktop_udisks_device_get_linux_md_sync_percentage (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_sync_percentage (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_md_sync_percentage: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdSyncPercentage" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_sync_percentage (OrgFreedesktopUDisksDevice *object, gdouble value) +{ + g_object_set (G_OBJECT (object), "linux-md-sync-percentage", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_md_sync_speed: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxMdSyncSpeed" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_linux_md_sync_speed (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_md_sync_speed (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_md_sync_speed: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxMdSyncSpeed" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_md_sync_speed (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "linux-md-sync-speed", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvuuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_pvuuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvuuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_pvuuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2PVUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-lvm2-pvuuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvuuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvuuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvnum_metadata_areas: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVNumMetadataAreas" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint +org_freedesktop_udisks_device_get_linux_lvm2_pvnum_metadata_areas (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvnum_metadata_areas (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvnum_metadata_areas: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVNumMetadataAreas" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvnum_metadata_areas (OrgFreedesktopUDisksDevice *object, guint value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvnum-metadata-areas", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_pvgroup_name() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_name (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2PVGroupName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-lvm2-pvgroup-name", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-name", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_pvgroup_uuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_uuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2PVGroupUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-lvm2-pvgroup-uuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-uuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupSize" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_size (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_size (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupSize" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_size (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-size", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_unallocated_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupUnallocatedSize" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_unallocated_size (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_unallocated_size (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_unallocated_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupUnallocatedSize" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_unallocated_size (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-unallocated-size", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_sequence_number: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupSequenceNumber" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_sequence_number (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_sequence_number (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_sequence_number: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupSequenceNumber" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_sequence_number (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-sequence-number", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_extent_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupExtentSize" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +guint64 +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_extent_size (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_extent_size (object); +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_extent_size: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupExtentSize" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_extent_size (OrgFreedesktopUDisksDevice *object, guint64 value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-extent-size", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_physical_volumes: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupPhysicalVolumes" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_pvgroup_physical_volumes() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_physical_volumes (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_physical_volumes: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2PVGroupPhysicalVolumes" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "linux-lvm2-pvgroup-physical-volumes", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_physical_volumes: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupPhysicalVolumes" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-physical-volumes", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_logical_volumes: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2PVGroupLogicalVolumes" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_pvgroup_logical_volumes() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_pvgroup_logical_volumes (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_logical_volumes: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2PVGroupLogicalVolumes" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "linux-lvm2-pvgroup-logical-volumes", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_logical_volumes: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2PVGroupLogicalVolumes" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-pvgroup-logical-volumes", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_lvname: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2LVName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_lvname() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_lvname (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_lvname: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2LVName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-lvm2-lvname", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_lvname: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2LVName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-lvname", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_lvuuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2LVUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_lvuuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_lvuuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_lvuuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2LVUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-lvm2-lvuuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_lvuuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2LVUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-lvuuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_lvgroup_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2LVGroupName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_lvgroup_name() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_lvgroup_name (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_lvgroup_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2LVGroupName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-lvm2-lvgroup-name", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_lvgroup_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2LVGroupName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-lvgroup-name", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_lvm2_lvgroup_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLvm2LVGroupUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_lvm2_lvgroup_uuid() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_lvm2_lvgroup_uuid (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_lvm2_lvgroup_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLvm2LVGroupUuid" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-lvm2-lvgroup-uuid", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_lvm2_lvgroup_uuid: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLvm2LVGroupUuid" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-lvm2-lvgroup-uuid", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_dmmp_component_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxDmmpComponentHolder" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_dmmp_component_holder() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_dmmp_component_holder (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_dmmp_component_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxDmmpComponentHolder" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-dmmp-component-holder", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_dmmp_component_holder: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxDmmpComponentHolder" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-dmmp-component-holder", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_dmmp_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxDmmpName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_dmmp_name() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_dmmp_name (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_dmmp_name (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_dmmp_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxDmmpName" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_dmmp_name (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-dmmp-name", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_dmmp_name: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxDmmpName" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_dmmp_name (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-dmmp-name", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_dmmp_slaves: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxDmmpSlaves" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_dmmp_slaves() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar *const * +org_freedesktop_udisks_device_get_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_dmmp_slaves (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_dmmp_slaves: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxDmmpSlaves" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev(). + */ +gchar ** +org_freedesktop_udisks_device_dup_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object) +{ + gchar **value; + g_object_get (G_OBJECT (object), "linux-dmmp-slaves", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_dmmp_slaves: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxDmmpSlaves" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object, const gchar *const *value) +{ + g_object_set (G_OBJECT (object), "linux-dmmp-slaves", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_dmmp_parameters: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxDmmpParameters" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_dmmp_parameters() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_dmmp_parameters (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_dmmp_parameters: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxDmmpParameters" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-dmmp-parameters", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_dmmp_parameters: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxDmmpParameters" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-dmmp-parameters", value, NULL); +} + +/** + * org_freedesktop_udisks_device_get_linux_loop_filename: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets the value of the "LinuxLoopFilename" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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_device_dup_linux_loop_filename() if on another thread. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_device_get_linux_loop_filename (OrgFreedesktopUDisksDevice *object) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE (object)->get_linux_loop_filename (object); +} + +/** + * org_freedesktop_udisks_device_dup_linux_loop_filename: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * + * Gets a copy of the "LinuxLoopFilename" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_device_dup_linux_loop_filename (OrgFreedesktopUDisksDevice *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "linux-loop-filename", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_device_set_linux_loop_filename: (skip) + * @object: A #OrgFreedesktopUDisksDevice. + * @value: The value to set. + * + * Sets the "LinuxLoopFilename" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_device_set_linux_loop_filename (OrgFreedesktopUDisksDevice *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "linux-loop-filename", value, NULL); +} + +/** + * org_freedesktop_udisks_device_emit_changed: + * @object: A #OrgFreedesktopUDisksDevice. + * + * Emits the "Changed" D-Bus signal. + */ +void +org_freedesktop_udisks_device_emit_changed ( + OrgFreedesktopUDisksDevice *object) +{ + g_signal_emit_by_name (object, "changed"); +} + +/** + * org_freedesktop_udisks_device_emit_job_changed: + * @object: A #OrgFreedesktopUDisksDevice. + * @arg_job_in_progress: Argument to pass with the signal. + * @arg_job_is_cancellable: Argument to pass with the signal. + * @arg_job_id: Argument to pass with the signal. + * @arg_job_initiated_by_uid: Argument to pass with the signal. + * @arg_job_percentage: Argument to pass with the signal. + * + * Emits the "JobChanged" D-Bus signal. + */ +void +org_freedesktop_udisks_device_emit_job_changed ( + OrgFreedesktopUDisksDevice *object, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + guint arg_job_initiated_by_uid, + gdouble arg_job_percentage) +{ + g_signal_emit_by_name (object, "job-changed", arg_job_in_progress, arg_job_is_cancellable, arg_job_id, arg_job_initiated_by_uid, arg_job_percentage); +} + +/** + * org_freedesktop_udisks_device_call_job_cancel: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the JobCancel() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_job_cancel_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_job_cancel_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_job_cancel ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "JobCancel", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_job_cancel_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_job_cancel(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_job_cancel(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_job_cancel_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_job_cancel_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the JobCancel() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_job_cancel() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_job_cancel_sync ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "JobCancel", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_table_create: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_scheme: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the PartitionTableCreate() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_partition_table_create_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_partition_table_create_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_partition_table_create ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_scheme, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "PartitionTableCreate", + g_variant_new ("(s^as)", + arg_scheme, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_partition_table_create_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_partition_table_create(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_partition_table_create(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_table_create_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_table_create_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_scheme: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the PartitionTableCreate() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_partition_table_create() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_table_create_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_scheme, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "PartitionTableCreate", + g_variant_new ("(s^as)", + arg_scheme, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_delete: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the PartitionDelete() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_partition_delete_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_partition_delete_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_partition_delete ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "PartitionDelete", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_partition_delete_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_partition_delete(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_partition_delete(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_delete_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_delete_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the PartitionDelete() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_partition_delete() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_delete_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "PartitionDelete", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_create: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_offset: Argument to pass with the method invocation. + * @arg_size: Argument to pass with the method invocation. + * @arg_type: Argument to pass with the method invocation. + * @arg_label: Argument to pass with the method invocation. + * @arg_flags: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @arg_fstype: Argument to pass with the method invocation. + * @arg_fsoptions: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the PartitionCreate() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_partition_create_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_partition_create_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_partition_create ( + OrgFreedesktopUDisksDevice *proxy, + guint64 arg_offset, + guint64 arg_size, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "PartitionCreate", + g_variant_new ("(ttss^as^ass^as)", + arg_offset, + arg_size, + arg_type, + arg_label, + arg_flags, + arg_options, + arg_fstype, + arg_fsoptions), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_partition_create_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_created_device: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_partition_create(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_partition_create(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_create_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_created_device, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_created_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_create_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_offset: Argument to pass with the method invocation. + * @arg_size: Argument to pass with the method invocation. + * @arg_type: Argument to pass with the method invocation. + * @arg_label: Argument to pass with the method invocation. + * @arg_flags: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @arg_fstype: Argument to pass with the method invocation. + * @arg_fsoptions: Argument to pass with the method invocation. + * @out_created_device: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the PartitionCreate() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_partition_create() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_create_sync ( + OrgFreedesktopUDisksDevice *proxy, + guint64 arg_offset, + guint64 arg_size, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + gchar **out_created_device, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "PartitionCreate", + g_variant_new ("(ttss^as^ass^as)", + arg_offset, + arg_size, + arg_type, + arg_label, + arg_flags, + arg_options, + arg_fstype, + arg_fsoptions), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_created_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_modify: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_type: Argument to pass with the method invocation. + * @arg_label: Argument to pass with the method invocation. + * @arg_flags: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the PartitionModify() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_partition_modify_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_partition_modify_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_partition_modify ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "PartitionModify", + g_variant_new ("(ss^as)", + arg_type, + arg_label, + arg_flags), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_partition_modify_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_partition_modify(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_partition_modify(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_modify_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_partition_modify_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_type: Argument to pass with the method invocation. + * @arg_label: Argument to pass with the method invocation. + * @arg_flags: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the PartitionModify() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_partition_modify() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_partition_modify_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "PartitionModify", + g_variant_new ("(ss^as)", + arg_type, + arg_label, + arg_flags), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_create: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_fstype: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FilesystemCreate() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_filesystem_create_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_filesystem_create_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_filesystem_create ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_fstype, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FilesystemCreate", + g_variant_new ("(s^as)", + arg_fstype, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_filesystem_create_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_filesystem_create(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_filesystem_create(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_create_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_create_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_fstype: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FilesystemCreate() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_filesystem_create() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_create_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_fstype, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FilesystemCreate", + g_variant_new ("(s^as)", + arg_fstype, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_set_label: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_new_label: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FilesystemSetLabel() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_filesystem_set_label_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_filesystem_set_label_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_filesystem_set_label ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_new_label, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FilesystemSetLabel", + g_variant_new ("(s)", + arg_new_label), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_filesystem_set_label_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_filesystem_set_label(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_filesystem_set_label(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_set_label_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_set_label_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_new_label: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FilesystemSetLabel() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_filesystem_set_label() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_set_label_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_new_label, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FilesystemSetLabel", + g_variant_new ("(s)", + arg_new_label), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_mount: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_filesystem_type: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FilesystemMount() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_filesystem_mount_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_filesystem_mount_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_filesystem_mount ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_filesystem_type, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FilesystemMount", + g_variant_new ("(s^as)", + arg_filesystem_type, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_filesystem_mount_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_mount_path: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_filesystem_mount(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_filesystem_mount(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_mount_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_mount_path, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_mount_path); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_mount_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_filesystem_type: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @out_mount_path: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FilesystemMount() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_filesystem_mount() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_mount_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_filesystem_type, + const gchar *const *arg_options, + gchar **out_mount_path, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FilesystemMount", + g_variant_new ("(s^as)", + arg_filesystem_type, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_mount_path); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_unmount: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FilesystemUnmount() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_filesystem_unmount_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_filesystem_unmount_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_filesystem_unmount ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FilesystemUnmount", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_filesystem_unmount_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_filesystem_unmount(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_filesystem_unmount(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_unmount_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_unmount_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FilesystemUnmount() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_filesystem_unmount() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_unmount_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FilesystemUnmount", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_check: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FilesystemCheck() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_filesystem_check_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_filesystem_check_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_filesystem_check ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FilesystemCheck", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_filesystem_check_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_is_clean: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_filesystem_check(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_filesystem_check(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_check_finish ( + OrgFreedesktopUDisksDevice *proxy, + gboolean *out_is_clean, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(b)", + out_is_clean); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_check_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @out_is_clean: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FilesystemCheck() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_filesystem_check() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_check_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + gboolean *out_is_clean, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FilesystemCheck", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(b)", + out_is_clean); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_list_open_files: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FilesystemListOpenFiles() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_filesystem_list_open_files_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_filesystem_list_open_files_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_filesystem_list_open_files ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FilesystemListOpenFiles", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_filesystem_list_open_files_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_processes: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_filesystem_list_open_files(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_filesystem_list_open_files(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_list_open_files_finish ( + OrgFreedesktopUDisksDevice *proxy, + GVariant **out_processes, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(@a(uus))", + out_processes); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_filesystem_list_open_files_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_processes: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FilesystemListOpenFiles() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_filesystem_list_open_files() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_filesystem_list_open_files_sync ( + OrgFreedesktopUDisksDevice *proxy, + GVariant **out_processes, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FilesystemListOpenFiles", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(@a(uus))", + out_processes); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_luks_unlock: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_passphrase: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LuksUnlock() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_luks_unlock_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_luks_unlock_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_luks_unlock ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_passphrase, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LuksUnlock", + g_variant_new ("(s^as)", + arg_passphrase, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_luks_unlock_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_cleartext_device: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_luks_unlock(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_luks_unlock(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_luks_unlock_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_cleartext_device, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_cleartext_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_luks_unlock_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_passphrase: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @out_cleartext_device: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LuksUnlock() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_luks_unlock() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_luks_unlock_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_passphrase, + const gchar *const *arg_options, + gchar **out_cleartext_device, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LuksUnlock", + g_variant_new ("(s^as)", + arg_passphrase, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_cleartext_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_luks_lock: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LuksLock() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_luks_lock_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_luks_lock_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_luks_lock ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LuksLock", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_luks_lock_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_luks_lock(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_luks_lock(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_luks_lock_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_luks_lock_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LuksLock() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_luks_lock() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_luks_lock_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LuksLock", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_luks_change_passphrase: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_current_passphrase: Argument to pass with the method invocation. + * @arg_new_passphrase: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LuksChangePassphrase() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_luks_change_passphrase_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_luks_change_passphrase_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_luks_change_passphrase ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_current_passphrase, + const gchar *arg_new_passphrase, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LuksChangePassphrase", + g_variant_new ("(ss)", + arg_current_passphrase, + arg_new_passphrase), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_luks_change_passphrase_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_luks_change_passphrase(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_luks_change_passphrase(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_luks_change_passphrase_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_luks_change_passphrase_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_current_passphrase: Argument to pass with the method invocation. + * @arg_new_passphrase: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LuksChangePassphrase() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_luks_change_passphrase() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_luks_change_passphrase_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_current_passphrase, + const gchar *arg_new_passphrase, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LuksChangePassphrase", + g_variant_new ("(ss)", + arg_current_passphrase, + arg_new_passphrase), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_add_spare: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_component: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxMdAddSpare() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_linux_md_add_spare_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_linux_md_add_spare_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_linux_md_add_spare ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxMdAddSpare", + g_variant_new ("(o^as)", + arg_component, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_linux_md_add_spare_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_linux_md_add_spare(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_linux_md_add_spare(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_add_spare_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_add_spare_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_component: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxMdAddSpare() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_linux_md_add_spare() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_add_spare_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxMdAddSpare", + g_variant_new ("(o^as)", + arg_component, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_expand: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_components: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxMdExpand() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_linux_md_expand_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_linux_md_expand_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_linux_md_expand ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxMdExpand", + g_variant_new ("(^ao^as)", + arg_components, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_linux_md_expand_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_linux_md_expand(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_linux_md_expand(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_expand_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_expand_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_components: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxMdExpand() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_linux_md_expand() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_expand_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxMdExpand", + g_variant_new ("(^ao^as)", + arg_components, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_remove_component: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_component: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxMdRemoveComponent() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_linux_md_remove_component_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_linux_md_remove_component_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_linux_md_remove_component ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxMdRemoveComponent", + g_variant_new ("(o^as)", + arg_component, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_linux_md_remove_component_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_linux_md_remove_component(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_linux_md_remove_component(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_remove_component_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_remove_component_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_component: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxMdRemoveComponent() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_linux_md_remove_component() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_remove_component_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxMdRemoveComponent", + g_variant_new ("(o^as)", + arg_component, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_stop: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxMdStop() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_linux_md_stop_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_linux_md_stop_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_linux_md_stop ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxMdStop", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_linux_md_stop_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_linux_md_stop(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_linux_md_stop(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_stop_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_stop_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxMdStop() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_linux_md_stop() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_stop_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxMdStop", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_lvm2_lvstop: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2LVStop() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_linux_lvm2_lvstop_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_linux_lvm2_lvstop_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_linux_lvm2_lvstop ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2LVStop", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_linux_lvm2_lvstop_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_linux_lvm2_lvstop(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_linux_lvm2_lvstop(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_lvm2_lvstop_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_lvm2_lvstop_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2LVStop() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_linux_lvm2_lvstop() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_lvm2_lvstop_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2LVStop", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_check: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxMdCheck() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_linux_md_check_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_linux_md_check_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_linux_md_check ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxMdCheck", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_linux_md_check_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_number_of_errors: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_linux_md_check(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_linux_md_check(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_check_finish ( + OrgFreedesktopUDisksDevice *proxy, + guint64 *out_number_of_errors, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(t)", + out_number_of_errors); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_linux_md_check_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @out_number_of_errors: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxMdCheck() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_linux_md_check() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_linux_md_check_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + guint64 *out_number_of_errors, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxMdCheck", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(t)", + out_number_of_errors); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_inhibit_polling: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveInhibitPolling() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_inhibit_polling_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_inhibit_polling_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_inhibit_polling ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveInhibitPolling", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_inhibit_polling_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_inhibit_polling(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_inhibit_polling(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_inhibit_polling_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_inhibit_polling_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveInhibitPolling() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_inhibit_polling() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_inhibit_polling_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveInhibitPolling", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_uninhibit_polling: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveUninhibitPolling() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_uninhibit_polling_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_uninhibit_polling_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_uninhibit_polling ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveUninhibitPolling", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_uninhibit_polling_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_uninhibit_polling(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_uninhibit_polling(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_uninhibit_polling_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_uninhibit_polling_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveUninhibitPolling() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_uninhibit_polling() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_uninhibit_polling_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveUninhibitPolling", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_poll_media: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DrivePollMedia() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_poll_media_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_poll_media_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_poll_media ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DrivePollMedia", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_poll_media_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_poll_media(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_poll_media(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_poll_media_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_poll_media_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DrivePollMedia() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_poll_media() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_poll_media_sync ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DrivePollMedia", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_eject: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveEject() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_eject_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_eject_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_eject ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveEject", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_eject_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_eject(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_eject(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_eject_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_eject_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveEject() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_eject() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_eject_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveEject", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_detach: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveDetach() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_detach_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_detach_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_detach ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveDetach", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_detach_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_detach(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_detach(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_detach_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_detach_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveDetach() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_detach() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_detach_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveDetach", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_set_spindown_timeout: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_timeout_seconds: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveSetSpindownTimeout() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_set_spindown_timeout_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_set_spindown_timeout_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_set_spindown_timeout ( + OrgFreedesktopUDisksDevice *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveSetSpindownTimeout", + g_variant_new ("(i^as)", + arg_timeout_seconds, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_set_spindown_timeout_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_set_spindown_timeout(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_set_spindown_timeout(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_set_spindown_timeout_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_set_spindown_timeout_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_timeout_seconds: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveSetSpindownTimeout() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_set_spindown_timeout() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_set_spindown_timeout_sync ( + OrgFreedesktopUDisksDevice *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveSetSpindownTimeout", + g_variant_new ("(i^as)", + arg_timeout_seconds, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_unset_spindown_timeout: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveUnsetSpindownTimeout() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_unset_spindown_timeout ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveUnsetSpindownTimeout", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_unset_spindown_timeout(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_unset_spindown_timeout(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveUnsetSpindownTimeout() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_unset_spindown_timeout() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveUnsetSpindownTimeout", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveAtaSmartRefreshData() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveAtaSmartRefreshData", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveAtaSmartRefreshData() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveAtaSmartRefreshData", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_test: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveAtaSmartInitiateSelftest() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_test, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveAtaSmartInitiateSelftest", + g_variant_new ("(s^as)", + arg_test, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_test: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveAtaSmartInitiateSelftest() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_test, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveAtaSmartInitiateSelftest", + g_variant_new ("(s^as)", + arg_test, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_benchmark: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_do_write_benchmark: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveBenchmark() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_call_drive_benchmark_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_call_drive_benchmark_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_device_call_drive_benchmark ( + OrgFreedesktopUDisksDevice *proxy, + gboolean arg_do_write_benchmark, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveBenchmark", + g_variant_new ("(b^as)", + arg_do_write_benchmark, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_device_call_drive_benchmark_finish: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @out_read_transfer_rate_results: (out): Return location for return parameter or %NULL to ignore. + * @out_write_transfer_rate_results: (out): Return location for return parameter or %NULL to ignore. + * @out_access_time_results: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_call_drive_benchmark(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_device_call_drive_benchmark(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_benchmark_finish ( + OrgFreedesktopUDisksDevice *proxy, + GVariant **out_read_transfer_rate_results, + GVariant **out_write_transfer_rate_results, + GVariant **out_access_time_results, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(@a(td)@a(td)@a(td))", + out_read_transfer_rate_results, + out_write_transfer_rate_results, + out_access_time_results); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_call_drive_benchmark_sync: + * @proxy: A #OrgFreedesktopUDisksDeviceProxy. + * @arg_do_write_benchmark: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @out_read_transfer_rate_results: (out): Return location for return parameter or %NULL to ignore. + * @out_write_transfer_rate_results: (out): Return location for return parameter or %NULL to ignore. + * @out_access_time_results: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveBenchmark() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_call_drive_benchmark() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_device_call_drive_benchmark_sync ( + OrgFreedesktopUDisksDevice *proxy, + gboolean arg_do_write_benchmark, + const gchar *const *arg_options, + GVariant **out_read_transfer_rate_results, + GVariant **out_write_transfer_rate_results, + GVariant **out_access_time_results, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveBenchmark", + g_variant_new ("(b^as)", + arg_do_write_benchmark, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(@a(td)@a(td)@a(td))", + out_read_transfer_rate_results, + out_write_transfer_rate_results, + out_access_time_results); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_device_complete_job_cancel: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the JobCancel() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_job_cancel ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_partition_table_create: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the PartitionTableCreate() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_partition_table_create ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_partition_delete: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the PartitionDelete() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_partition_delete ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_partition_create: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @created_device: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the PartitionCreate() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_partition_create ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *created_device) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(o)", + created_device)); +} + +/** + * org_freedesktop_udisks_device_complete_partition_modify: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the PartitionModify() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_partition_modify ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_filesystem_create: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the FilesystemCreate() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_filesystem_create ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_filesystem_set_label: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the FilesystemSetLabel() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_filesystem_set_label ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_filesystem_mount: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @mount_path: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the FilesystemMount() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_filesystem_mount ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *mount_path) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(s)", + mount_path)); +} + +/** + * org_freedesktop_udisks_device_complete_filesystem_unmount: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the FilesystemUnmount() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_filesystem_unmount ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_filesystem_check: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @is_clean: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the FilesystemCheck() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_filesystem_check ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + gboolean is_clean) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(b)", + is_clean)); +} + +/** + * org_freedesktop_udisks_device_complete_filesystem_list_open_files: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @processes: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the FilesystemListOpenFiles() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_filesystem_list_open_files ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + GVariant *processes) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(@a(uus))", + processes)); +} + +/** + * org_freedesktop_udisks_device_complete_luks_unlock: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @cleartext_device: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the LuksUnlock() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_luks_unlock ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *cleartext_device) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(o)", + cleartext_device)); +} + +/** + * org_freedesktop_udisks_device_complete_luks_lock: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LuksLock() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_luks_lock ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_luks_change_passphrase: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LuksChangePassphrase() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_luks_change_passphrase ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_linux_md_add_spare: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxMdAddSpare() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_linux_md_add_spare ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_linux_md_expand: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxMdExpand() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_linux_md_expand ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_linux_md_remove_component: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxMdRemoveComponent() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_linux_md_remove_component ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_linux_md_stop: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxMdStop() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_linux_md_stop ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_linux_lvm2_lvstop: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2LVStop() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_linux_lvm2_lvstop ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_linux_md_check: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @number_of_errors: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the LinuxMdCheck() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_linux_md_check ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + guint64 number_of_errors) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(t)", + number_of_errors)); +} + +/** + * org_freedesktop_udisks_device_complete_drive_inhibit_polling: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @cookie: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the DriveInhibitPolling() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_inhibit_polling ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *cookie) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(s)", + cookie)); +} + +/** + * org_freedesktop_udisks_device_complete_drive_uninhibit_polling: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveUninhibitPolling() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_uninhibit_polling ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_drive_poll_media: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DrivePollMedia() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_poll_media ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_drive_eject: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveEject() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_eject ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_drive_detach: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveDetach() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_detach ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_drive_set_spindown_timeout: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @cookie: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the DriveSetSpindownTimeout() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_set_spindown_timeout ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *cookie) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(s)", + cookie)); +} + +/** + * org_freedesktop_udisks_device_complete_drive_unset_spindown_timeout: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveUnsetSpindownTimeout() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_unset_spindown_timeout ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_drive_ata_smart_refresh_data: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveAtaSmartRefreshData() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_ata_smart_refresh_data ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_drive_ata_smart_initiate_selftest: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveAtaSmartInitiateSelftest() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_ata_smart_initiate_selftest ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_device_complete_drive_benchmark: + * @object: A #OrgFreedesktopUDisksDevice. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @read_transfer_rate_results: Parameter to return. + * @write_transfer_rate_results: Parameter to return. + * @access_time_results: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the DriveBenchmark() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_device_complete_drive_benchmark ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + GVariant *read_transfer_rate_results, + GVariant *write_transfer_rate_results, + GVariant *access_time_results) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(@a(td)@a(td)@a(td))", + read_transfer_rate_results, + write_transfer_rate_results, + access_time_results)); +} + +/* ------------------------------------------------------------------------ */ + +/** + * OrgFreedesktopUDisksDeviceProxy: + * + * The #OrgFreedesktopUDisksDeviceProxy structure contains only private data and should only be accessed using the provided API. + */ + +/** + * OrgFreedesktopUDisksDeviceProxyClass: + * @parent_class: The parent class. + * + * Class structure for #OrgFreedesktopUDisksDeviceProxy. + */ + +struct _OrgFreedesktopUDisksDeviceProxyPrivate +{ + GData *qdata; +}; + +static void org_freedesktop_udisks_device_proxy_iface_init (OrgFreedesktopUDisksDeviceIface *iface); + +G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksDeviceProxy, org_freedesktop_udisks_device_proxy, G_TYPE_DBUS_PROXY, + G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE, org_freedesktop_udisks_device_proxy_iface_init)); + +static void +org_freedesktop_udisks_device_proxy_finalize (GObject *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + g_datalist_clear (&proxy->priv->qdata); + G_OBJECT_CLASS (org_freedesktop_udisks_device_proxy_parent_class)->finalize (object); +} + +static void +org_freedesktop_udisks_device_proxy_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + const _ExtendedGDBusPropertyInfo *info; + GVariant *variant; + g_assert (prop_id != 0 && prop_id - 1 < 133); + info = _org_freedesktop_udisks_device_property_info_pointers[prop_id - 1]; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); + if (info->use_gvariant) + { + g_value_set_variant (value, variant); + } + else + { + if (variant != NULL) + g_dbus_gvariant_to_gvalue (variant, value); + } + if (variant != NULL) + g_variant_unref (variant); +} + +static void +org_freedesktop_udisks_device_proxy_set_property_cb (GDBusProxy *proxy, + GAsyncResult *res, + gpointer user_data) +{ + const _ExtendedGDBusPropertyInfo *info = user_data; + GError *error; + error = NULL; + if (!g_dbus_proxy_call_finish (proxy, res, &error)) + { + g_warning ("Error setting property `%s' on interface org.freedesktop.UDisks.Device: %s (%s, %d)", + info->parent_struct.name, + error->message, g_quark_to_string (error->domain), error->code); + g_error_free (error); + } +} + +static void +org_freedesktop_udisks_device_proxy_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + const _ExtendedGDBusPropertyInfo *info; + GVariant *variant; + g_assert (prop_id != 0 && prop_id - 1 < 133); + info = _org_freedesktop_udisks_device_property_info_pointers[prop_id - 1]; + variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); + g_dbus_proxy_call (G_DBUS_PROXY (object), + "org.freedesktop.DBus.Properties.Set", + g_variant_new ("(ssv)", "org.freedesktop.UDisks.Device", info->parent_struct.name, variant), + G_DBUS_CALL_FLAGS_NONE, + -1, + NULL, (GAsyncReadyCallback) org_freedesktop_udisks_device_proxy_set_property_cb, (gpointer) info); + g_variant_unref (variant); +} + +static void +org_freedesktop_udisks_device_proxy_g_signal (GDBusProxy *proxy, + const gchar *sender_name, + const gchar *signal_name, + GVariant *parameters) +{ + _ExtendedGDBusSignalInfo *info; + GVariantIter iter; + GVariant *child; + GValue *paramv; + guint num_params; + guint n; + guint signal_id; + info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_device_interface_info, signal_name); + if (info == NULL) + return; + num_params = g_variant_n_children (parameters); + paramv = g_new0 (GValue, num_params + 1); + g_value_init (¶mv[0], TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE); + g_value_set_object (¶mv[0], proxy); + g_variant_iter_init (&iter, parameters); + n = 1; + while ((child = g_variant_iter_next_value (&iter)) != NULL) + { + _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; + if (arg_info->use_gvariant) + { + g_value_init (¶mv[n], G_TYPE_VARIANT); + g_value_set_variant (¶mv[n], child); + n++; + } + else + g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); + g_variant_unref (child); + } + signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE); + g_signal_emitv (paramv, signal_id, 0, NULL); + for (n = 0; n < num_params + 1; n++) + g_value_unset (¶mv[n]); + g_free (paramv); +} + +static void +org_freedesktop_udisks_device_proxy_g_properties_changed (GDBusProxy *_proxy, + GVariant *changed_properties, + const gchar *const *invalidated_properties) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (_proxy); + guint n; + const gchar *key; + GVariantIter *iter; + _ExtendedGDBusPropertyInfo *info; + g_variant_get (changed_properties, "a{sv}", &iter); + while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) + { + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_device_interface_info, key); + g_datalist_remove_data (&proxy->priv->qdata, key); + if (info != NULL) + g_object_notify (G_OBJECT (proxy), info->hyphen_name); + } + g_variant_iter_free (iter); + for (n = 0; invalidated_properties[n] != NULL; n++) + { + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_device_interface_info, invalidated_properties[n]); + g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); + if (info != NULL) + g_object_notify (G_OBJECT (proxy), info->hyphen_name); + } +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_native_path (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "NativePath"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_device_detection_time (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceDetectionTime"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_device_media_detection_time (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceMediaDetectionTime"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static gint64 +org_freedesktop_udisks_device_proxy_get_device_major (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceMajor"); + if (variant != NULL) + { + value = g_variant_get_int64 (variant); + g_variant_unref (variant); + } + return value; +} + +static gint64 +org_freedesktop_udisks_device_proxy_get_device_minor (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceMinor"); + if (variant != NULL) + { + value = g_variant_get_int64 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_device_file (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceFile"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_device_file_presentation (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceFilePresentation"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_device_file_by_id (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "DeviceFileById"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceFileById"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "DeviceFileById", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_device_file_by_path (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "DeviceFileByPath"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceFileByPath"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "DeviceFileByPath", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_system_internal (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsSystemInternal"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_partition (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsPartition"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_partition_table (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsPartitionTable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_removable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsRemovable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_media_available (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsMediaAvailable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_media_change_detected (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsMediaChangeDetected"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_media_change_detection_polling (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsMediaChangeDetectionPolling"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_media_change_detection_inhibitable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsMediaChangeDetectionInhibitable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_media_change_detection_inhibited (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsMediaChangeDetectionInhibited"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_read_only (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsReadOnly"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_drive (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsDrive"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_optical_disc (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsOpticalDisc"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_mounted (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsMounted"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_device_mount_paths (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "DeviceMountPaths"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceMountPaths"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "DeviceMountPaths", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_device_mounted_by_uid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceMountedByUid"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_luks (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLuks"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_luks_cleartext (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLuksCleartext"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_linux_md_component (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLinuxMdComponent"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_linux_md (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLinuxMd"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_linux_lvm2_lv (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLinuxLvm2LV"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_linux_lvm2_pv (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLinuxLvm2PV"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_linux_dmmp_component (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLinuxDmmpComponent"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_linux_dmmp (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLinuxDmmp"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_is_linux_loop (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceIsLinuxLoop"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_device_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceSize"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_device_block_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceBlockSize"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_presentation_hide (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DevicePresentationHide"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_device_presentation_nopolicy (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DevicePresentationNopolicy"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_device_presentation_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DevicePresentationName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DevicePresentationIconName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_device_automount_hint (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DeviceAutomountHint"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_job_in_progress (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "JobInProgress"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_job_id (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "JobId"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_job_initiated_by_uid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "JobInitiatedByUid"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_job_is_cancellable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "JobIsCancellable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gdouble +org_freedesktop_udisks_device_proxy_get_job_percentage (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gdouble value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "JobPercentage"); + if (variant != NULL) + { + value = g_variant_get_double (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_id_usage (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdUsage"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_id_type (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdType"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_id_version (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdVersion"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_id_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_id_label (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdLabel"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_luks_holder (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LuksHolder"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LuksCleartextSlave"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_luks_cleartext_unlocked_by_uid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LuksCleartextUnlockedByUid"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_partition_slave (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionSlave"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_partition_scheme (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionScheme"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_partition_type (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionType"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_partition_label (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionLabel"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_partition_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_partition_flags (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "PartitionFlags"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionFlags"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "PartitionFlags", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static gint +org_freedesktop_udisks_device_proxy_get_partition_number (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionNumber"); + if (variant != NULL) + { + value = g_variant_get_int32 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_partition_offset (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionOffset"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_partition_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionSize"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_partition_alignment_offset (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionAlignmentOffset"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_partition_table_scheme (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionTableScheme"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gint +org_freedesktop_udisks_device_proxy_get_partition_table_count (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PartitionTableCount"); + if (variant != NULL) + { + value = g_variant_get_int32 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_vendor (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveVendor"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_model (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveModel"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_revision (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveRevision"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_serial (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveSerial"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_wwn (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveWwn"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_drive_rotation_rate (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveRotationRate"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_write_cache (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveWriteCache"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_connection_interface (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveConnectionInterface"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_drive_connection_speed (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveConnectionSpeed"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_drive_media_compatibility (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "DriveMediaCompatibility"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveMediaCompatibility"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "DriveMediaCompatibility", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_media (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveMedia"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_drive_is_media_ejectable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveIsMediaEjectable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_drive_can_detach (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveCanDetach"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_drive_can_spindown (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveCanSpindown"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_drive_is_rotational (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveIsRotational"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_adapter (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveAdapter"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_drive_ports (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DrivePorts"); + if (variant != NULL) + { + value = g_variant_get_objv (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_drive_similar_devices (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveSimilarDevices"); + if (variant != NULL) + { + value = g_variant_get_objv (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_optical_disc_is_blank (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "OpticalDiscIsBlank"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_optical_disc_is_appendable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "OpticalDiscIsAppendable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_optical_disc_is_closed (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "OpticalDiscIsClosed"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_optical_disc_num_tracks (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "OpticalDiscNumTracks"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_optical_disc_num_audio_tracks (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "OpticalDiscNumAudioTracks"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_optical_disc_num_sessions (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "OpticalDiscNumSessions"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_drive_ata_smart_is_available (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveAtaSmartIsAvailable"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_drive_ata_smart_time_collected (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveAtaSmartTimeCollected"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveAtaSmartStatus"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DriveAtaSmartBlob"); + if (variant != NULL) + { + value = g_variant_get_bytestring (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_component_level (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentLevel"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gint +org_freedesktop_udisks_device_proxy_get_linux_md_component_position (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentPosition"); + if (variant != NULL) + { + value = g_variant_get_int32 (variant); + g_variant_unref (variant); + } + return value; +} + +static gint +org_freedesktop_udisks_device_proxy_get_linux_md_component_num_raid_devices (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentNumRaidDevices"); + if (variant != NULL) + { + value = g_variant_get_int32 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_component_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentHomeHost"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_component_version (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentVersion"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_component_holder (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentHolder"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_linux_md_component_state (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "LinuxMdComponentState"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdComponentState"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "LinuxMdComponentState", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_state (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdState"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_level (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdLevel"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_home_host (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdHomeHost"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gint +org_freedesktop_udisks_device_proxy_get_linux_md_num_raid_devices (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdNumRaidDevices"); + if (variant != NULL) + { + value = g_variant_get_int32 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_version (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdVersion"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_linux_md_slaves (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdSlaves"); + if (variant != NULL) + { + value = g_variant_get_objv (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_device_proxy_get_linux_md_is_degraded (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdIsDegraded"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_md_sync_action (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdSyncAction"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gdouble +org_freedesktop_udisks_device_proxy_get_linux_md_sync_percentage (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + gdouble value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdSyncPercentage"); + if (variant != NULL) + { + value = g_variant_get_double (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_linux_md_sync_speed (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxMdSyncSpeed"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static guint +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvnum_metadata_areas (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVNumMetadataAreas"); + if (variant != NULL) + { + value = g_variant_get_uint32 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupSize"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_unallocated_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupUnallocatedSize"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_sequence_number (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupSequenceNumber"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static guint64 +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_extent_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + guint64 value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupExtentSize"); + if (variant != NULL) + { + value = g_variant_get_uint64 (variant); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "LinuxLvm2PVGroupPhysicalVolumes"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupPhysicalVolumes"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "LinuxLvm2PVGroupPhysicalVolumes", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + value = g_datalist_get_data (&proxy->priv->qdata, "LinuxLvm2PVGroupLogicalVolumes"); + if (value != NULL) + return value; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2PVGroupLogicalVolumes"); + if (variant != NULL) + { + value = g_variant_get_strv (variant, NULL); + g_datalist_set_data_full (&proxy->priv->qdata, "LinuxLvm2PVGroupLogicalVolumes", (gpointer) value, g_free); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2LVName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2LVUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2LVGroupName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLvm2LVGroupUuid"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxDmmpComponentHolder"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_dmmp_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxDmmpName"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_proxy_get_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *const *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxDmmpSlaves"); + if (variant != NULL) + { + value = g_variant_get_objv (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxDmmpParameters"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static const gchar * +org_freedesktop_udisks_device_proxy_get_linux_loop_filename (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceProxy *proxy = ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "LinuxLoopFilename"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static void +org_freedesktop_udisks_device_proxy_init (OrgFreedesktopUDisksDeviceProxy *proxy) +{ + proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY, OrgFreedesktopUDisksDeviceProxyPrivate); + g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_freedesktop_udisks_device_interface_info ()); +} + +static void +org_freedesktop_udisks_device_proxy_class_init (OrgFreedesktopUDisksDeviceProxyClass *klass) +{ + GObjectClass *gobject_class; + GDBusProxyClass *proxy_class; + + g_type_class_add_private (klass, sizeof (OrgFreedesktopUDisksDeviceProxyPrivate)); + + gobject_class = G_OBJECT_CLASS (klass); + gobject_class->finalize = org_freedesktop_udisks_device_proxy_finalize; + gobject_class->get_property = org_freedesktop_udisks_device_proxy_get_property; + gobject_class->set_property = org_freedesktop_udisks_device_proxy_set_property; + + proxy_class = G_DBUS_PROXY_CLASS (klass); + proxy_class->g_signal = org_freedesktop_udisks_device_proxy_g_signal; + proxy_class->g_properties_changed = org_freedesktop_udisks_device_proxy_g_properties_changed; + + + org_freedesktop_udisks_device_override_properties (gobject_class, 1); +} + +static void +org_freedesktop_udisks_device_proxy_iface_init (OrgFreedesktopUDisksDeviceIface *iface) +{ + iface->get_native_path = org_freedesktop_udisks_device_proxy_get_native_path; + iface->get_device_detection_time = org_freedesktop_udisks_device_proxy_get_device_detection_time; + iface->get_device_media_detection_time = org_freedesktop_udisks_device_proxy_get_device_media_detection_time; + iface->get_device_major = org_freedesktop_udisks_device_proxy_get_device_major; + iface->get_device_minor = org_freedesktop_udisks_device_proxy_get_device_minor; + iface->get_device_file = org_freedesktop_udisks_device_proxy_get_device_file; + iface->get_device_file_presentation = org_freedesktop_udisks_device_proxy_get_device_file_presentation; + iface->get_device_file_by_id = org_freedesktop_udisks_device_proxy_get_device_file_by_id; + iface->get_device_file_by_path = org_freedesktop_udisks_device_proxy_get_device_file_by_path; + iface->get_device_is_system_internal = org_freedesktop_udisks_device_proxy_get_device_is_system_internal; + iface->get_device_is_partition = org_freedesktop_udisks_device_proxy_get_device_is_partition; + iface->get_device_is_partition_table = org_freedesktop_udisks_device_proxy_get_device_is_partition_table; + iface->get_device_is_removable = org_freedesktop_udisks_device_proxy_get_device_is_removable; + iface->get_device_is_media_available = org_freedesktop_udisks_device_proxy_get_device_is_media_available; + iface->get_device_is_media_change_detected = org_freedesktop_udisks_device_proxy_get_device_is_media_change_detected; + iface->get_device_is_media_change_detection_polling = org_freedesktop_udisks_device_proxy_get_device_is_media_change_detection_polling; + iface->get_device_is_media_change_detection_inhibitable = org_freedesktop_udisks_device_proxy_get_device_is_media_change_detection_inhibitable; + iface->get_device_is_media_change_detection_inhibited = org_freedesktop_udisks_device_proxy_get_device_is_media_change_detection_inhibited; + iface->get_device_is_read_only = org_freedesktop_udisks_device_proxy_get_device_is_read_only; + iface->get_device_is_drive = org_freedesktop_udisks_device_proxy_get_device_is_drive; + iface->get_device_is_optical_disc = org_freedesktop_udisks_device_proxy_get_device_is_optical_disc; + iface->get_device_is_mounted = org_freedesktop_udisks_device_proxy_get_device_is_mounted; + iface->get_device_mount_paths = org_freedesktop_udisks_device_proxy_get_device_mount_paths; + iface->get_device_mounted_by_uid = org_freedesktop_udisks_device_proxy_get_device_mounted_by_uid; + iface->get_device_is_luks = org_freedesktop_udisks_device_proxy_get_device_is_luks; + iface->get_device_is_luks_cleartext = org_freedesktop_udisks_device_proxy_get_device_is_luks_cleartext; + iface->get_device_is_linux_md_component = org_freedesktop_udisks_device_proxy_get_device_is_linux_md_component; + iface->get_device_is_linux_md = org_freedesktop_udisks_device_proxy_get_device_is_linux_md; + iface->get_device_is_linux_lvm2_lv = org_freedesktop_udisks_device_proxy_get_device_is_linux_lvm2_lv; + iface->get_device_is_linux_lvm2_pv = org_freedesktop_udisks_device_proxy_get_device_is_linux_lvm2_pv; + iface->get_device_is_linux_dmmp_component = org_freedesktop_udisks_device_proxy_get_device_is_linux_dmmp_component; + iface->get_device_is_linux_dmmp = org_freedesktop_udisks_device_proxy_get_device_is_linux_dmmp; + iface->get_device_is_linux_loop = org_freedesktop_udisks_device_proxy_get_device_is_linux_loop; + iface->get_device_size = org_freedesktop_udisks_device_proxy_get_device_size; + iface->get_device_block_size = org_freedesktop_udisks_device_proxy_get_device_block_size; + iface->get_device_presentation_hide = org_freedesktop_udisks_device_proxy_get_device_presentation_hide; + iface->get_device_presentation_nopolicy = org_freedesktop_udisks_device_proxy_get_device_presentation_nopolicy; + iface->get_device_presentation_name = org_freedesktop_udisks_device_proxy_get_device_presentation_name; + iface->get_device_presentation_icon_name = org_freedesktop_udisks_device_proxy_get_device_presentation_icon_name; + iface->get_device_automount_hint = org_freedesktop_udisks_device_proxy_get_device_automount_hint; + iface->get_job_in_progress = org_freedesktop_udisks_device_proxy_get_job_in_progress; + iface->get_job_id = org_freedesktop_udisks_device_proxy_get_job_id; + iface->get_job_initiated_by_uid = org_freedesktop_udisks_device_proxy_get_job_initiated_by_uid; + iface->get_job_is_cancellable = org_freedesktop_udisks_device_proxy_get_job_is_cancellable; + iface->get_job_percentage = org_freedesktop_udisks_device_proxy_get_job_percentage; + iface->get_id_usage = org_freedesktop_udisks_device_proxy_get_id_usage; + iface->get_id_type = org_freedesktop_udisks_device_proxy_get_id_type; + iface->get_id_version = org_freedesktop_udisks_device_proxy_get_id_version; + iface->get_id_uuid = org_freedesktop_udisks_device_proxy_get_id_uuid; + iface->get_id_label = org_freedesktop_udisks_device_proxy_get_id_label; + iface->get_luks_holder = org_freedesktop_udisks_device_proxy_get_luks_holder; + iface->get_luks_cleartext_slave = org_freedesktop_udisks_device_proxy_get_luks_cleartext_slave; + iface->get_luks_cleartext_unlocked_by_uid = org_freedesktop_udisks_device_proxy_get_luks_cleartext_unlocked_by_uid; + iface->get_partition_slave = org_freedesktop_udisks_device_proxy_get_partition_slave; + iface->get_partition_scheme = org_freedesktop_udisks_device_proxy_get_partition_scheme; + iface->get_partition_type = org_freedesktop_udisks_device_proxy_get_partition_type; + iface->get_partition_label = org_freedesktop_udisks_device_proxy_get_partition_label; + iface->get_partition_uuid = org_freedesktop_udisks_device_proxy_get_partition_uuid; + iface->get_partition_flags = org_freedesktop_udisks_device_proxy_get_partition_flags; + iface->get_partition_number = org_freedesktop_udisks_device_proxy_get_partition_number; + iface->get_partition_offset = org_freedesktop_udisks_device_proxy_get_partition_offset; + iface->get_partition_size = org_freedesktop_udisks_device_proxy_get_partition_size; + iface->get_partition_alignment_offset = org_freedesktop_udisks_device_proxy_get_partition_alignment_offset; + iface->get_partition_table_scheme = org_freedesktop_udisks_device_proxy_get_partition_table_scheme; + iface->get_partition_table_count = org_freedesktop_udisks_device_proxy_get_partition_table_count; + iface->get_drive_vendor = org_freedesktop_udisks_device_proxy_get_drive_vendor; + iface->get_drive_model = org_freedesktop_udisks_device_proxy_get_drive_model; + iface->get_drive_revision = org_freedesktop_udisks_device_proxy_get_drive_revision; + iface->get_drive_serial = org_freedesktop_udisks_device_proxy_get_drive_serial; + iface->get_drive_wwn = org_freedesktop_udisks_device_proxy_get_drive_wwn; + iface->get_drive_rotation_rate = org_freedesktop_udisks_device_proxy_get_drive_rotation_rate; + iface->get_drive_write_cache = org_freedesktop_udisks_device_proxy_get_drive_write_cache; + iface->get_drive_connection_interface = org_freedesktop_udisks_device_proxy_get_drive_connection_interface; + iface->get_drive_connection_speed = org_freedesktop_udisks_device_proxy_get_drive_connection_speed; + iface->get_drive_media_compatibility = org_freedesktop_udisks_device_proxy_get_drive_media_compatibility; + iface->get_drive_media = org_freedesktop_udisks_device_proxy_get_drive_media; + iface->get_drive_is_media_ejectable = org_freedesktop_udisks_device_proxy_get_drive_is_media_ejectable; + iface->get_drive_can_detach = org_freedesktop_udisks_device_proxy_get_drive_can_detach; + iface->get_drive_can_spindown = org_freedesktop_udisks_device_proxy_get_drive_can_spindown; + iface->get_drive_is_rotational = org_freedesktop_udisks_device_proxy_get_drive_is_rotational; + iface->get_drive_adapter = org_freedesktop_udisks_device_proxy_get_drive_adapter; + iface->get_drive_ports = org_freedesktop_udisks_device_proxy_get_drive_ports; + iface->get_drive_similar_devices = org_freedesktop_udisks_device_proxy_get_drive_similar_devices; + iface->get_optical_disc_is_blank = org_freedesktop_udisks_device_proxy_get_optical_disc_is_blank; + iface->get_optical_disc_is_appendable = org_freedesktop_udisks_device_proxy_get_optical_disc_is_appendable; + iface->get_optical_disc_is_closed = org_freedesktop_udisks_device_proxy_get_optical_disc_is_closed; + iface->get_optical_disc_num_tracks = org_freedesktop_udisks_device_proxy_get_optical_disc_num_tracks; + iface->get_optical_disc_num_audio_tracks = org_freedesktop_udisks_device_proxy_get_optical_disc_num_audio_tracks; + iface->get_optical_disc_num_sessions = org_freedesktop_udisks_device_proxy_get_optical_disc_num_sessions; + iface->get_drive_ata_smart_is_available = org_freedesktop_udisks_device_proxy_get_drive_ata_smart_is_available; + iface->get_drive_ata_smart_time_collected = org_freedesktop_udisks_device_proxy_get_drive_ata_smart_time_collected; + iface->get_drive_ata_smart_status = org_freedesktop_udisks_device_proxy_get_drive_ata_smart_status; + iface->get_drive_ata_smart_blob = org_freedesktop_udisks_device_proxy_get_drive_ata_smart_blob; + iface->get_linux_md_component_level = org_freedesktop_udisks_device_proxy_get_linux_md_component_level; + iface->get_linux_md_component_position = org_freedesktop_udisks_device_proxy_get_linux_md_component_position; + iface->get_linux_md_component_num_raid_devices = org_freedesktop_udisks_device_proxy_get_linux_md_component_num_raid_devices; + iface->get_linux_md_component_uuid = org_freedesktop_udisks_device_proxy_get_linux_md_component_uuid; + iface->get_linux_md_component_name = org_freedesktop_udisks_device_proxy_get_linux_md_component_name; + iface->get_linux_md_component_home_host = org_freedesktop_udisks_device_proxy_get_linux_md_component_home_host; + iface->get_linux_md_component_version = org_freedesktop_udisks_device_proxy_get_linux_md_component_version; + iface->get_linux_md_component_holder = org_freedesktop_udisks_device_proxy_get_linux_md_component_holder; + iface->get_linux_md_component_state = org_freedesktop_udisks_device_proxy_get_linux_md_component_state; + iface->get_linux_md_state = org_freedesktop_udisks_device_proxy_get_linux_md_state; + iface->get_linux_md_level = org_freedesktop_udisks_device_proxy_get_linux_md_level; + iface->get_linux_md_uuid = org_freedesktop_udisks_device_proxy_get_linux_md_uuid; + iface->get_linux_md_home_host = org_freedesktop_udisks_device_proxy_get_linux_md_home_host; + iface->get_linux_md_name = org_freedesktop_udisks_device_proxy_get_linux_md_name; + iface->get_linux_md_num_raid_devices = org_freedesktop_udisks_device_proxy_get_linux_md_num_raid_devices; + iface->get_linux_md_version = org_freedesktop_udisks_device_proxy_get_linux_md_version; + iface->get_linux_md_slaves = org_freedesktop_udisks_device_proxy_get_linux_md_slaves; + iface->get_linux_md_is_degraded = org_freedesktop_udisks_device_proxy_get_linux_md_is_degraded; + iface->get_linux_md_sync_action = org_freedesktop_udisks_device_proxy_get_linux_md_sync_action; + iface->get_linux_md_sync_percentage = org_freedesktop_udisks_device_proxy_get_linux_md_sync_percentage; + iface->get_linux_md_sync_speed = org_freedesktop_udisks_device_proxy_get_linux_md_sync_speed; + iface->get_linux_lvm2_pvuuid = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvuuid; + iface->get_linux_lvm2_pvnum_metadata_areas = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvnum_metadata_areas; + iface->get_linux_lvm2_pvgroup_name = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_name; + iface->get_linux_lvm2_pvgroup_uuid = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_uuid; + iface->get_linux_lvm2_pvgroup_size = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_size; + iface->get_linux_lvm2_pvgroup_unallocated_size = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_unallocated_size; + iface->get_linux_lvm2_pvgroup_sequence_number = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_sequence_number; + iface->get_linux_lvm2_pvgroup_extent_size = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_extent_size; + iface->get_linux_lvm2_pvgroup_physical_volumes = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_physical_volumes; + iface->get_linux_lvm2_pvgroup_logical_volumes = org_freedesktop_udisks_device_proxy_get_linux_lvm2_pvgroup_logical_volumes; + iface->get_linux_lvm2_lvname = org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvname; + iface->get_linux_lvm2_lvuuid = org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvuuid; + iface->get_linux_lvm2_lvgroup_name = org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvgroup_name; + iface->get_linux_lvm2_lvgroup_uuid = org_freedesktop_udisks_device_proxy_get_linux_lvm2_lvgroup_uuid; + iface->get_linux_dmmp_component_holder = org_freedesktop_udisks_device_proxy_get_linux_dmmp_component_holder; + iface->get_linux_dmmp_name = org_freedesktop_udisks_device_proxy_get_linux_dmmp_name; + iface->get_linux_dmmp_slaves = org_freedesktop_udisks_device_proxy_get_linux_dmmp_slaves; + iface->get_linux_dmmp_parameters = org_freedesktop_udisks_device_proxy_get_linux_dmmp_parameters; + iface->get_linux_loop_filename = org_freedesktop_udisks_device_proxy_get_linux_loop_filename; +} + +/** + * org_freedesktop_udisks_device_proxy_new: + * @connection: A #GDBusConnection. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied. + * @user_data: User data to pass to @callback. + * + * Asynchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks.Device. See g_dbus_proxy_new() for more details. + * + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_proxy_new_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_proxy_new_sync() for the synchronous, blocking version of this constructor. + */ +void +org_freedesktop_udisks_device_proxy_new ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_async_initable_new_async (TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_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.Device", NULL); +} + +/** + * org_freedesktop_udisks_device_proxy_new_finish: + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_proxy_new(). + * @error: Return location for error or %NULL + * + * Finishes an operation started with org_freedesktop_udisks_device_proxy_new(). + * + * Returns: (transfer full) (type OrgFreedesktopUDisksDeviceProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisksDevice * +org_freedesktop_udisks_device_proxy_new_finish ( + GAsyncResult *res, + GError **error) +{ + GObject *ret; + GObject *source_object; + source_object = g_async_result_get_source_object (res); + ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); + g_object_unref (source_object); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS_DEVICE (ret); + else + return NULL; +} + +/** + * org_freedesktop_udisks_device_proxy_new_sync: + * @connection: A #GDBusConnection. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL + * + * Synchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks.Device. See g_dbus_proxy_new_sync() for more details. + * + * The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_proxy_new() for the asynchronous version of this constructor. + * + * Returns: (transfer full) (type OrgFreedesktopUDisksDeviceProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisksDevice * +org_freedesktop_udisks_device_proxy_new_sync ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error) +{ + GInitable *ret; + ret = g_initable_new (TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.UDisks.Device", NULL); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS_DEVICE (ret); + else + return NULL; +} + + +/** + * org_freedesktop_udisks_device_proxy_new_for_bus: + * @bus_type: A #GBusType. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: A bus name (well-known or unique). + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied. + * @user_data: User data to pass to @callback. + * + * Like org_freedesktop_udisks_device_proxy_new() but takes a #GBusType instead of a #GDBusConnection. + * + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_device_proxy_new_for_bus_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_device_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. + */ +void +org_freedesktop_udisks_device_proxy_new_for_bus ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_async_initable_new_async (TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_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.Device", NULL); +} + +/** + * org_freedesktop_udisks_device_proxy_new_for_bus_finish: + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_device_proxy_new_for_bus(). + * @error: Return location for error or %NULL + * + * Finishes an operation started with org_freedesktop_udisks_device_proxy_new_for_bus(). + * + * Returns: (transfer full) (type OrgFreedesktopUDisksDeviceProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisksDevice * +org_freedesktop_udisks_device_proxy_new_for_bus_finish ( + GAsyncResult *res, + GError **error) +{ + GObject *ret; + GObject *source_object; + source_object = g_async_result_get_source_object (res); + ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); + g_object_unref (source_object); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS_DEVICE (ret); + else + return NULL; +} + +/** + * org_freedesktop_udisks_device_proxy_new_for_bus_sync: + * @bus_type: A #GBusType. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: A bus name (well-known or unique). + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL + * + * Like org_freedesktop_udisks_device_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. + * + * The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_device_proxy_new_for_bus() for the asynchronous version of this constructor. + * + * Returns: (transfer full) (type OrgFreedesktopUDisksDeviceProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisksDevice * +org_freedesktop_udisks_device_proxy_new_for_bus_sync ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error) +{ + GInitable *ret; + ret = g_initable_new (TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_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.Device", NULL); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS_DEVICE (ret); + else + return NULL; +} + + +/* ------------------------------------------------------------------------ */ + +/** + * OrgFreedesktopUDisksDeviceSkeleton: + * + * The #OrgFreedesktopUDisksDeviceSkeleton structure contains only private data and should only be accessed using the provided API. + */ + +/** + * OrgFreedesktopUDisksDeviceSkeletonClass: + * @parent_class: The parent class. + * + * Class structure for #OrgFreedesktopUDisksDeviceSkeleton. + */ + +struct _OrgFreedesktopUDisksDeviceSkeletonPrivate +{ + GValueArray *properties; + GList *changed_properties; + GSource *changed_properties_idle_source; + GMainContext *context; + GMutex *lock; +}; + +static void +_org_freedesktop_udisks_device_skeleton_handle_method_call ( + GDBusConnection *connection, + const gchar *sender, + const gchar *object_path, + const gchar *interface_name, + const gchar *method_name, + GVariant *parameters, + GDBusMethodInvocation *invocation, + gpointer user_data) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (user_data); + _ExtendedGDBusMethodInfo *info; + GVariantIter iter; + GVariant *child; + GValue *paramv; + guint num_params; + guint num_extra; + guint n; + guint signal_id; + GValue return_value = {0}; + info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); + g_assert (info != NULL); + num_params = g_variant_n_children (parameters); + num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); + n = 0; + g_value_init (¶mv[n], TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE); + g_value_set_object (¶mv[n++], skeleton); + g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); + g_value_set_object (¶mv[n++], invocation); + if (info->pass_fdlist) + { +#ifdef G_OS_UNIX + g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); + g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); +#else + g_assert_not_reached (); +#endif + } + g_variant_iter_init (&iter, parameters); + while ((child = g_variant_iter_next_value (&iter)) != NULL) + { + _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; + if (arg_info->use_gvariant) + { + g_value_init (¶mv[n], G_TYPE_VARIANT); + g_value_set_variant (¶mv[n], child); + n++; + } + else + g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); + g_variant_unref (child); + } + signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE); + g_value_init (&return_value, G_TYPE_BOOLEAN); + g_signal_emitv (paramv, signal_id, 0, &return_value); + if (!g_value_get_boolean (&return_value)) + 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); + g_value_unset (&return_value); + for (n = 0; n < num_params + num_extra; n++) + g_value_unset (¶mv[n]); + g_free (paramv); +} + +static GVariant * +_org_freedesktop_udisks_device_skeleton_handle_get_property ( + GDBusConnection *connection, + const gchar *sender, + const gchar *object_path, + const gchar *interface_name, + const gchar *property_name, + GError **error, + gpointer user_data) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (user_data); + GValue value = {0}; + GParamSpec *pspec; + _ExtendedGDBusPropertyInfo *info; + GVariant *ret; + ret = NULL; + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_device_interface_info, property_name); + g_assert (info != NULL); + pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); + if (pspec == NULL) + { + g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); + } + else + { + g_value_init (&value, pspec->value_type); + g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); + ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); + g_value_unset (&value); + } + return ret; +} + +static gboolean +_org_freedesktop_udisks_device_skeleton_handle_set_property ( + GDBusConnection *connection, + const gchar *sender, + const gchar *object_path, + const gchar *interface_name, + const gchar *property_name, + GVariant *variant, + GError **error, + gpointer user_data) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (user_data); + GValue value = {0}; + GParamSpec *pspec; + _ExtendedGDBusPropertyInfo *info; + gboolean ret; + ret = FALSE; + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_device_interface_info, property_name); + g_assert (info != NULL); + pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); + if (pspec == NULL) + { + g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); + } + else + { + if (info->use_gvariant) + g_value_set_variant (&value, variant); + else + g_dbus_gvariant_to_gvalue (variant, &value); + g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); + g_value_unset (&value); + ret = TRUE; + } + return ret; +} + +static const GDBusInterfaceVTable _org_freedesktop_udisks_device_skeleton_vtable = +{ + _org_freedesktop_udisks_device_skeleton_handle_method_call, + _org_freedesktop_udisks_device_skeleton_handle_get_property, + _org_freedesktop_udisks_device_skeleton_handle_set_property +}; + +static GDBusInterfaceInfo * +org_freedesktop_udisks_device_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton) +{ + return org_freedesktop_udisks_device_interface_info (); +} + +static GDBusInterfaceVTable * +org_freedesktop_udisks_device_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton) +{ + return (GDBusInterfaceVTable *) &_org_freedesktop_udisks_device_skeleton_vtable; +} + +static GVariant * +org_freedesktop_udisks_device_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (_skeleton); + + GVariantBuilder builder; + guint n; + g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); + if (_org_freedesktop_udisks_device_interface_info.parent_struct.properties == NULL) + goto out; + for (n = 0; _org_freedesktop_udisks_device_interface_info.parent_struct.properties[n] != NULL; n++) + { + GDBusPropertyInfo *info = _org_freedesktop_udisks_device_interface_info.parent_struct.properties[n]; + if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) + { + GVariant *value; + value = _org_freedesktop_udisks_device_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.Device", info->name, NULL, skeleton); + if (value != NULL) + { + g_variant_take_ref (value); + g_variant_builder_add (&builder, "{sv}", info->name, value); + g_variant_unref (value); + } + } + } +out: + return g_variant_builder_end (&builder); +} + +static gboolean _org_freedesktop_udisks_device_emit_changed (gpointer user_data); + +static void +org_freedesktop_udisks_device_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (_skeleton); + gboolean emit_changed = FALSE; + + g_mutex_lock (skeleton->priv->lock); + if (skeleton->priv->changed_properties_idle_source != NULL) + { + g_source_destroy (skeleton->priv->changed_properties_idle_source); + skeleton->priv->changed_properties_idle_source = NULL; + emit_changed = TRUE; + } + g_mutex_unlock (skeleton->priv->lock); + + if (emit_changed) + _org_freedesktop_udisks_device_emit_changed (skeleton); +} + +static void +_org_freedesktop_udisks_device_on_signal_changed ( + OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks.Device", "Changed", + g_variant_new ("()"), NULL); +} + +static void +_org_freedesktop_udisks_device_on_signal_job_changed ( + OrgFreedesktopUDisksDevice *object, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + guint arg_job_initiated_by_uid, + gdouble arg_job_percentage) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks.Device", "JobChanged", + g_variant_new ("(bbsud)", + arg_job_in_progress, + arg_job_is_cancellable, + arg_job_id, + arg_job_initiated_by_uid, + arg_job_percentage), NULL); +} + +static void org_freedesktop_udisks_device_skeleton_iface_init (OrgFreedesktopUDisksDeviceIface *iface); +G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksDeviceSkeleton, org_freedesktop_udisks_device_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, + G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE, org_freedesktop_udisks_device_skeleton_iface_init)); + +static void +org_freedesktop_udisks_device_skeleton_finalize (GObject *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + g_value_array_free (skeleton->priv->properties); + g_list_foreach (skeleton->priv->changed_properties, (GFunc) _changed_property_free, NULL); + g_list_free (skeleton->priv->changed_properties); + if (skeleton->priv->changed_properties_idle_source != NULL) + g_source_destroy (skeleton->priv->changed_properties_idle_source); + if (skeleton->priv->context != NULL) + g_main_context_unref (skeleton->priv->context); + g_mutex_free (skeleton->priv->lock); + G_OBJECT_CLASS (org_freedesktop_udisks_device_skeleton_parent_class)->finalize (object); +} + +static void +org_freedesktop_udisks_device_skeleton_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + g_assert (prop_id != 0 && prop_id - 1 < 133); + g_mutex_lock (skeleton->priv->lock); + g_value_copy (&skeleton->priv->properties->values[prop_id - 1], value); + g_mutex_unlock (skeleton->priv->lock); +} + +static gboolean +_org_freedesktop_udisks_device_emit_changed (gpointer user_data) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (user_data); + GList *l; + GVariantBuilder builder; + GVariantBuilder invalidated_builder; + guint num_changes; + + g_mutex_lock (skeleton->priv->lock); + g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); + g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); + for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) + { + ChangedProperty *cp = l->data; + GVariant *variant; + const GValue *cur_value; + + cur_value = &skeleton->priv->properties->values[cp->prop_id - 1]; + if (!_g_value_equal (cur_value, &cp->orig_value)) + { + variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); + g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); + g_variant_unref (variant); + num_changes++; + } + } + if (num_changes > 0) + { + g_dbus_connection_emit_signal (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), + "org.freedesktop.DBus.Properties", + "PropertiesChanged", + g_variant_new ("(sa{sv}as)", + "org.freedesktop.UDisks.Device", + &builder, &invalidated_builder), + NULL); + } + else + { + g_variant_builder_clear (&builder); + g_variant_builder_clear (&invalidated_builder); + } + g_list_foreach (skeleton->priv->changed_properties, (GFunc) _changed_property_free, NULL); + g_list_free (skeleton->priv->changed_properties); + skeleton->priv->changed_properties = NULL; + skeleton->priv->changed_properties_idle_source = NULL; + g_mutex_unlock (skeleton->priv->lock); + return FALSE; +} + +static void +_org_freedesktop_udisks_device_schedule_emit_changed (OrgFreedesktopUDisksDeviceSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) +{ + ChangedProperty *cp; + GList *l; + cp = NULL; + for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) + { + ChangedProperty *i_cp = l->data; + if (i_cp->info == info) + { + cp = i_cp; + break; + } + } + if (cp == NULL) + { + cp = g_new0 (ChangedProperty, 1); + cp->prop_id = prop_id; + cp->info = info; + skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); + g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); + g_value_copy (orig_value, &cp->orig_value); + } +} + +static void +org_freedesktop_udisks_device_skeleton_notify (GObject *object, + GParamSpec *pspec) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + g_mutex_lock (skeleton->priv->lock); + if (skeleton->priv->changed_properties != NULL && + skeleton->priv->changed_properties_idle_source == NULL) + { + skeleton->priv->changed_properties_idle_source = g_idle_source_new (); + g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); + g_source_set_callback (skeleton->priv->changed_properties_idle_source, _org_freedesktop_udisks_device_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); + g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); + g_source_unref (skeleton->priv->changed_properties_idle_source); + } + g_mutex_unlock (skeleton->priv->lock); +} + +static void +org_freedesktop_udisks_device_skeleton_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + g_assert (prop_id != 0 && prop_id - 1 < 133); + g_mutex_lock (skeleton->priv->lock); + g_object_freeze_notify (object); + if (!_g_value_equal (value, &skeleton->priv->properties->values[prop_id - 1])) + { + if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL) + _org_freedesktop_udisks_device_schedule_emit_changed (skeleton, _org_freedesktop_udisks_device_property_info_pointers[prop_id - 1], prop_id, &skeleton->priv->properties->values[prop_id - 1]); + g_value_copy (value, &skeleton->priv->properties->values[prop_id - 1]); + g_object_notify_by_pspec (object, pspec); + } + g_mutex_unlock (skeleton->priv->lock); + g_object_thaw_notify (object); +} + +static void +org_freedesktop_udisks_device_skeleton_init (OrgFreedesktopUDisksDeviceSkeleton *skeleton) +{ + skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON, OrgFreedesktopUDisksDeviceSkeletonPrivate); + skeleton->priv->lock = g_mutex_new (); + skeleton->priv->context = g_main_context_get_thread_default (); + if (skeleton->priv->context != NULL) + g_main_context_ref (skeleton->priv->context); + skeleton->priv->properties = g_value_array_new (133); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[0], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[1], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[2], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[3], G_TYPE_INT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[4], G_TYPE_INT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[5], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[6], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[7], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[8], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[9], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[10], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[11], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[12], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[13], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[14], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[15], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[16], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[17], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[18], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[19], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[20], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[21], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[22], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[23], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[24], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[25], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[26], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[27], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[28], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[29], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[30], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[31], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[32], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[33], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[34], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[35], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[36], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[37], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[38], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[39], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[40], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[41], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[42], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[43], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[44], G_TYPE_DOUBLE); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[45], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[46], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[47], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[48], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[49], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[50], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[51], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[52], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[53], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[54], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[55], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[56], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[57], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[58], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[59], G_TYPE_INT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[60], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[61], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[62], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[63], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[64], G_TYPE_INT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[65], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[66], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[67], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[68], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[69], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[70], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[71], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[72], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[73], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[74], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[75], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[76], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[77], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[78], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[79], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[80], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[81], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[82], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[83], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[84], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[85], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[86], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[87], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[88], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[89], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[90], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[91], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[92], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[93], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[94], G_TYPE_INT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[95], G_TYPE_INT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[96], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[97], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[98], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[99], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[100], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[101], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[102], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[103], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[104], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[105], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[106], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[107], G_TYPE_INT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[108], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[109], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[110], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[111], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[112], G_TYPE_DOUBLE); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[113], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[114], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[115], G_TYPE_UINT); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[116], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[117], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[118], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[119], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[120], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[121], G_TYPE_UINT64); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[122], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[123], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[124], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[125], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[126], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[127], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[128], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[129], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[130], G_TYPE_STRV); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[131], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[132], G_TYPE_STRING); +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_native_path (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[0])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_device_detection_time (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[1])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_device_media_detection_time (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[2])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gint64 +org_freedesktop_udisks_device_skeleton_get_device_major (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_int64 (&(skeleton->priv->properties->values[3])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gint64 +org_freedesktop_udisks_device_skeleton_get_device_minor (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_int64 (&(skeleton->priv->properties->values[4])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_device_file (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[5])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_device_file_presentation (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[6])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_device_file_by_id (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[7])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_device_file_by_path (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[8])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_system_internal (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[9])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_partition (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[10])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_partition_table (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[11])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_removable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[12])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_media_available (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[13])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detected (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[14])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detection_polling (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[15])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detection_inhibitable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[16])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detection_inhibited (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[17])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_read_only (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[18])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_drive (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[19])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_optical_disc (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[20])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_mounted (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[21])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_device_mount_paths (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[22])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_device_mounted_by_uid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[23])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_luks (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[24])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_luks_cleartext (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[25])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_linux_md_component (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[26])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_linux_md (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[27])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_linux_lvm2_lv (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[28])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_linux_lvm2_pv (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[29])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_linux_dmmp_component (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[30])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_linux_dmmp (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[31])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_is_linux_loop (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[32])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_device_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[33])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_device_block_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[34])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_presentation_hide (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[35])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_device_presentation_nopolicy (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[36])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_device_presentation_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[37])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[38])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_device_automount_hint (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[39])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_job_in_progress (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[40])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_job_id (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[41])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_job_initiated_by_uid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[42])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_job_is_cancellable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[43])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gdouble +org_freedesktop_udisks_device_skeleton_get_job_percentage (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gdouble value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_double (&(skeleton->priv->properties->values[44])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_id_usage (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[45])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_id_type (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[46])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_id_version (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[47])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_id_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[48])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_id_label (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[49])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_luks_holder (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[50])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[51])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_luks_cleartext_unlocked_by_uid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[52])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_partition_slave (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[53])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_partition_scheme (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[54])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_partition_type (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[55])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_partition_label (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[56])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_partition_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[57])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_partition_flags (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[58])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gint +org_freedesktop_udisks_device_skeleton_get_partition_number (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_int (&(skeleton->priv->properties->values[59])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_partition_offset (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[60])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_partition_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[61])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_partition_alignment_offset (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[62])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_partition_table_scheme (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[63])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gint +org_freedesktop_udisks_device_skeleton_get_partition_table_count (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_int (&(skeleton->priv->properties->values[64])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_vendor (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[65])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_model (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[66])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_revision (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[67])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_serial (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[68])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_wwn (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[69])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_drive_rotation_rate (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[70])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_write_cache (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[71])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_connection_interface (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[72])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_drive_connection_speed (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[73])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_drive_media_compatibility (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[74])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_media (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[75])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_drive_is_media_ejectable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[76])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_drive_can_detach (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[77])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_drive_can_spindown (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[78])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_drive_is_rotational (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[79])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_adapter (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[80])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_drive_ports (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[81])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_drive_similar_devices (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[82])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_optical_disc_is_blank (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[83])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_optical_disc_is_appendable (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[84])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_optical_disc_is_closed (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[85])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_optical_disc_num_tracks (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[86])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_optical_disc_num_audio_tracks (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[87])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_optical_disc_num_sessions (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[88])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_is_available (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[89])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_time_collected (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[90])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[91])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[92])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_component_level (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[93])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gint +org_freedesktop_udisks_device_skeleton_get_linux_md_component_position (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_int (&(skeleton->priv->properties->values[94])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gint +org_freedesktop_udisks_device_skeleton_get_linux_md_component_num_raid_devices (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_int (&(skeleton->priv->properties->values[95])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[96])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_component_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[97])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[98])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_component_version (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[99])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_component_holder (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[100])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_linux_md_component_state (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[101])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_state (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[102])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_level (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[103])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[104])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_home_host (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[105])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[106])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gint +org_freedesktop_udisks_device_skeleton_get_linux_md_num_raid_devices (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_int (&(skeleton->priv->properties->values[107])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_version (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[108])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_linux_md_slaves (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[109])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_device_skeleton_get_linux_md_is_degraded (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[110])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_md_sync_action (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[111])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gdouble +org_freedesktop_udisks_device_skeleton_get_linux_md_sync_percentage (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + gdouble value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_double (&(skeleton->priv->properties->values[112])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_linux_md_sync_speed (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[113])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[114])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvnum_metadata_areas (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint (&(skeleton->priv->properties->values[115])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[116])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[117])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[118])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_unallocated_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[119])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_sequence_number (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[120])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static guint64 +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_extent_size (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + guint64 value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_uint64 (&(skeleton->priv->properties->values[121])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[122])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[123])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[124])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[125])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[126])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[127])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[128])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_dmmp_name (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[129])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar *const * +org_freedesktop_udisks_device_skeleton_get_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *const *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boxed (&(skeleton->priv->properties->values[130])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[131])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static const gchar * +org_freedesktop_udisks_device_skeleton_get_linux_loop_filename (OrgFreedesktopUDisksDevice *object) +{ + OrgFreedesktopUDisksDeviceSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[132])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static void +org_freedesktop_udisks_device_skeleton_class_init (OrgFreedesktopUDisksDeviceSkeletonClass *klass) +{ + GObjectClass *gobject_class; + GDBusInterfaceSkeletonClass *skeleton_class; + + g_type_class_add_private (klass, sizeof (OrgFreedesktopUDisksDeviceSkeletonPrivate)); + + gobject_class = G_OBJECT_CLASS (klass); + gobject_class->finalize = org_freedesktop_udisks_device_skeleton_finalize; + gobject_class->get_property = org_freedesktop_udisks_device_skeleton_get_property; + gobject_class->set_property = org_freedesktop_udisks_device_skeleton_set_property; + gobject_class->notify = org_freedesktop_udisks_device_skeleton_notify; + + + org_freedesktop_udisks_device_override_properties (gobject_class, 1); + + skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); + skeleton_class->get_info = org_freedesktop_udisks_device_skeleton_dbus_interface_get_info; + skeleton_class->get_properties = org_freedesktop_udisks_device_skeleton_dbus_interface_get_properties; + skeleton_class->flush = org_freedesktop_udisks_device_skeleton_dbus_interface_flush; + skeleton_class->get_vtable = org_freedesktop_udisks_device_skeleton_dbus_interface_get_vtable; +} + +static void +org_freedesktop_udisks_device_skeleton_iface_init (OrgFreedesktopUDisksDeviceIface *iface) +{ + iface->changed = _org_freedesktop_udisks_device_on_signal_changed; + iface->job_changed = _org_freedesktop_udisks_device_on_signal_job_changed; + iface->get_native_path = org_freedesktop_udisks_device_skeleton_get_native_path; + iface->get_device_detection_time = org_freedesktop_udisks_device_skeleton_get_device_detection_time; + iface->get_device_media_detection_time = org_freedesktop_udisks_device_skeleton_get_device_media_detection_time; + iface->get_device_major = org_freedesktop_udisks_device_skeleton_get_device_major; + iface->get_device_minor = org_freedesktop_udisks_device_skeleton_get_device_minor; + iface->get_device_file = org_freedesktop_udisks_device_skeleton_get_device_file; + iface->get_device_file_presentation = org_freedesktop_udisks_device_skeleton_get_device_file_presentation; + iface->get_device_file_by_id = org_freedesktop_udisks_device_skeleton_get_device_file_by_id; + iface->get_device_file_by_path = org_freedesktop_udisks_device_skeleton_get_device_file_by_path; + iface->get_device_is_system_internal = org_freedesktop_udisks_device_skeleton_get_device_is_system_internal; + iface->get_device_is_partition = org_freedesktop_udisks_device_skeleton_get_device_is_partition; + iface->get_device_is_partition_table = org_freedesktop_udisks_device_skeleton_get_device_is_partition_table; + iface->get_device_is_removable = org_freedesktop_udisks_device_skeleton_get_device_is_removable; + iface->get_device_is_media_available = org_freedesktop_udisks_device_skeleton_get_device_is_media_available; + iface->get_device_is_media_change_detected = org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detected; + iface->get_device_is_media_change_detection_polling = org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detection_polling; + iface->get_device_is_media_change_detection_inhibitable = org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detection_inhibitable; + iface->get_device_is_media_change_detection_inhibited = org_freedesktop_udisks_device_skeleton_get_device_is_media_change_detection_inhibited; + iface->get_device_is_read_only = org_freedesktop_udisks_device_skeleton_get_device_is_read_only; + iface->get_device_is_drive = org_freedesktop_udisks_device_skeleton_get_device_is_drive; + iface->get_device_is_optical_disc = org_freedesktop_udisks_device_skeleton_get_device_is_optical_disc; + iface->get_device_is_mounted = org_freedesktop_udisks_device_skeleton_get_device_is_mounted; + iface->get_device_mount_paths = org_freedesktop_udisks_device_skeleton_get_device_mount_paths; + iface->get_device_mounted_by_uid = org_freedesktop_udisks_device_skeleton_get_device_mounted_by_uid; + iface->get_device_is_luks = org_freedesktop_udisks_device_skeleton_get_device_is_luks; + iface->get_device_is_luks_cleartext = org_freedesktop_udisks_device_skeleton_get_device_is_luks_cleartext; + iface->get_device_is_linux_md_component = org_freedesktop_udisks_device_skeleton_get_device_is_linux_md_component; + iface->get_device_is_linux_md = org_freedesktop_udisks_device_skeleton_get_device_is_linux_md; + iface->get_device_is_linux_lvm2_lv = org_freedesktop_udisks_device_skeleton_get_device_is_linux_lvm2_lv; + iface->get_device_is_linux_lvm2_pv = org_freedesktop_udisks_device_skeleton_get_device_is_linux_lvm2_pv; + iface->get_device_is_linux_dmmp_component = org_freedesktop_udisks_device_skeleton_get_device_is_linux_dmmp_component; + iface->get_device_is_linux_dmmp = org_freedesktop_udisks_device_skeleton_get_device_is_linux_dmmp; + iface->get_device_is_linux_loop = org_freedesktop_udisks_device_skeleton_get_device_is_linux_loop; + iface->get_device_size = org_freedesktop_udisks_device_skeleton_get_device_size; + iface->get_device_block_size = org_freedesktop_udisks_device_skeleton_get_device_block_size; + iface->get_device_presentation_hide = org_freedesktop_udisks_device_skeleton_get_device_presentation_hide; + iface->get_device_presentation_nopolicy = org_freedesktop_udisks_device_skeleton_get_device_presentation_nopolicy; + iface->get_device_presentation_name = org_freedesktop_udisks_device_skeleton_get_device_presentation_name; + iface->get_device_presentation_icon_name = org_freedesktop_udisks_device_skeleton_get_device_presentation_icon_name; + iface->get_device_automount_hint = org_freedesktop_udisks_device_skeleton_get_device_automount_hint; + iface->get_job_in_progress = org_freedesktop_udisks_device_skeleton_get_job_in_progress; + iface->get_job_id = org_freedesktop_udisks_device_skeleton_get_job_id; + iface->get_job_initiated_by_uid = org_freedesktop_udisks_device_skeleton_get_job_initiated_by_uid; + iface->get_job_is_cancellable = org_freedesktop_udisks_device_skeleton_get_job_is_cancellable; + iface->get_job_percentage = org_freedesktop_udisks_device_skeleton_get_job_percentage; + iface->get_id_usage = org_freedesktop_udisks_device_skeleton_get_id_usage; + iface->get_id_type = org_freedesktop_udisks_device_skeleton_get_id_type; + iface->get_id_version = org_freedesktop_udisks_device_skeleton_get_id_version; + iface->get_id_uuid = org_freedesktop_udisks_device_skeleton_get_id_uuid; + iface->get_id_label = org_freedesktop_udisks_device_skeleton_get_id_label; + iface->get_luks_holder = org_freedesktop_udisks_device_skeleton_get_luks_holder; + iface->get_luks_cleartext_slave = org_freedesktop_udisks_device_skeleton_get_luks_cleartext_slave; + iface->get_luks_cleartext_unlocked_by_uid = org_freedesktop_udisks_device_skeleton_get_luks_cleartext_unlocked_by_uid; + iface->get_partition_slave = org_freedesktop_udisks_device_skeleton_get_partition_slave; + iface->get_partition_scheme = org_freedesktop_udisks_device_skeleton_get_partition_scheme; + iface->get_partition_type = org_freedesktop_udisks_device_skeleton_get_partition_type; + iface->get_partition_label = org_freedesktop_udisks_device_skeleton_get_partition_label; + iface->get_partition_uuid = org_freedesktop_udisks_device_skeleton_get_partition_uuid; + iface->get_partition_flags = org_freedesktop_udisks_device_skeleton_get_partition_flags; + iface->get_partition_number = org_freedesktop_udisks_device_skeleton_get_partition_number; + iface->get_partition_offset = org_freedesktop_udisks_device_skeleton_get_partition_offset; + iface->get_partition_size = org_freedesktop_udisks_device_skeleton_get_partition_size; + iface->get_partition_alignment_offset = org_freedesktop_udisks_device_skeleton_get_partition_alignment_offset; + iface->get_partition_table_scheme = org_freedesktop_udisks_device_skeleton_get_partition_table_scheme; + iface->get_partition_table_count = org_freedesktop_udisks_device_skeleton_get_partition_table_count; + iface->get_drive_vendor = org_freedesktop_udisks_device_skeleton_get_drive_vendor; + iface->get_drive_model = org_freedesktop_udisks_device_skeleton_get_drive_model; + iface->get_drive_revision = org_freedesktop_udisks_device_skeleton_get_drive_revision; + iface->get_drive_serial = org_freedesktop_udisks_device_skeleton_get_drive_serial; + iface->get_drive_wwn = org_freedesktop_udisks_device_skeleton_get_drive_wwn; + iface->get_drive_rotation_rate = org_freedesktop_udisks_device_skeleton_get_drive_rotation_rate; + iface->get_drive_write_cache = org_freedesktop_udisks_device_skeleton_get_drive_write_cache; + iface->get_drive_connection_interface = org_freedesktop_udisks_device_skeleton_get_drive_connection_interface; + iface->get_drive_connection_speed = org_freedesktop_udisks_device_skeleton_get_drive_connection_speed; + iface->get_drive_media_compatibility = org_freedesktop_udisks_device_skeleton_get_drive_media_compatibility; + iface->get_drive_media = org_freedesktop_udisks_device_skeleton_get_drive_media; + iface->get_drive_is_media_ejectable = org_freedesktop_udisks_device_skeleton_get_drive_is_media_ejectable; + iface->get_drive_can_detach = org_freedesktop_udisks_device_skeleton_get_drive_can_detach; + iface->get_drive_can_spindown = org_freedesktop_udisks_device_skeleton_get_drive_can_spindown; + iface->get_drive_is_rotational = org_freedesktop_udisks_device_skeleton_get_drive_is_rotational; + iface->get_drive_adapter = org_freedesktop_udisks_device_skeleton_get_drive_adapter; + iface->get_drive_ports = org_freedesktop_udisks_device_skeleton_get_drive_ports; + iface->get_drive_similar_devices = org_freedesktop_udisks_device_skeleton_get_drive_similar_devices; + iface->get_optical_disc_is_blank = org_freedesktop_udisks_device_skeleton_get_optical_disc_is_blank; + iface->get_optical_disc_is_appendable = org_freedesktop_udisks_device_skeleton_get_optical_disc_is_appendable; + iface->get_optical_disc_is_closed = org_freedesktop_udisks_device_skeleton_get_optical_disc_is_closed; + iface->get_optical_disc_num_tracks = org_freedesktop_udisks_device_skeleton_get_optical_disc_num_tracks; + iface->get_optical_disc_num_audio_tracks = org_freedesktop_udisks_device_skeleton_get_optical_disc_num_audio_tracks; + iface->get_optical_disc_num_sessions = org_freedesktop_udisks_device_skeleton_get_optical_disc_num_sessions; + iface->get_drive_ata_smart_is_available = org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_is_available; + iface->get_drive_ata_smart_time_collected = org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_time_collected; + iface->get_drive_ata_smart_status = org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_status; + iface->get_drive_ata_smart_blob = org_freedesktop_udisks_device_skeleton_get_drive_ata_smart_blob; + iface->get_linux_md_component_level = org_freedesktop_udisks_device_skeleton_get_linux_md_component_level; + iface->get_linux_md_component_position = org_freedesktop_udisks_device_skeleton_get_linux_md_component_position; + iface->get_linux_md_component_num_raid_devices = org_freedesktop_udisks_device_skeleton_get_linux_md_component_num_raid_devices; + iface->get_linux_md_component_uuid = org_freedesktop_udisks_device_skeleton_get_linux_md_component_uuid; + iface->get_linux_md_component_name = org_freedesktop_udisks_device_skeleton_get_linux_md_component_name; + iface->get_linux_md_component_home_host = org_freedesktop_udisks_device_skeleton_get_linux_md_component_home_host; + iface->get_linux_md_component_version = org_freedesktop_udisks_device_skeleton_get_linux_md_component_version; + iface->get_linux_md_component_holder = org_freedesktop_udisks_device_skeleton_get_linux_md_component_holder; + iface->get_linux_md_component_state = org_freedesktop_udisks_device_skeleton_get_linux_md_component_state; + iface->get_linux_md_state = org_freedesktop_udisks_device_skeleton_get_linux_md_state; + iface->get_linux_md_level = org_freedesktop_udisks_device_skeleton_get_linux_md_level; + iface->get_linux_md_uuid = org_freedesktop_udisks_device_skeleton_get_linux_md_uuid; + iface->get_linux_md_home_host = org_freedesktop_udisks_device_skeleton_get_linux_md_home_host; + iface->get_linux_md_name = org_freedesktop_udisks_device_skeleton_get_linux_md_name; + iface->get_linux_md_num_raid_devices = org_freedesktop_udisks_device_skeleton_get_linux_md_num_raid_devices; + iface->get_linux_md_version = org_freedesktop_udisks_device_skeleton_get_linux_md_version; + iface->get_linux_md_slaves = org_freedesktop_udisks_device_skeleton_get_linux_md_slaves; + iface->get_linux_md_is_degraded = org_freedesktop_udisks_device_skeleton_get_linux_md_is_degraded; + iface->get_linux_md_sync_action = org_freedesktop_udisks_device_skeleton_get_linux_md_sync_action; + iface->get_linux_md_sync_percentage = org_freedesktop_udisks_device_skeleton_get_linux_md_sync_percentage; + iface->get_linux_md_sync_speed = org_freedesktop_udisks_device_skeleton_get_linux_md_sync_speed; + iface->get_linux_lvm2_pvuuid = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvuuid; + iface->get_linux_lvm2_pvnum_metadata_areas = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvnum_metadata_areas; + iface->get_linux_lvm2_pvgroup_name = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_name; + iface->get_linux_lvm2_pvgroup_uuid = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_uuid; + iface->get_linux_lvm2_pvgroup_size = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_size; + iface->get_linux_lvm2_pvgroup_unallocated_size = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_unallocated_size; + iface->get_linux_lvm2_pvgroup_sequence_number = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_sequence_number; + iface->get_linux_lvm2_pvgroup_extent_size = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_extent_size; + iface->get_linux_lvm2_pvgroup_physical_volumes = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_physical_volumes; + iface->get_linux_lvm2_pvgroup_logical_volumes = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_pvgroup_logical_volumes; + iface->get_linux_lvm2_lvname = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvname; + iface->get_linux_lvm2_lvuuid = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvuuid; + iface->get_linux_lvm2_lvgroup_name = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvgroup_name; + iface->get_linux_lvm2_lvgroup_uuid = org_freedesktop_udisks_device_skeleton_get_linux_lvm2_lvgroup_uuid; + iface->get_linux_dmmp_component_holder = org_freedesktop_udisks_device_skeleton_get_linux_dmmp_component_holder; + iface->get_linux_dmmp_name = org_freedesktop_udisks_device_skeleton_get_linux_dmmp_name; + iface->get_linux_dmmp_slaves = org_freedesktop_udisks_device_skeleton_get_linux_dmmp_slaves; + iface->get_linux_dmmp_parameters = org_freedesktop_udisks_device_skeleton_get_linux_dmmp_parameters; + iface->get_linux_loop_filename = org_freedesktop_udisks_device_skeleton_get_linux_loop_filename; +} + +/** + * org_freedesktop_udisks_device_skeleton_new: + * + * Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks.Device. + * + * Returns: (transfer full) (type OrgFreedesktopUDisksDeviceSkeleton): The skeleton object. + */ +OrgFreedesktopUDisksDevice * +org_freedesktop_udisks_device_skeleton_new (void) +{ + return ORG_FREEDESKTOP_UDISKS_DEVICE (g_object_new (TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON, NULL)); +} + diff --git a/udisks-device.h b/udisks-device.h new file mode 100644 index 0000000..6b388c6 --- /dev/null +++ b/udisks-device.h @@ -0,0 +1,1798 @@ +/* + * Generated by gdbus-codegen 2.30.3. DO NOT EDIT. + * + * The license of this code is the same as for the source it was derived from. + */ + +#ifndef __UDISKS_DEVICE_H__ +#define __UDISKS_DEVICE_H__ + +#include + +G_BEGIN_DECLS + + +/* ------------------------------------------------------------------------ */ +/* Declarations for org.freedesktop.UDisks.Device */ + +#define TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE (org_freedesktop_udisks_device_get_type ()) +#define ORG_FREEDESKTOP_UDISKS_DEVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE, OrgFreedesktopUDisksDevice)) +#define IS_ORG_FREEDESKTOP_UDISKS_DEVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE)) +#define ORG_FREEDESKTOP_UDISKS_DEVICE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE, OrgFreedesktopUDisksDeviceIface)) + +struct _OrgFreedesktopUDisksDevice; +typedef struct _OrgFreedesktopUDisksDevice OrgFreedesktopUDisksDevice; +typedef struct _OrgFreedesktopUDisksDeviceIface OrgFreedesktopUDisksDeviceIface; + +struct _OrgFreedesktopUDisksDeviceIface +{ + GTypeInterface parent_iface; + + + + gboolean (*handle_drive_ata_smart_initiate_selftest) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_test, + const gchar *const *arg_options); + + gboolean (*handle_drive_ata_smart_refresh_data) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_drive_benchmark) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + gboolean arg_do_write_benchmark, + const gchar *const *arg_options); + + gboolean (*handle_drive_detach) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_drive_eject) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_drive_inhibit_polling) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_drive_poll_media) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_drive_set_spindown_timeout) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + gint arg_timeout_seconds, + const gchar *const *arg_options); + + gboolean (*handle_drive_uninhibit_polling) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_cookie); + + gboolean (*handle_drive_unset_spindown_timeout) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_cookie); + + gboolean (*handle_filesystem_check) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_filesystem_create) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_fstype, + const gchar *const *arg_options); + + gboolean (*handle_filesystem_list_open_files) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_filesystem_mount) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_filesystem_type, + const gchar *const *arg_options); + + gboolean (*handle_filesystem_set_label) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_new_label); + + gboolean (*handle_filesystem_unmount) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_job_cancel) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_linux_lvm2_lvstop) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_linux_md_add_spare) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_component, + const gchar *const *arg_options); + + gboolean (*handle_linux_md_check) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_linux_md_expand) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_components, + const gchar *const *arg_options); + + gboolean (*handle_linux_md_remove_component) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_component, + const gchar *const *arg_options); + + gboolean (*handle_linux_md_stop) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_luks_change_passphrase) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_current_passphrase, + const gchar *arg_new_passphrase); + + gboolean (*handle_luks_lock) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_luks_unlock) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_passphrase, + const gchar *const *arg_options); + + gboolean (*handle_partition_create) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + guint64 arg_offset, + guint64 arg_size, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions); + + gboolean (*handle_partition_delete) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_partition_modify) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags); + + gboolean (*handle_partition_table_create) ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *arg_scheme, + const gchar *const *arg_options); + + const gchar * (*get_device_automount_hint) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_device_block_size) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_device_detection_time) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_device_file) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_device_file_by_id) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_device_file_by_path) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_device_file_presentation) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_drive) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_linux_dmmp) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_linux_dmmp_component) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_linux_loop) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_linux_lvm2_lv) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_linux_lvm2_pv) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_linux_md) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_linux_md_component) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_luks) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_luks_cleartext) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_media_available) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_media_change_detected) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_media_change_detection_inhibitable) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_media_change_detection_inhibited) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_media_change_detection_polling) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_mounted) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_optical_disc) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_partition) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_partition_table) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_read_only) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_removable) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_is_system_internal) (OrgFreedesktopUDisksDevice *object); + + gint64 (*get_device_major) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_device_media_detection_time) (OrgFreedesktopUDisksDevice *object); + + gint64 (*get_device_minor) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_device_mount_paths) (OrgFreedesktopUDisksDevice *object); + + guint (*get_device_mounted_by_uid) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_presentation_hide) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_device_presentation_icon_name) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_device_presentation_name) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_device_presentation_nopolicy) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_device_size) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_adapter) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_ata_smart_blob) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_drive_ata_smart_is_available) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_ata_smart_status) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_drive_ata_smart_time_collected) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_drive_can_detach) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_drive_can_spindown) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_connection_interface) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_drive_connection_speed) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_drive_is_media_ejectable) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_drive_is_rotational) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_media) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_drive_media_compatibility) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_model) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_drive_ports) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_revision) (OrgFreedesktopUDisksDevice *object); + + guint (*get_drive_rotation_rate) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_serial) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_drive_similar_devices) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_vendor) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_write_cache) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_drive_wwn) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_id_label) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_id_type) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_id_usage) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_id_uuid) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_id_version) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_job_id) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_job_in_progress) (OrgFreedesktopUDisksDevice *object); + + guint (*get_job_initiated_by_uid) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_job_is_cancellable) (OrgFreedesktopUDisksDevice *object); + + gdouble (*get_job_percentage) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_dmmp_component_holder) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_dmmp_name) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_dmmp_parameters) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_linux_dmmp_slaves) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_loop_filename) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_lvm2_lvgroup_name) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_lvm2_lvgroup_uuid) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_lvm2_lvname) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_lvm2_lvuuid) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_linux_lvm2_pvgroup_extent_size) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_linux_lvm2_pvgroup_logical_volumes) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_lvm2_pvgroup_name) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_linux_lvm2_pvgroup_physical_volumes) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_linux_lvm2_pvgroup_sequence_number) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_linux_lvm2_pvgroup_size) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_linux_lvm2_pvgroup_unallocated_size) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_lvm2_pvgroup_uuid) (OrgFreedesktopUDisksDevice *object); + + guint (*get_linux_lvm2_pvnum_metadata_areas) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_lvm2_pvuuid) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_component_holder) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_component_home_host) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_component_level) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_component_name) (OrgFreedesktopUDisksDevice *object); + + gint (*get_linux_md_component_num_raid_devices) (OrgFreedesktopUDisksDevice *object); + + gint (*get_linux_md_component_position) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_linux_md_component_state) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_component_uuid) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_component_version) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_home_host) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_linux_md_is_degraded) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_level) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_name) (OrgFreedesktopUDisksDevice *object); + + gint (*get_linux_md_num_raid_devices) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_linux_md_slaves) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_state) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_sync_action) (OrgFreedesktopUDisksDevice *object); + + gdouble (*get_linux_md_sync_percentage) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_linux_md_sync_speed) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_uuid) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_linux_md_version) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_luks_cleartext_slave) (OrgFreedesktopUDisksDevice *object); + + guint (*get_luks_cleartext_unlocked_by_uid) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_luks_holder) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_native_path) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_optical_disc_is_appendable) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_optical_disc_is_blank) (OrgFreedesktopUDisksDevice *object); + + gboolean (*get_optical_disc_is_closed) (OrgFreedesktopUDisksDevice *object); + + guint (*get_optical_disc_num_audio_tracks) (OrgFreedesktopUDisksDevice *object); + + guint (*get_optical_disc_num_sessions) (OrgFreedesktopUDisksDevice *object); + + guint (*get_optical_disc_num_tracks) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_partition_alignment_offset) (OrgFreedesktopUDisksDevice *object); + + const gchar *const * (*get_partition_flags) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_partition_label) (OrgFreedesktopUDisksDevice *object); + + gint (*get_partition_number) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_partition_offset) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_partition_scheme) (OrgFreedesktopUDisksDevice *object); + + guint64 (*get_partition_size) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_partition_slave) (OrgFreedesktopUDisksDevice *object); + + gint (*get_partition_table_count) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_partition_table_scheme) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_partition_type) (OrgFreedesktopUDisksDevice *object); + + const gchar * (*get_partition_uuid) (OrgFreedesktopUDisksDevice *object); + + void (*changed) ( + OrgFreedesktopUDisksDevice *object); + + void (*job_changed) ( + OrgFreedesktopUDisksDevice *object, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + guint arg_job_initiated_by_uid, + gdouble arg_job_percentage); + +}; + +GType org_freedesktop_udisks_device_get_type (void) G_GNUC_CONST; + +GDBusInterfaceInfo *org_freedesktop_udisks_device_interface_info (void); +guint org_freedesktop_udisks_device_override_properties (GObjectClass *klass, guint property_id_begin); + + +/* D-Bus method call completion functions: */ +void org_freedesktop_udisks_device_complete_job_cancel ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_partition_table_create ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_partition_delete ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_partition_create ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *created_device); + +void org_freedesktop_udisks_device_complete_partition_modify ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_filesystem_create ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_filesystem_set_label ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_filesystem_mount ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *mount_path); + +void org_freedesktop_udisks_device_complete_filesystem_unmount ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_filesystem_check ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + gboolean is_clean); + +void org_freedesktop_udisks_device_complete_filesystem_list_open_files ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + GVariant *processes); + +void org_freedesktop_udisks_device_complete_luks_unlock ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *cleartext_device); + +void org_freedesktop_udisks_device_complete_luks_lock ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_luks_change_passphrase ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_linux_md_add_spare ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_linux_md_expand ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_linux_md_remove_component ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_linux_md_stop ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_linux_lvm2_lvstop ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_linux_md_check ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + guint64 number_of_errors); + +void org_freedesktop_udisks_device_complete_drive_inhibit_polling ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *cookie); + +void org_freedesktop_udisks_device_complete_drive_uninhibit_polling ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_drive_poll_media ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_drive_eject ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_drive_detach ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_drive_set_spindown_timeout ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + const gchar *cookie); + +void org_freedesktop_udisks_device_complete_drive_unset_spindown_timeout ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_drive_ata_smart_refresh_data ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_drive_ata_smart_initiate_selftest ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_device_complete_drive_benchmark ( + OrgFreedesktopUDisksDevice *object, + GDBusMethodInvocation *invocation, + GVariant *read_transfer_rate_results, + GVariant *write_transfer_rate_results, + GVariant *access_time_results); + + + +/* D-Bus signal emissions functions: */ +void org_freedesktop_udisks_device_emit_changed ( + OrgFreedesktopUDisksDevice *object); + +void org_freedesktop_udisks_device_emit_job_changed ( + OrgFreedesktopUDisksDevice *object, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + guint arg_job_initiated_by_uid, + gdouble arg_job_percentage); + + + +/* D-Bus method calls: */ +void org_freedesktop_udisks_device_call_job_cancel ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_job_cancel_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_job_cancel_sync ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_partition_table_create ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_scheme, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_partition_table_create_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_partition_table_create_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_scheme, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_partition_delete ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_partition_delete_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_partition_delete_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_partition_create ( + OrgFreedesktopUDisksDevice *proxy, + guint64 arg_offset, + guint64 arg_size, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_partition_create_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_created_device, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_partition_create_sync ( + OrgFreedesktopUDisksDevice *proxy, + guint64 arg_offset, + guint64 arg_size, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + gchar **out_created_device, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_partition_modify ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_partition_modify_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_partition_modify_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_type, + const gchar *arg_label, + const gchar *const *arg_flags, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_filesystem_create ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_fstype, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_filesystem_create_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_filesystem_create_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_fstype, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_filesystem_set_label ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_new_label, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_filesystem_set_label_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_filesystem_set_label_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_new_label, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_filesystem_mount ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_filesystem_type, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_filesystem_mount_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_mount_path, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_filesystem_mount_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_filesystem_type, + const gchar *const *arg_options, + gchar **out_mount_path, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_filesystem_unmount ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_filesystem_unmount_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_filesystem_unmount_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_filesystem_check ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_filesystem_check_finish ( + OrgFreedesktopUDisksDevice *proxy, + gboolean *out_is_clean, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_filesystem_check_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + gboolean *out_is_clean, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_filesystem_list_open_files ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_filesystem_list_open_files_finish ( + OrgFreedesktopUDisksDevice *proxy, + GVariant **out_processes, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_filesystem_list_open_files_sync ( + OrgFreedesktopUDisksDevice *proxy, + GVariant **out_processes, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_luks_unlock ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_passphrase, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_luks_unlock_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_cleartext_device, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_luks_unlock_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_passphrase, + const gchar *const *arg_options, + gchar **out_cleartext_device, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_luks_lock ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_luks_lock_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_luks_lock_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_luks_change_passphrase ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_current_passphrase, + const gchar *arg_new_passphrase, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_luks_change_passphrase_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_luks_change_passphrase_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_current_passphrase, + const gchar *arg_new_passphrase, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_linux_md_add_spare ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_linux_md_add_spare_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_linux_md_add_spare_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_linux_md_expand ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_linux_md_expand_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_linux_md_expand_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_linux_md_remove_component ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_linux_md_remove_component_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_linux_md_remove_component_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_component, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_linux_md_stop ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_linux_md_stop_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_linux_md_stop_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_linux_lvm2_lvstop ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_linux_lvm2_lvstop_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_linux_lvm2_lvstop_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_linux_md_check ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_linux_md_check_finish ( + OrgFreedesktopUDisksDevice *proxy, + guint64 *out_number_of_errors, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_linux_md_check_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + guint64 *out_number_of_errors, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_inhibit_polling ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_inhibit_polling_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_inhibit_polling_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_uninhibit_polling ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_uninhibit_polling_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_uninhibit_polling_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_poll_media ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_poll_media_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_poll_media_sync ( + OrgFreedesktopUDisksDevice *proxy, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_eject ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_eject_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_eject_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_detach ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_detach_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_detach_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_set_spindown_timeout ( + OrgFreedesktopUDisksDevice *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_set_spindown_timeout_finish ( + OrgFreedesktopUDisksDevice *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_set_spindown_timeout_sync ( + OrgFreedesktopUDisksDevice *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_unset_spindown_timeout ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_unset_spindown_timeout_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_ata_smart_refresh_data_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_test, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_finish ( + OrgFreedesktopUDisksDevice *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_ata_smart_initiate_selftest_sync ( + OrgFreedesktopUDisksDevice *proxy, + const gchar *arg_test, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_call_drive_benchmark ( + OrgFreedesktopUDisksDevice *proxy, + gboolean arg_do_write_benchmark, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_device_call_drive_benchmark_finish ( + OrgFreedesktopUDisksDevice *proxy, + GVariant **out_read_transfer_rate_results, + GVariant **out_write_transfer_rate_results, + GVariant **out_access_time_results, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_device_call_drive_benchmark_sync ( + OrgFreedesktopUDisksDevice *proxy, + gboolean arg_do_write_benchmark, + const gchar *const *arg_options, + GVariant **out_read_transfer_rate_results, + GVariant **out_write_transfer_rate_results, + GVariant **out_access_time_results, + GCancellable *cancellable, + GError **error); + + + +/* D-Bus property accessors: */ +const gchar *org_freedesktop_udisks_device_get_native_path (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_native_path (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_native_path (OrgFreedesktopUDisksDevice *object, const gchar *value); + +guint64 org_freedesktop_udisks_device_get_device_detection_time (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_detection_time (OrgFreedesktopUDisksDevice *object, guint64 value); + +guint64 org_freedesktop_udisks_device_get_device_media_detection_time (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_media_detection_time (OrgFreedesktopUDisksDevice *object, guint64 value); + +gint64 org_freedesktop_udisks_device_get_device_major (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_major (OrgFreedesktopUDisksDevice *object, gint64 value); + +gint64 org_freedesktop_udisks_device_get_device_minor (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_minor (OrgFreedesktopUDisksDevice *object, gint64 value); + +const gchar *org_freedesktop_udisks_device_get_device_file (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_device_file (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_file (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_device_file_presentation (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_device_file_presentation (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_file_presentation (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *const *org_freedesktop_udisks_device_get_device_file_by_id (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_device_file_by_id (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_file_by_id (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +const gchar *const *org_freedesktop_udisks_device_get_device_file_by_path (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_device_file_by_path (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_file_by_path (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +gboolean org_freedesktop_udisks_device_get_device_is_system_internal (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_system_internal (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_partition (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_partition (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_partition_table (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_partition_table (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_removable (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_removable (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_media_available (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_media_available (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_media_change_detected (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_media_change_detected (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_media_change_detection_polling (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_media_change_detection_polling (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_media_change_detection_inhibitable (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_media_change_detection_inhibitable (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_media_change_detection_inhibited (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_media_change_detection_inhibited (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_read_only (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_read_only (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_drive (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_drive (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_optical_disc (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_optical_disc (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_mounted (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_mounted (OrgFreedesktopUDisksDevice *object, gboolean value); + +const gchar *const *org_freedesktop_udisks_device_get_device_mount_paths (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_device_mount_paths (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_mount_paths (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +guint org_freedesktop_udisks_device_get_device_mounted_by_uid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_mounted_by_uid (OrgFreedesktopUDisksDevice *object, guint value); + +gboolean org_freedesktop_udisks_device_get_device_is_luks (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_luks (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_luks_cleartext (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_luks_cleartext (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_linux_md_component (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_linux_md_component (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_linux_md (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_linux_md (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_linux_lvm2_lv (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_linux_lvm2_lv (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_linux_lvm2_pv (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_linux_lvm2_pv (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_linux_dmmp_component (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_linux_dmmp_component (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_linux_dmmp (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_linux_dmmp (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_is_linux_loop (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_is_linux_loop (OrgFreedesktopUDisksDevice *object, gboolean value); + +guint64 org_freedesktop_udisks_device_get_device_size (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_size (OrgFreedesktopUDisksDevice *object, guint64 value); + +guint64 org_freedesktop_udisks_device_get_device_block_size (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_block_size (OrgFreedesktopUDisksDevice *object, guint64 value); + +gboolean org_freedesktop_udisks_device_get_device_presentation_hide (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_presentation_hide (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_device_presentation_nopolicy (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_presentation_nopolicy (OrgFreedesktopUDisksDevice *object, gboolean value); + +const gchar *org_freedesktop_udisks_device_get_device_presentation_name (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_device_presentation_name (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_presentation_name (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_presentation_icon_name (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_device_automount_hint (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_device_automount_hint (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_device_automount_hint (OrgFreedesktopUDisksDevice *object, const gchar *value); + +gboolean org_freedesktop_udisks_device_get_job_in_progress (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_job_in_progress (OrgFreedesktopUDisksDevice *object, gboolean value); + +const gchar *org_freedesktop_udisks_device_get_job_id (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_job_id (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_job_id (OrgFreedesktopUDisksDevice *object, const gchar *value); + +guint org_freedesktop_udisks_device_get_job_initiated_by_uid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_job_initiated_by_uid (OrgFreedesktopUDisksDevice *object, guint value); + +gboolean org_freedesktop_udisks_device_get_job_is_cancellable (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_job_is_cancellable (OrgFreedesktopUDisksDevice *object, gboolean value); + +gdouble org_freedesktop_udisks_device_get_job_percentage (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_job_percentage (OrgFreedesktopUDisksDevice *object, gdouble value); + +const gchar *org_freedesktop_udisks_device_get_id_usage (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_id_usage (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_id_usage (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_id_type (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_id_type (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_id_type (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_id_version (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_id_version (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_id_version (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_id_uuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_id_uuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_id_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_id_label (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_id_label (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_id_label (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_luks_holder (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_luks_holder (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_luks_holder (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_luks_cleartext_slave (OrgFreedesktopUDisksDevice *object, const gchar *value); + +guint org_freedesktop_udisks_device_get_luks_cleartext_unlocked_by_uid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_luks_cleartext_unlocked_by_uid (OrgFreedesktopUDisksDevice *object, guint value); + +const gchar *org_freedesktop_udisks_device_get_partition_slave (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_partition_slave (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_slave (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_partition_scheme (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_partition_scheme (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_scheme (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_partition_type (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_partition_type (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_type (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_partition_label (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_partition_label (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_label (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_partition_uuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_partition_uuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *const *org_freedesktop_udisks_device_get_partition_flags (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_partition_flags (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_flags (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +gint org_freedesktop_udisks_device_get_partition_number (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_number (OrgFreedesktopUDisksDevice *object, gint value); + +guint64 org_freedesktop_udisks_device_get_partition_offset (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_offset (OrgFreedesktopUDisksDevice *object, guint64 value); + +guint64 org_freedesktop_udisks_device_get_partition_size (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_size (OrgFreedesktopUDisksDevice *object, guint64 value); + +guint64 org_freedesktop_udisks_device_get_partition_alignment_offset (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_alignment_offset (OrgFreedesktopUDisksDevice *object, guint64 value); + +const gchar *org_freedesktop_udisks_device_get_partition_table_scheme (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_partition_table_scheme (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_table_scheme (OrgFreedesktopUDisksDevice *object, const gchar *value); + +gint org_freedesktop_udisks_device_get_partition_table_count (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_partition_table_count (OrgFreedesktopUDisksDevice *object, gint value); + +const gchar *org_freedesktop_udisks_device_get_drive_vendor (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_vendor (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_vendor (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_drive_model (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_model (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_model (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_drive_revision (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_revision (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_revision (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_drive_serial (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_serial (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_serial (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_drive_wwn (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_wwn (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_wwn (OrgFreedesktopUDisksDevice *object, const gchar *value); + +guint org_freedesktop_udisks_device_get_drive_rotation_rate (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_rotation_rate (OrgFreedesktopUDisksDevice *object, guint value); + +const gchar *org_freedesktop_udisks_device_get_drive_write_cache (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_write_cache (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_write_cache (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_drive_connection_interface (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_connection_interface (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_connection_interface (OrgFreedesktopUDisksDevice *object, const gchar *value); + +guint64 org_freedesktop_udisks_device_get_drive_connection_speed (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_connection_speed (OrgFreedesktopUDisksDevice *object, guint64 value); + +const gchar *const *org_freedesktop_udisks_device_get_drive_media_compatibility (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_drive_media_compatibility (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_media_compatibility (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +const gchar *org_freedesktop_udisks_device_get_drive_media (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_media (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_media (OrgFreedesktopUDisksDevice *object, const gchar *value); + +gboolean org_freedesktop_udisks_device_get_drive_is_media_ejectable (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_is_media_ejectable (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_drive_can_detach (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_can_detach (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_drive_can_spindown (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_can_spindown (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_drive_is_rotational (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_is_rotational (OrgFreedesktopUDisksDevice *object, gboolean value); + +const gchar *org_freedesktop_udisks_device_get_drive_adapter (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_adapter (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_adapter (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *const *org_freedesktop_udisks_device_get_drive_ports (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_drive_ports (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_ports (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +const gchar *const *org_freedesktop_udisks_device_get_drive_similar_devices (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_drive_similar_devices (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_similar_devices (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +gboolean org_freedesktop_udisks_device_get_optical_disc_is_blank (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_optical_disc_is_blank (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_optical_disc_is_appendable (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_optical_disc_is_appendable (OrgFreedesktopUDisksDevice *object, gboolean value); + +gboolean org_freedesktop_udisks_device_get_optical_disc_is_closed (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_optical_disc_is_closed (OrgFreedesktopUDisksDevice *object, gboolean value); + +guint org_freedesktop_udisks_device_get_optical_disc_num_tracks (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_optical_disc_num_tracks (OrgFreedesktopUDisksDevice *object, guint value); + +guint org_freedesktop_udisks_device_get_optical_disc_num_audio_tracks (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_optical_disc_num_audio_tracks (OrgFreedesktopUDisksDevice *object, guint value); + +guint org_freedesktop_udisks_device_get_optical_disc_num_sessions (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_optical_disc_num_sessions (OrgFreedesktopUDisksDevice *object, guint value); + +gboolean org_freedesktop_udisks_device_get_drive_ata_smart_is_available (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_ata_smart_is_available (OrgFreedesktopUDisksDevice *object, gboolean value); + +guint64 org_freedesktop_udisks_device_get_drive_ata_smart_time_collected (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_ata_smart_time_collected (OrgFreedesktopUDisksDevice *object, guint64 value); + +const gchar *org_freedesktop_udisks_device_get_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_ata_smart_status (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_drive_ata_smart_blob (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_component_level (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_component_level (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_level (OrgFreedesktopUDisksDevice *object, const gchar *value); + +gint org_freedesktop_udisks_device_get_linux_md_component_position (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_position (OrgFreedesktopUDisksDevice *object, gint value); + +gint org_freedesktop_udisks_device_get_linux_md_component_num_raid_devices (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_num_raid_devices (OrgFreedesktopUDisksDevice *object, gint value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_component_name (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_component_name (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_name (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_home_host (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_component_version (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_component_version (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_version (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_component_holder (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_component_holder (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_holder (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *const *org_freedesktop_udisks_device_get_linux_md_component_state (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_linux_md_component_state (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_component_state (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_state (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_state (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_state (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_level (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_level (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_level (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_uuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_uuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_home_host (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_home_host (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_home_host (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_name (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_name (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_name (OrgFreedesktopUDisksDevice *object, const gchar *value); + +gint org_freedesktop_udisks_device_get_linux_md_num_raid_devices (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_num_raid_devices (OrgFreedesktopUDisksDevice *object, gint value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_version (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_version (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_version (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *const *org_freedesktop_udisks_device_get_linux_md_slaves (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_linux_md_slaves (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_slaves (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +gboolean org_freedesktop_udisks_device_get_linux_md_is_degraded (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_is_degraded (OrgFreedesktopUDisksDevice *object, gboolean value); + +const gchar *org_freedesktop_udisks_device_get_linux_md_sync_action (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_md_sync_action (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_sync_action (OrgFreedesktopUDisksDevice *object, const gchar *value); + +gdouble org_freedesktop_udisks_device_get_linux_md_sync_percentage (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_sync_percentage (OrgFreedesktopUDisksDevice *object, gdouble value); + +guint64 org_freedesktop_udisks_device_get_linux_md_sync_speed (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_md_sync_speed (OrgFreedesktopUDisksDevice *object, guint64 value); + +const gchar *org_freedesktop_udisks_device_get_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvuuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +guint org_freedesktop_udisks_device_get_linux_lvm2_pvnum_metadata_areas (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvnum_metadata_areas (OrgFreedesktopUDisksDevice *object, guint value); + +const gchar *org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_name (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +guint64 org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_size (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_size (OrgFreedesktopUDisksDevice *object, guint64 value); + +guint64 org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_unallocated_size (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_unallocated_size (OrgFreedesktopUDisksDevice *object, guint64 value); + +guint64 org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_sequence_number (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_sequence_number (OrgFreedesktopUDisksDevice *object, guint64 value); + +guint64 org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_extent_size (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_extent_size (OrgFreedesktopUDisksDevice *object, guint64 value); + +const gchar *const *org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_physical_volumes (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +const gchar *const *org_freedesktop_udisks_device_get_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_pvgroup_logical_volumes (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +const gchar *org_freedesktop_udisks_device_get_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_lvname (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_lvuuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_lvgroup_name (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_lvm2_lvgroup_uuid (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_dmmp_component_holder (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_dmmp_name (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_dmmp_name (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_dmmp_name (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *const *org_freedesktop_udisks_device_get_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object); +gchar **org_freedesktop_udisks_device_dup_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_dmmp_slaves (OrgFreedesktopUDisksDevice *object, const gchar *const *value); + +const gchar *org_freedesktop_udisks_device_get_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_dmmp_parameters (OrgFreedesktopUDisksDevice *object, const gchar *value); + +const gchar *org_freedesktop_udisks_device_get_linux_loop_filename (OrgFreedesktopUDisksDevice *object); +gchar *org_freedesktop_udisks_device_dup_linux_loop_filename (OrgFreedesktopUDisksDevice *object); +void org_freedesktop_udisks_device_set_linux_loop_filename (OrgFreedesktopUDisksDevice *object, const gchar *value); + + +/* ---- */ + +#define TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY (org_freedesktop_udisks_device_proxy_get_type ()) +#define ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY, OrgFreedesktopUDisksDeviceProxy)) +#define ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY, OrgFreedesktopUDisksDeviceProxyClass)) +#define ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY, OrgFreedesktopUDisksDeviceProxyClass)) +#define IS_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY)) +#define IS_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_PROXY)) + +typedef struct _OrgFreedesktopUDisksDeviceProxy OrgFreedesktopUDisksDeviceProxy; +typedef struct _OrgFreedesktopUDisksDeviceProxyClass OrgFreedesktopUDisksDeviceProxyClass; +typedef struct _OrgFreedesktopUDisksDeviceProxyPrivate OrgFreedesktopUDisksDeviceProxyPrivate; + +struct _OrgFreedesktopUDisksDeviceProxy +{ + /*< private >*/ + GDBusProxy parent_instance; + OrgFreedesktopUDisksDeviceProxyPrivate *priv; +}; + +struct _OrgFreedesktopUDisksDeviceProxyClass +{ + GDBusProxyClass parent_class; +}; + +GType org_freedesktop_udisks_device_proxy_get_type (void) G_GNUC_CONST; + +void org_freedesktop_udisks_device_proxy_new ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +OrgFreedesktopUDisksDevice *org_freedesktop_udisks_device_proxy_new_finish ( + GAsyncResult *res, + GError **error); +OrgFreedesktopUDisksDevice *org_freedesktop_udisks_device_proxy_new_sync ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_device_proxy_new_for_bus ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +OrgFreedesktopUDisksDevice *org_freedesktop_udisks_device_proxy_new_for_bus_finish ( + GAsyncResult *res, + GError **error); +OrgFreedesktopUDisksDevice *org_freedesktop_udisks_device_proxy_new_for_bus_sync ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error); + + +/* ---- */ + +#define TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON (org_freedesktop_udisks_device_skeleton_get_type ()) +#define ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON, OrgFreedesktopUDisksDeviceSkeleton)) +#define ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON, OrgFreedesktopUDisksDeviceSkeletonClass)) +#define ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON, OrgFreedesktopUDisksDeviceSkeletonClass)) +#define IS_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON)) +#define IS_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_UDISKS_DEVICE_SKELETON)) + +typedef struct _OrgFreedesktopUDisksDeviceSkeleton OrgFreedesktopUDisksDeviceSkeleton; +typedef struct _OrgFreedesktopUDisksDeviceSkeletonClass OrgFreedesktopUDisksDeviceSkeletonClass; +typedef struct _OrgFreedesktopUDisksDeviceSkeletonPrivate OrgFreedesktopUDisksDeviceSkeletonPrivate; + +struct _OrgFreedesktopUDisksDeviceSkeleton +{ + /*< private >*/ + GDBusInterfaceSkeleton parent_instance; + OrgFreedesktopUDisksDeviceSkeletonPrivate *priv; +}; + +struct _OrgFreedesktopUDisksDeviceSkeletonClass +{ + GDBusInterfaceSkeletonClass parent_class; +}; + +GType org_freedesktop_udisks_device_skeleton_get_type (void) G_GNUC_CONST; + +OrgFreedesktopUDisksDevice *org_freedesktop_udisks_device_skeleton_new (void); + + +G_END_DECLS + +#endif /* __UDISKS_DEVICE_H__ */ diff --git a/udisks.c b/udisks.c new file mode 100644 index 0000000..40d10eb --- /dev/null +++ b/udisks.c @@ -0,0 +1,7755 @@ +/* + * Generated by gdbus-codegen 2.30.3. DO NOT EDIT. + * + * The license of this code is the same as for the source it was derived from. + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include "udisks.h" + +#ifdef G_OS_UNIX +# include +#endif + +typedef struct +{ + GDBusArgInfo parent_struct; + gboolean use_gvariant; +} _ExtendedGDBusArgInfo; + +typedef struct +{ + GDBusMethodInfo parent_struct; + const gchar *signal_name; + gboolean pass_fdlist; +} _ExtendedGDBusMethodInfo; + +typedef struct +{ + GDBusSignalInfo parent_struct; + const gchar *signal_name; +} _ExtendedGDBusSignalInfo; + +typedef struct +{ + GDBusPropertyInfo parent_struct; + const gchar *hyphen_name; + gboolean use_gvariant; +} _ExtendedGDBusPropertyInfo; + +typedef struct +{ + GDBusInterfaceInfo parent_struct; + const gchar *hyphen_name; +} _ExtendedGDBusInterfaceInfo; + +typedef struct +{ + const _ExtendedGDBusPropertyInfo *info; + guint prop_id; + GValue orig_value; /* the value before the change */ +} ChangedProperty; + +static void +_changed_property_free (ChangedProperty *data) +{ + g_value_unset (&data->orig_value); + g_free (data); +} + +static gboolean +_g_strv_equal0 (gchar **a, gchar **b) +{ + gboolean ret = FALSE; + guint n; + if (a == NULL && b == NULL) + { + ret = TRUE; + goto out; + } + if (a == NULL || b == NULL) + goto out; + if (g_strv_length (a) != g_strv_length (b)) + goto out; + for (n = 0; a[n] != NULL; n++) + if (g_strcmp0 (a[n], b[n]) != 0) + goto out; + ret = TRUE; +out: + return ret; +} + +static gboolean +_g_variant_equal0 (GVariant *a, GVariant *b) +{ + gboolean ret = FALSE; + if (a == NULL && b == NULL) + { + ret = TRUE; + goto out; + } + if (a == NULL || b == NULL) + goto out; + ret = g_variant_equal (a, b); +out: + return ret; +} + +G_GNUC_UNUSED static gboolean +_g_value_equal (const GValue *a, const GValue *b) +{ + gboolean ret = FALSE; + g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); + switch (G_VALUE_TYPE (a)) + { + case G_TYPE_BOOLEAN: + ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); + break; + case G_TYPE_UCHAR: + ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); + break; + case G_TYPE_INT: + ret = (g_value_get_int (a) == g_value_get_int (b)); + break; + case G_TYPE_UINT: + ret = (g_value_get_uint (a) == g_value_get_uint (b)); + break; + case G_TYPE_INT64: + ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); + break; + case G_TYPE_UINT64: + ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); + break; + case G_TYPE_DOUBLE: + ret = (g_value_get_double (a) == g_value_get_double (b)); + break; + case G_TYPE_STRING: + ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); + break; + case G_TYPE_VARIANT: + ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); + break; + default: + if (G_VALUE_TYPE (a) == G_TYPE_STRV) + ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); + else + g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); + break; + } + return ret; +} + +/* ------------------------------------------------------------------------ + * Code for interface org.freedesktop.UDisks + * ------------------------------------------------------------------------ + */ + +/** + * SECTION:OrgFreedesktopUDisks + * @title: OrgFreedesktopUDisks + * @short_description: Generated C code for the org.freedesktop.UDisks D-Bus interface + * + * This section contains code for working with the org.freedesktop.UDisks D-Bus interface in C. + */ + +/* ---- Introspection data for org.freedesktop.UDisks ---- */ + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_devices = +{ + { + -1, + "devices", + "ao", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_devices, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_adapters_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_adapters_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_enumerate_adapters_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_adapters = +{ + { + -1, + "EnumerateAdapters", + NULL, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_adapters_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_adapters_annotation_info_pointers + }, + "handle-enumerate-adapters", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_devices = +{ + { + -1, + "devices", + "ao", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_devices, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_expanders_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_expanders_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_enumerate_expanders_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_expanders = +{ + { + -1, + "EnumerateExpanders", + NULL, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_expanders_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_expanders_annotation_info_pointers + }, + "handle-enumerate-expanders", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_devices = +{ + { + -1, + "devices", + "ao", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_devices, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_ports_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_ports_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_enumerate_ports_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_ports = +{ + { + -1, + "EnumeratePorts", + NULL, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_ports_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_ports_annotation_info_pointers + }, + "handle-enumerate-ports", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_devices = +{ + { + -1, + "devices", + "ao", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_devices, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_devices_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_devices_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_enumerate_devices_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_devices = +{ + { + -1, + "EnumerateDevices", + NULL, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_devices_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_devices_annotation_info_pointers + }, + "handle-enumerate-devices", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_device_files = +{ + { + -1, + "device_files", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_device_files, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_enumerate_device_files_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_enumerate_device_files_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_enumerate_device_files_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_enumerate_device_files = +{ + { + -1, + "EnumerateDeviceFiles", + NULL, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_enumerate_device_files_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_enumerate_device_files_annotation_info_pointers + }, + "handle-enumerate-device-files", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_device_file = +{ + { + -1, + "device_file", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_device_file, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_device, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_find_device_by_device_file = +{ + { + -1, + "FindDeviceByDeviceFile", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_device_file_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_device_file_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_find_device_by_device_file_annotation_info_pointers + }, + "handle-find-device-by-device-file", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_major = +{ + { + -1, + "device_major", + "x", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_minor = +{ + { + -1, + "device_minor", + "x", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_major, + &_org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_device_minor, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_device, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_find_device_by_major_minor = +{ + { + -1, + "FindDeviceByMajorMinor", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_major_minor_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_find_device_by_major_minor_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_find_device_by_major_minor_annotation_info_pointers + }, + "handle-find-device-by-major-minor", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_inhibit_all_polling = +{ + { + -1, + "DriveInhibitAllPolling", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_inhibit_all_polling_annotation_info_pointers + }, + "handle-drive-inhibit-all-polling", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_uninhibit_all_polling = +{ + { + -1, + "DriveUninhibitAllPolling", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_uninhibit_all_polling_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_uninhibit_all_polling_annotation_info_pointers + }, + "handle-drive-uninhibit-all-polling", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_timeout_seconds = +{ + { + -1, + "timeout_seconds", + "i", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_timeout_seconds, + &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts = +{ + { + -1, + "DriveSetAllSpindownTimeouts", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_set_all_spindown_timeouts_annotation_info_pointers + }, + "handle-drive-set-all-spindown-timeouts", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts = +{ + { + -1, + "DriveUnsetAllSpindownTimeouts", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_drive_unset_all_spindown_timeouts_annotation_info_pointers + }, + "handle-drive-unset-all-spindown-timeouts", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_uuid = +{ + { + -1, + "uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstart = +{ + { + -1, + "LinuxLvm2VGStart", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgstart_annotation_info_pointers + }, + "handle-linux-lvm2-vgstart", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_uuid = +{ + { + -1, + "uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgstop = +{ + { + -1, + "LinuxLvm2VGStop", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgstop_annotation_info_pointers + }, + "handle-linux-lvm2-vgstop", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_uuid = +{ + { + -1, + "uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_name = +{ + { + -1, + "name", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_name, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgset_name = +{ + { + -1, + "LinuxLvm2VGSetName", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgset_name_annotation_info_pointers + }, + "handle-linux-lvm2-vgset-name", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_uuid = +{ + { + -1, + "uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_physical_volume = +{ + { + -1, + "physical_volume", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_physical_volume, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv = +{ + { + -1, + "LinuxLvm2VGAddPV", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgadd_pv_annotation_info_pointers + }, + "handle-linux-lvm2-vgadd-pv", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_vg_uuid = +{ + { + -1, + "vg_uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pv_uuid = +{ + { + -1, + "pv_uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_vg_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pv_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv = +{ + { + -1, + "LinuxLvm2VGRemovePV", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_vgremove_pv_annotation_info_pointers + }, + "handle-linux-lvm2-vgremove-pv", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_group_uuid = +{ + { + -1, + "group_uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_uuid = +{ + { + -1, + "uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_name = +{ + { + -1, + "name", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_group_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_name, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvset_name = +{ + { + -1, + "LinuxLvm2LVSetName", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvset_name_annotation_info_pointers + }, + "handle-linux-lvm2-lvset-name", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_group_uuid = +{ + { + -1, + "group_uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_uuid = +{ + { + -1, + "uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_group_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvstart = +{ + { + -1, + "LinuxLvm2LVStart", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvstart_annotation_info_pointers + }, + "handle-linux-lvm2-lvstart", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_group_uuid = +{ + { + -1, + "group_uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_uuid = +{ + { + -1, + "uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_group_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_options, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvremove = +{ + { + -1, + "LinuxLvm2LVRemove", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvremove_annotation_info_pointers + }, + "handle-linux-lvm2-lvremove", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_group_uuid = +{ + { + -1, + "group_uuid", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_name = +{ + { + -1, + "name", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_size = +{ + { + -1, + "size", + "t", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_stripes = +{ + { + -1, + "num_stripes", + "u", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_stripe_size = +{ + { + -1, + "stripe_size", + "t", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_mirrors = +{ + { + -1, + "num_mirrors", + "u", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fstype = +{ + { + -1, + "fstype", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fsoptions = +{ + { + -1, + "fsoptions", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_group_uuid, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_name, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_size, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_stripes, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_stripe_size, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_num_mirrors, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_options, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fstype, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_fsoptions, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_created_device = +{ + { + -1, + "created_device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_created_device, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_lvm2_lvcreate = +{ + { + -1, + "LinuxLvm2LVCreate", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_lvm2_lvcreate_annotation_info_pointers + }, + "handle-linux-lvm2-lvcreate", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_components = +{ + { + -1, + "components", + "ao", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_components, + &_org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_device, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_md_start_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_md_start_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_md_start_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_md_start = +{ + { + -1, + "LinuxMdStart", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_start_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_start_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_md_start_annotation_info_pointers + }, + "handle-linux-md-start", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_components = +{ + { + -1, + "components", + "ao", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_level = +{ + { + -1, + "level", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_stripe_size = +{ + { + -1, + "stripe_size", + "t", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_name = +{ + { + -1, + "name", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_options = +{ + { + -1, + "options", + "as", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_components, + &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_level, + &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_stripe_size, + &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_name, + &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_options, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_device, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_linux_md_create_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_linux_md_create_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_linux_md_create_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_linux_md_create = +{ + { + -1, + "LinuxMdCreate", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_create_IN_ARG_pointers, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_linux_md_create_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_linux_md_create_annotation_info_pointers + }, + "handle-linux-md-create", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_inhibit_OUT_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_inhibit_OUT_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_inhibit_OUT_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_inhibit_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_inhibit_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_inhibit_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_inhibit = +{ + { + -1, + "Inhibit", + NULL, + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_inhibit_OUT_ARG_pointers, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_inhibit_annotation_info_pointers + }, + "handle-inhibit", + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_method_info_uninhibit_IN_ARG_cookie = +{ + { + -1, + "cookie", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_method_info_uninhibit_IN_ARG_pointers[] = +{ + &_org_freedesktop_udisks_method_info_uninhibit_IN_ARG_cookie, + NULL +}; + +static const GDBusAnnotationInfo _org_freedesktop_udisks_method_uninhibit_annotation_info_0 = +{ + -1, + "org.freedesktop.DBus.GLib.Async", + "", + NULL +}; + +static const GDBusAnnotationInfo * const _org_freedesktop_udisks_method_uninhibit_annotation_info_pointers[] = +{ + &_org_freedesktop_udisks_method_uninhibit_annotation_info_0, + NULL +}; + +static const _ExtendedGDBusMethodInfo _org_freedesktop_udisks_method_info_uninhibit = +{ + { + -1, + "Uninhibit", + (GDBusArgInfo **) &_org_freedesktop_udisks_method_info_uninhibit_IN_ARG_pointers, + NULL, + (GDBusAnnotationInfo **) &_org_freedesktop_udisks_method_uninhibit_annotation_info_pointers + }, + "handle-uninhibit", + FALSE +}; + +static const _ExtendedGDBusMethodInfo * const _org_freedesktop_udisks_method_info_pointers[] = +{ + &_org_freedesktop_udisks_method_info_enumerate_adapters, + &_org_freedesktop_udisks_method_info_enumerate_expanders, + &_org_freedesktop_udisks_method_info_enumerate_ports, + &_org_freedesktop_udisks_method_info_enumerate_devices, + &_org_freedesktop_udisks_method_info_enumerate_device_files, + &_org_freedesktop_udisks_method_info_find_device_by_device_file, + &_org_freedesktop_udisks_method_info_find_device_by_major_minor, + &_org_freedesktop_udisks_method_info_drive_inhibit_all_polling, + &_org_freedesktop_udisks_method_info_drive_uninhibit_all_polling, + &_org_freedesktop_udisks_method_info_drive_set_all_spindown_timeouts, + &_org_freedesktop_udisks_method_info_drive_unset_all_spindown_timeouts, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgstart, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgstop, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgset_name, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgadd_pv, + &_org_freedesktop_udisks_method_info_linux_lvm2_vgremove_pv, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvset_name, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvstart, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvremove, + &_org_freedesktop_udisks_method_info_linux_lvm2_lvcreate, + &_org_freedesktop_udisks_method_info_linux_md_start, + &_org_freedesktop_udisks_method_info_linux_md_create, + &_org_freedesktop_udisks_method_info_inhibit, + &_org_freedesktop_udisks_method_info_uninhibit, + NULL +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_added_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_added_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_device_added_ARG_device, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_added = +{ + { + -1, + "DeviceAdded", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_added_ARG_pointers, + NULL + }, + "device-added" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_removed_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_removed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_device_removed_ARG_device, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_removed = +{ + { + -1, + "DeviceRemoved", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_removed_ARG_pointers, + NULL + }, + "device-removed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_changed_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_changed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_device_changed_ARG_device, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_changed = +{ + { + -1, + "DeviceChanged", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_changed_ARG_pointers, + NULL + }, + "device-changed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_device = +{ + { + -1, + "device", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_in_progress = +{ + { + -1, + "job_in_progress", + "b", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_is_cancellable = +{ + { + -1, + "job_is_cancellable", + "b", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_id = +{ + { + -1, + "job_id", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_num_tasks = +{ + { + -1, + "job_num_tasks", + "i", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task = +{ + { + -1, + "job_cur_task", + "i", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_id = +{ + { + -1, + "job_cur_task_id", + "s", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_percentage = +{ + { + -1, + "job_cur_task_percentage", + "d", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_device_job_changed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_device, + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_in_progress, + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_is_cancellable, + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_id, + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_num_tasks, + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task, + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_id, + &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_job_cur_task_percentage, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_device_job_changed = +{ + { + -1, + "DeviceJobChanged", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_device_job_changed_ARG_pointers, + NULL + }, + "device-job-changed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_adapter_added_ARG_adapter = +{ + { + -1, + "adapter", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_adapter_added_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_adapter_added_ARG_adapter, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_adapter_added = +{ + { + -1, + "AdapterAdded", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_adapter_added_ARG_pointers, + NULL + }, + "adapter-added" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_adapter_removed_ARG_adapter = +{ + { + -1, + "adapter", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_adapter_removed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_adapter_removed_ARG_adapter, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_adapter_removed = +{ + { + -1, + "AdapterRemoved", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_adapter_removed_ARG_pointers, + NULL + }, + "adapter-removed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_adapter_changed_ARG_adapter = +{ + { + -1, + "adapter", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_adapter_changed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_adapter_changed_ARG_adapter, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_adapter_changed = +{ + { + -1, + "AdapterChanged", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_adapter_changed_ARG_pointers, + NULL + }, + "adapter-changed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_expander_added_ARG_expander = +{ + { + -1, + "expander", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_expander_added_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_expander_added_ARG_expander, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_expander_added = +{ + { + -1, + "ExpanderAdded", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_expander_added_ARG_pointers, + NULL + }, + "expander-added" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_expander_removed_ARG_expander = +{ + { + -1, + "expander", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_expander_removed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_expander_removed_ARG_expander, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_expander_removed = +{ + { + -1, + "ExpanderRemoved", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_expander_removed_ARG_pointers, + NULL + }, + "expander-removed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_expander_changed_ARG_expander = +{ + { + -1, + "expander", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_expander_changed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_expander_changed_ARG_expander, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_expander_changed = +{ + { + -1, + "ExpanderChanged", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_expander_changed_ARG_pointers, + NULL + }, + "expander-changed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_port_added_ARG_port = +{ + { + -1, + "port", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_port_added_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_port_added_ARG_port, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_port_added = +{ + { + -1, + "PortAdded", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_port_added_ARG_pointers, + NULL + }, + "port-added" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_port_removed_ARG_port = +{ + { + -1, + "port", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_port_removed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_port_removed_ARG_port, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_port_removed = +{ + { + -1, + "PortRemoved", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_port_removed_ARG_pointers, + NULL + }, + "port-removed" +}; + +static const _ExtendedGDBusArgInfo _org_freedesktop_udisks_signal_info_port_changed_ARG_port = +{ + { + -1, + "port", + "o", + NULL + }, + FALSE +}; + +static const _ExtendedGDBusArgInfo * const _org_freedesktop_udisks_signal_info_port_changed_ARG_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_port_changed_ARG_port, + NULL +}; + +static const _ExtendedGDBusSignalInfo _org_freedesktop_udisks_signal_info_port_changed = +{ + { + -1, + "PortChanged", + (GDBusArgInfo **) &_org_freedesktop_udisks_signal_info_port_changed_ARG_pointers, + NULL + }, + "port-changed" +}; + +static const _ExtendedGDBusSignalInfo * const _org_freedesktop_udisks_signal_info_pointers[] = +{ + &_org_freedesktop_udisks_signal_info_device_added, + &_org_freedesktop_udisks_signal_info_device_removed, + &_org_freedesktop_udisks_signal_info_device_changed, + &_org_freedesktop_udisks_signal_info_device_job_changed, + &_org_freedesktop_udisks_signal_info_adapter_added, + &_org_freedesktop_udisks_signal_info_adapter_removed, + &_org_freedesktop_udisks_signal_info_adapter_changed, + &_org_freedesktop_udisks_signal_info_expander_added, + &_org_freedesktop_udisks_signal_info_expander_removed, + &_org_freedesktop_udisks_signal_info_expander_changed, + &_org_freedesktop_udisks_signal_info_port_added, + &_org_freedesktop_udisks_signal_info_port_removed, + &_org_freedesktop_udisks_signal_info_port_changed, + NULL +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_daemon_version = +{ + { + -1, + "DaemonVersion", + "s", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "daemon-version", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_daemon_is_inhibited = +{ + { + -1, + "DaemonIsInhibited", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "daemon-is-inhibited", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_supports_luks_devices = +{ + { + -1, + "SupportsLuksDevices", + "b", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "supports-luks-devices", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo _org_freedesktop_udisks_property_info_known_filesystems = +{ + { + -1, + "KnownFilesystems", + "a(ssbbbubbbbbbbb)", + G_DBUS_PROPERTY_INFO_FLAGS_READABLE, + NULL + }, + "known-filesystems", + FALSE +}; + +static const _ExtendedGDBusPropertyInfo * const _org_freedesktop_udisks_property_info_pointers[] = +{ + &_org_freedesktop_udisks_property_info_daemon_version, + &_org_freedesktop_udisks_property_info_daemon_is_inhibited, + &_org_freedesktop_udisks_property_info_supports_luks_devices, + &_org_freedesktop_udisks_property_info_known_filesystems, + NULL +}; + +static const _ExtendedGDBusInterfaceInfo _org_freedesktop_udisks_interface_info = +{ + { + -1, + "org.freedesktop.UDisks", + (GDBusMethodInfo **) &_org_freedesktop_udisks_method_info_pointers, + (GDBusSignalInfo **) &_org_freedesktop_udisks_signal_info_pointers, + (GDBusPropertyInfo **) &_org_freedesktop_udisks_property_info_pointers, + NULL + }, + "org-freedesktop-udisks", +}; + + +/** + * org_freedesktop_udisks_interface_info: + * + * Gets a machine-readable description of the org.freedesktop.UDisks D-Bus interface. + * + * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. + */ +GDBusInterfaceInfo * +org_freedesktop_udisks_interface_info (void) +{ + return (GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info; +} + +/** + * org_freedesktop_udisks_override_properties: + * @klass: The class structure for a #GObject-derived class. + * @property_id_begin: The property id to assign to the first overridden property. + * + * Overrides all #GObject properties in the #OrgFreedesktopUDisks interface for a concrete class. + * The properties are overridden in the order they are defined. + * + * Returns: The last property id. + */ +guint +org_freedesktop_udisks_override_properties (GObjectClass *klass, guint property_id_begin) +{ + g_object_class_override_property (klass, property_id_begin++, "daemon-version"); + g_object_class_override_property (klass, property_id_begin++, "daemon-is-inhibited"); + g_object_class_override_property (klass, property_id_begin++, "supports-luks-devices"); + g_object_class_override_property (klass, property_id_begin++, "known-filesystems"); + return property_id_begin - 1; +} + + + +/** + * OrgFreedesktopUDisks: + * + * Abstract interface type for the D-Bus interface org.freedesktop.UDisks. + */ + +/** + * OrgFreedesktopUDisksIface: + * @parent_iface: The parent interface. + * @handle_drive_inhibit_all_polling: Handler for the #OrgFreedesktopUDisks::handle-drive-inhibit-all-polling signal. + * @handle_drive_set_all_spindown_timeouts: Handler for the #OrgFreedesktopUDisks::handle-drive-set-all-spindown-timeouts signal. + * @handle_drive_uninhibit_all_polling: Handler for the #OrgFreedesktopUDisks::handle-drive-uninhibit-all-polling signal. + * @handle_drive_unset_all_spindown_timeouts: Handler for the #OrgFreedesktopUDisks::handle-drive-unset-all-spindown-timeouts signal. + * @handle_enumerate_adapters: Handler for the #OrgFreedesktopUDisks::handle-enumerate-adapters signal. + * @handle_enumerate_device_files: Handler for the #OrgFreedesktopUDisks::handle-enumerate-device-files signal. + * @handle_enumerate_devices: Handler for the #OrgFreedesktopUDisks::handle-enumerate-devices signal. + * @handle_enumerate_expanders: Handler for the #OrgFreedesktopUDisks::handle-enumerate-expanders signal. + * @handle_enumerate_ports: Handler for the #OrgFreedesktopUDisks::handle-enumerate-ports signal. + * @handle_find_device_by_device_file: Handler for the #OrgFreedesktopUDisks::handle-find-device-by-device-file signal. + * @handle_find_device_by_major_minor: Handler for the #OrgFreedesktopUDisks::handle-find-device-by-major-minor signal. + * @handle_inhibit: Handler for the #OrgFreedesktopUDisks::handle-inhibit signal. + * @handle_linux_lvm2_lvcreate: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvcreate signal. + * @handle_linux_lvm2_lvremove: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvremove signal. + * @handle_linux_lvm2_lvset_name: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvset-name signal. + * @handle_linux_lvm2_lvstart: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-lvstart signal. + * @handle_linux_lvm2_vgadd_pv: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgadd-pv signal. + * @handle_linux_lvm2_vgremove_pv: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgremove-pv signal. + * @handle_linux_lvm2_vgset_name: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgset-name signal. + * @handle_linux_lvm2_vgstart: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgstart signal. + * @handle_linux_lvm2_vgstop: Handler for the #OrgFreedesktopUDisks::handle-linux-lvm2-vgstop signal. + * @handle_linux_md_create: Handler for the #OrgFreedesktopUDisks::handle-linux-md-create signal. + * @handle_linux_md_start: Handler for the #OrgFreedesktopUDisks::handle-linux-md-start signal. + * @handle_uninhibit: Handler for the #OrgFreedesktopUDisks::handle-uninhibit signal. + * @get_daemon_is_inhibited: Getter for the #OrgFreedesktopUDisks:daemon-is-inhibited property. + * @get_daemon_version: Getter for the #OrgFreedesktopUDisks:daemon-version property. + * @get_known_filesystems: Getter for the #OrgFreedesktopUDisks:known-filesystems property. + * @get_supports_luks_devices: Getter for the #OrgFreedesktopUDisks:supports-luks-devices property. + * @adapter_added: Handler for the #OrgFreedesktopUDisks::adapter-added signal. + * @adapter_changed: Handler for the #OrgFreedesktopUDisks::adapter-changed signal. + * @adapter_removed: Handler for the #OrgFreedesktopUDisks::adapter-removed signal. + * @device_added: Handler for the #OrgFreedesktopUDisks::device-added signal. + * @device_changed: Handler for the #OrgFreedesktopUDisks::device-changed signal. + * @device_job_changed: Handler for the #OrgFreedesktopUDisks::device-job-changed signal. + * @device_removed: Handler for the #OrgFreedesktopUDisks::device-removed signal. + * @expander_added: Handler for the #OrgFreedesktopUDisks::expander-added signal. + * @expander_changed: Handler for the #OrgFreedesktopUDisks::expander-changed signal. + * @expander_removed: Handler for the #OrgFreedesktopUDisks::expander-removed signal. + * @port_added: Handler for the #OrgFreedesktopUDisks::port-added signal. + * @port_changed: Handler for the #OrgFreedesktopUDisks::port-changed signal. + * @port_removed: Handler for the #OrgFreedesktopUDisks::port-removed signal. + * + * Virtual table for the D-Bus interface org.freedesktop.UDisks. + */ + +static void +org_freedesktop_udisks_default_init (OrgFreedesktopUDisksIface *iface) +{ + /* GObject signals for incoming D-Bus method calls: */ + /** + * OrgFreedesktopUDisks::handle-enumerate-adapters: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the EnumerateAdapters() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-enumerate-adapters", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_adapters), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisks::handle-enumerate-expanders: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the EnumerateExpanders() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-enumerate-expanders", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_expanders), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisks::handle-enumerate-ports: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the EnumeratePorts() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-enumerate-ports", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_ports), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisks::handle-enumerate-devices: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the EnumerateDevices() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-enumerate-devices", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_devices), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisks::handle-enumerate-device-files: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the EnumerateDeviceFiles() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-enumerate-device-files", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_enumerate_device_files), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisks::handle-find-device-by-device-file: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_device_file: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the FindDeviceByDeviceFile() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-find-device-by-device-file", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_find_device_by_device_file), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::handle-find-device-by-major-minor: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_device_major: Argument passed by remote caller. + * @arg_device_minor: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the FindDeviceByMajorMinor() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-find-device-by-major-minor", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_find_device_by_major_minor), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64, G_TYPE_INT64); + + /** + * OrgFreedesktopUDisks::handle-drive-inhibit-all-polling: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveInhibitAllPolling() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-inhibit-all-polling", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_inhibit_all_polling), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-drive-uninhibit-all-polling: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_cookie: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveUninhibitAllPolling() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-uninhibit-all-polling", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_uninhibit_all_polling), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::handle-drive-set-all-spindown-timeouts: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_timeout_seconds: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveSetAllSpindownTimeouts() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-set-all-spindown-timeouts", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_set_all_spindown_timeouts), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-drive-unset-all-spindown-timeouts: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_cookie: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the DriveUnsetAllSpindownTimeouts() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-drive-unset-all-spindown-timeouts", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_drive_unset_all_spindown_timeouts), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-vgstart: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_uuid: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2VGStart() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-vgstart", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgstart), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-vgstop: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_uuid: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2VGStop() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-vgstop", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgstop), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-vgset-name: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_uuid: Argument passed by remote caller. + * @arg_name: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2VGSetName() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-vgset-name", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgset_name), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-vgadd-pv: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_uuid: Argument passed by remote caller. + * @arg_physical_volume: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2VGAddPV() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-vgadd-pv", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgadd_pv), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 4, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-vgremove-pv: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_vg_uuid: Argument passed by remote caller. + * @arg_pv_uuid: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2VGRemovePV() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-vgremove-pv", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_vgremove_pv), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 4, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-lvset-name: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_group_uuid: Argument passed by remote caller. + * @arg_uuid: Argument passed by remote caller. + * @arg_name: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2LVSetName() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-lvset-name", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvset_name), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 4, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-lvstart: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_group_uuid: Argument passed by remote caller. + * @arg_uuid: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2LVStart() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-lvstart", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvstart), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 4, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-lvremove: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_group_uuid: Argument passed by remote caller. + * @arg_uuid: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2LVRemove() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-lvremove", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvremove), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 4, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-linux-lvm2-lvcreate: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_group_uuid: Argument passed by remote caller. + * @arg_name: Argument passed by remote caller. + * @arg_size: Argument passed by remote caller. + * @arg_num_stripes: Argument passed by remote caller. + * @arg_stripe_size: Argument passed by remote caller. + * @arg_num_mirrors: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * @arg_fstype: Argument passed by remote caller. + * @arg_fsoptions: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxLvm2LVCreate() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-lvm2-lvcreate", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_lvm2_lvcreate), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 10, + 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); + + /** + * OrgFreedesktopUDisks::handle-linux-md-start: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_components: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxMdStart() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-md-start", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_md_start), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 3, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-linux-md-create: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_components: Argument passed by remote caller. + * @arg_level: Argument passed by remote caller. + * @arg_stripe_size: Argument passed by remote caller. + * @arg_name: Argument passed by remote caller. + * @arg_options: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the LinuxMdCreate() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-linux-md-create", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_linux_md_create), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 6, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV, G_TYPE_STRING, G_TYPE_UINT64, G_TYPE_STRING, G_TYPE_STRV); + + /** + * OrgFreedesktopUDisks::handle-inhibit: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * + * Signal emitted when a remote caller is invoking the Inhibit() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-inhibit", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_inhibit), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 1, + G_TYPE_DBUS_METHOD_INVOCATION); + + /** + * OrgFreedesktopUDisks::handle-uninhibit: + * @object: A #OrgFreedesktopUDisks. + * @invocation: A #GDBusMethodInvocation. + * @arg_cookie: Argument passed by remote caller. + * + * Signal emitted when a remote caller is invoking the Uninhibit() D-Bus method. + * + * 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. + * + * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run. + */ + g_signal_new ("handle-uninhibit", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, handle_uninhibit), + g_signal_accumulator_true_handled, + NULL, + g_cclosure_marshal_generic, + G_TYPE_BOOLEAN, + 2, + G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); + + /* GObject signals for received D-Bus signals: */ + /** + * OrgFreedesktopUDisks::device-added: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "DeviceAdded" is received. + * + * 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. + */ + g_signal_new ("device-added", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_added), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::device-removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "DeviceRemoved" is received. + * + * 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. + */ + g_signal_new ("device-removed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_removed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::device-changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "DeviceChanged" is received. + * + * 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. + */ + g_signal_new ("device-changed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_changed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::device-job-changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument. + * @arg_job_in_progress: Argument. + * @arg_job_is_cancellable: Argument. + * @arg_job_id: Argument. + * @arg_job_num_tasks: Argument. + * @arg_job_cur_task: Argument. + * @arg_job_cur_task_id: Argument. + * @arg_job_cur_task_percentage: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "DeviceJobChanged" is received. + * + * 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. + */ + g_signal_new ("device-job-changed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, device_job_changed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 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); + + /** + * OrgFreedesktopUDisks::adapter-added: + * @object: A #OrgFreedesktopUDisks. + * @arg_adapter: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "AdapterAdded" is received. + * + * 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. + */ + g_signal_new ("adapter-added", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, adapter_added), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::adapter-removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_adapter: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "AdapterRemoved" is received. + * + * 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. + */ + g_signal_new ("adapter-removed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, adapter_removed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::adapter-changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_adapter: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "AdapterChanged" is received. + * + * 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. + */ + g_signal_new ("adapter-changed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, adapter_changed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::expander-added: + * @object: A #OrgFreedesktopUDisks. + * @arg_expander: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "ExpanderAdded" is received. + * + * 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. + */ + g_signal_new ("expander-added", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, expander_added), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::expander-removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_expander: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "ExpanderRemoved" is received. + * + * 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. + */ + g_signal_new ("expander-removed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, expander_removed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::expander-changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_expander: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "ExpanderChanged" is received. + * + * 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. + */ + g_signal_new ("expander-changed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, expander_changed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::port-added: + * @object: A #OrgFreedesktopUDisks. + * @arg_port: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "PortAdded" is received. + * + * 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. + */ + g_signal_new ("port-added", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, port_added), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::port-removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_port: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "PortRemoved" is received. + * + * 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. + */ + g_signal_new ("port-removed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, port_removed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /** + * OrgFreedesktopUDisks::port-changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_port: Argument. + * + * On the client-side, this signal is emitted whenever the D-Bus signal "PortChanged" is received. + * + * 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. + */ + g_signal_new ("port-changed", + G_TYPE_FROM_INTERFACE (iface), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (OrgFreedesktopUDisksIface, port_changed), + NULL, + NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 1, G_TYPE_STRING); + + /* GObject properties for D-Bus properties: */ + /** + * OrgFreedesktopUDisks:daemon-version: + * + * Represents the D-Bus property "DaemonVersion". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_string ("daemon-version", "DaemonVersion", "DaemonVersion", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisks:daemon-is-inhibited: + * + * Represents the D-Bus property "DaemonIsInhibited". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("daemon-is-inhibited", "DaemonIsInhibited", "DaemonIsInhibited", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisks:supports-luks-devices: + * + * Represents the D-Bus property "SupportsLuksDevices". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_boolean ("supports-luks-devices", "SupportsLuksDevices", "SupportsLuksDevices", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * OrgFreedesktopUDisks:known-filesystems: + * + * Represents the D-Bus property "KnownFilesystems". + * + * 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. + */ + g_object_interface_install_property (iface, + g_param_spec_variant ("known-filesystems", "KnownFilesystems", "KnownFilesystems", G_VARIANT_TYPE ("a(ssbbbubbbbbbbb)"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); +} + +typedef OrgFreedesktopUDisksIface OrgFreedesktopUDisksInterface; +G_DEFINE_INTERFACE (OrgFreedesktopUDisks, org_freedesktop_udisks, G_TYPE_OBJECT); + +/** + * org_freedesktop_udisks_get_daemon_version: (skip) + * @object: A #OrgFreedesktopUDisks. + * + * Gets the value of the "DaemonVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +const gchar * +org_freedesktop_udisks_get_daemon_version (OrgFreedesktopUDisks *object) +{ + return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_daemon_version (object); +} + +/** + * org_freedesktop_udisks_dup_daemon_version: (skip) + * @object: A #OrgFreedesktopUDisks. + * + * Gets a copy of the "DaemonVersion" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). + */ +gchar * +org_freedesktop_udisks_dup_daemon_version (OrgFreedesktopUDisks *object) +{ + gchar *value; + g_object_get (G_OBJECT (object), "daemon-version", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_set_daemon_version: (skip) + * @object: A #OrgFreedesktopUDisks. + * @value: The value to set. + * + * Sets the "DaemonVersion" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_set_daemon_version (OrgFreedesktopUDisks *object, const gchar *value) +{ + g_object_set (G_OBJECT (object), "daemon-version", value, NULL); +} + +/** + * org_freedesktop_udisks_get_daemon_is_inhibited: (skip) + * @object: A #OrgFreedesktopUDisks. + * + * Gets the value of the "DaemonIsInhibited" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_get_daemon_is_inhibited (OrgFreedesktopUDisks *object) +{ + return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_daemon_is_inhibited (object); +} + +/** + * org_freedesktop_udisks_set_daemon_is_inhibited: (skip) + * @object: A #OrgFreedesktopUDisks. + * @value: The value to set. + * + * Sets the "DaemonIsInhibited" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_set_daemon_is_inhibited (OrgFreedesktopUDisks *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "daemon-is-inhibited", value, NULL); +} + +/** + * org_freedesktop_udisks_get_supports_luks_devices: (skip) + * @object: A #OrgFreedesktopUDisks. + * + * Gets the value of the "SupportsLuksDevices" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: The property value. + */ +gboolean +org_freedesktop_udisks_get_supports_luks_devices (OrgFreedesktopUDisks *object) +{ + return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_supports_luks_devices (object); +} + +/** + * org_freedesktop_udisks_set_supports_luks_devices: (skip) + * @object: A #OrgFreedesktopUDisks. + * @value: The value to set. + * + * Sets the "SupportsLuksDevices" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_set_supports_luks_devices (OrgFreedesktopUDisks *object, gboolean value) +{ + g_object_set (G_OBJECT (object), "supports-luks-devices", value, NULL); +} + +/** + * org_freedesktop_udisks_get_known_filesystems: (skip) + * @object: A #OrgFreedesktopUDisks. + * + * Gets the value of the "KnownFilesystems" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * 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. + * + * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. + */ +GVariant * +org_freedesktop_udisks_get_known_filesystems (OrgFreedesktopUDisks *object) +{ + return ORG_FREEDESKTOP_UDISKS_GET_IFACE (object)->get_known_filesystems (object); +} + +/** + * org_freedesktop_udisks_dup_known_filesystems: (skip) + * @object: A #OrgFreedesktopUDisks. + * + * Gets a copy of the "KnownFilesystems" D-Bus property. + * + * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. + * + * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref(). + */ +GVariant * +org_freedesktop_udisks_dup_known_filesystems (OrgFreedesktopUDisks *object) +{ + GVariant *value; + g_object_get (G_OBJECT (object), "known-filesystems", &value, NULL); + return value; +} + +/** + * org_freedesktop_udisks_set_known_filesystems: (skip) + * @object: A #OrgFreedesktopUDisks. + * @value: The value to set. + * + * Sets the "KnownFilesystems" D-Bus property to @value. + * + * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. + */ +void +org_freedesktop_udisks_set_known_filesystems (OrgFreedesktopUDisks *object, GVariant *value) +{ + g_object_set (G_OBJECT (object), "known-filesystems", value, NULL); +} + +/** + * org_freedesktop_udisks_emit_device_added: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument to pass with the signal. + * + * Emits the "DeviceAdded" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_device_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_device) +{ + g_signal_emit_by_name (object, "device-added", arg_device); +} + +/** + * org_freedesktop_udisks_emit_device_removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument to pass with the signal. + * + * Emits the "DeviceRemoved" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_device_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device) +{ + g_signal_emit_by_name (object, "device-removed", arg_device); +} + +/** + * org_freedesktop_udisks_emit_device_changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument to pass with the signal. + * + * Emits the "DeviceChanged" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_device_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device) +{ + g_signal_emit_by_name (object, "device-changed", arg_device); +} + +/** + * org_freedesktop_udisks_emit_device_job_changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_device: Argument to pass with the signal. + * @arg_job_in_progress: Argument to pass with the signal. + * @arg_job_is_cancellable: Argument to pass with the signal. + * @arg_job_id: Argument to pass with the signal. + * @arg_job_num_tasks: Argument to pass with the signal. + * @arg_job_cur_task: Argument to pass with the signal. + * @arg_job_cur_task_id: Argument to pass with the signal. + * @arg_job_cur_task_percentage: Argument to pass with the signal. + * + * Emits the "DeviceJobChanged" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_device_job_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + gint arg_job_num_tasks, + gint arg_job_cur_task, + const gchar *arg_job_cur_task_id, + gdouble arg_job_cur_task_percentage) +{ + 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); +} + +/** + * org_freedesktop_udisks_emit_adapter_added: + * @object: A #OrgFreedesktopUDisks. + * @arg_adapter: Argument to pass with the signal. + * + * Emits the "AdapterAdded" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_adapter_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter) +{ + g_signal_emit_by_name (object, "adapter-added", arg_adapter); +} + +/** + * org_freedesktop_udisks_emit_adapter_removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_adapter: Argument to pass with the signal. + * + * Emits the "AdapterRemoved" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_adapter_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter) +{ + g_signal_emit_by_name (object, "adapter-removed", arg_adapter); +} + +/** + * org_freedesktop_udisks_emit_adapter_changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_adapter: Argument to pass with the signal. + * + * Emits the "AdapterChanged" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_adapter_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter) +{ + g_signal_emit_by_name (object, "adapter-changed", arg_adapter); +} + +/** + * org_freedesktop_udisks_emit_expander_added: + * @object: A #OrgFreedesktopUDisks. + * @arg_expander: Argument to pass with the signal. + * + * Emits the "ExpanderAdded" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_expander_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander) +{ + g_signal_emit_by_name (object, "expander-added", arg_expander); +} + +/** + * org_freedesktop_udisks_emit_expander_removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_expander: Argument to pass with the signal. + * + * Emits the "ExpanderRemoved" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_expander_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander) +{ + g_signal_emit_by_name (object, "expander-removed", arg_expander); +} + +/** + * org_freedesktop_udisks_emit_expander_changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_expander: Argument to pass with the signal. + * + * Emits the "ExpanderChanged" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_expander_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander) +{ + g_signal_emit_by_name (object, "expander-changed", arg_expander); +} + +/** + * org_freedesktop_udisks_emit_port_added: + * @object: A #OrgFreedesktopUDisks. + * @arg_port: Argument to pass with the signal. + * + * Emits the "PortAdded" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_port_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_port) +{ + g_signal_emit_by_name (object, "port-added", arg_port); +} + +/** + * org_freedesktop_udisks_emit_port_removed: + * @object: A #OrgFreedesktopUDisks. + * @arg_port: Argument to pass with the signal. + * + * Emits the "PortRemoved" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_port_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_port) +{ + g_signal_emit_by_name (object, "port-removed", arg_port); +} + +/** + * org_freedesktop_udisks_emit_port_changed: + * @object: A #OrgFreedesktopUDisks. + * @arg_port: Argument to pass with the signal. + * + * Emits the "PortChanged" D-Bus signal. + */ +void +org_freedesktop_udisks_emit_port_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_port) +{ + g_signal_emit_by_name (object, "port-changed", arg_port); +} + +/** + * org_freedesktop_udisks_call_enumerate_adapters: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the EnumerateAdapters() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_enumerate_adapters_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_enumerate_adapters_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_enumerate_adapters ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "EnumerateAdapters", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_enumerate_adapters_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_adapters(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_enumerate_adapters(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_adapters_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_adapters_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the EnumerateAdapters() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_enumerate_adapters() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_adapters_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "EnumerateAdapters", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_expanders: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the EnumerateExpanders() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_enumerate_expanders_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_enumerate_expanders_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_enumerate_expanders ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "EnumerateExpanders", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_enumerate_expanders_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_expanders(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_enumerate_expanders(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_expanders_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_expanders_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the EnumerateExpanders() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_enumerate_expanders() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_expanders_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "EnumerateExpanders", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_ports: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the EnumeratePorts() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_enumerate_ports_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_enumerate_ports_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_enumerate_ports ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "EnumeratePorts", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_enumerate_ports_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_ports(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_enumerate_ports(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_ports_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_ports_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the EnumeratePorts() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_enumerate_ports() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_ports_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "EnumeratePorts", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_devices: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the EnumerateDevices() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_enumerate_devices_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_enumerate_devices_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_enumerate_devices ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "EnumerateDevices", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_enumerate_devices_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_devices(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_enumerate_devices(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_devices_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_devices_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_devices: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the EnumerateDevices() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_enumerate_devices() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_devices_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "EnumerateDevices", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^ao)", + out_devices); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_device_files: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the EnumerateDeviceFiles() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_enumerate_device_files_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_enumerate_device_files_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_enumerate_device_files ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "EnumerateDeviceFiles", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_enumerate_device_files_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_device_files: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_enumerate_device_files(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_enumerate_device_files(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_device_files_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_device_files, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^as)", + out_device_files); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_enumerate_device_files_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_device_files: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the EnumerateDeviceFiles() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_enumerate_device_files() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_enumerate_device_files_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_device_files, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "EnumerateDeviceFiles", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(^as)", + out_device_files); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_find_device_by_device_file: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_device_file: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FindDeviceByDeviceFile() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_find_device_by_device_file_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_find_device_by_device_file_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_find_device_by_device_file ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_device_file, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FindDeviceByDeviceFile", + g_variant_new ("(s)", + arg_device_file), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_find_device_by_device_file_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_find_device_by_device_file(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_find_device_by_device_file(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_find_device_by_device_file_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_find_device_by_device_file_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_device_file: Argument to pass with the method invocation. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FindDeviceByDeviceFile() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_find_device_by_device_file() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_find_device_by_device_file_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_device_file, + gchar **out_device, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FindDeviceByDeviceFile", + g_variant_new ("(s)", + arg_device_file), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_find_device_by_major_minor: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_device_major: Argument to pass with the method invocation. + * @arg_device_minor: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the FindDeviceByMajorMinor() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_find_device_by_major_minor_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_find_device_by_major_minor_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_find_device_by_major_minor ( + OrgFreedesktopUDisks *proxy, + gint64 arg_device_major, + gint64 arg_device_minor, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "FindDeviceByMajorMinor", + g_variant_new ("(xx)", + arg_device_major, + arg_device_minor), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_find_device_by_major_minor_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_find_device_by_major_minor(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_find_device_by_major_minor(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_find_device_by_major_minor_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_find_device_by_major_minor_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_device_major: Argument to pass with the method invocation. + * @arg_device_minor: Argument to pass with the method invocation. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the FindDeviceByMajorMinor() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_find_device_by_major_minor() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_find_device_by_major_minor_sync ( + OrgFreedesktopUDisks *proxy, + gint64 arg_device_major, + gint64 arg_device_minor, + gchar **out_device, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "FindDeviceByMajorMinor", + g_variant_new ("(xx)", + arg_device_major, + arg_device_minor), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_inhibit_all_polling: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveInhibitAllPolling() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_drive_inhibit_all_polling_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_drive_inhibit_all_polling_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_drive_inhibit_all_polling ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveInhibitAllPolling", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_drive_inhibit_all_polling_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_inhibit_all_polling(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_drive_inhibit_all_polling(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_inhibit_all_polling_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_inhibit_all_polling_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_options: Argument to pass with the method invocation. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveInhibitAllPolling() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_drive_inhibit_all_polling() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_inhibit_all_polling_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveInhibitAllPolling", + g_variant_new ("(^as)", + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_uninhibit_all_polling: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveUninhibitAllPolling() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_drive_uninhibit_all_polling_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_drive_uninhibit_all_polling_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_drive_uninhibit_all_polling ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveUninhibitAllPolling", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_drive_uninhibit_all_polling_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_uninhibit_all_polling(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_drive_uninhibit_all_polling(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_uninhibit_all_polling_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_uninhibit_all_polling_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveUninhibitAllPolling() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_drive_uninhibit_all_polling() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_uninhibit_all_polling_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveUninhibitAllPolling", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_set_all_spindown_timeouts: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_timeout_seconds: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveSetAllSpindownTimeouts() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_drive_set_all_spindown_timeouts ( + OrgFreedesktopUDisks *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveSetAllSpindownTimeouts", + g_variant_new ("(i^as)", + arg_timeout_seconds, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_set_all_spindown_timeouts(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_drive_set_all_spindown_timeouts(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_timeout_seconds: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveSetAllSpindownTimeouts() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_drive_set_all_spindown_timeouts() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_sync ( + OrgFreedesktopUDisks *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveSetAllSpindownTimeouts", + g_variant_new ("(i^as)", + arg_timeout_seconds, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the DriveUnsetAllSpindownTimeouts() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "DriveUnsetAllSpindownTimeouts", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the DriveUnsetAllSpindownTimeouts() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "DriveUnsetAllSpindownTimeouts", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgstart: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2VGStart() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_vgstart_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgstart_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_vgstart ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2VGStart", + g_variant_new ("(s^as)", + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgstart_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgstart(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgstart(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgstart_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgstart_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2VGStart() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgstart() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgstart_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2VGStart", + g_variant_new ("(s^as)", + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgstop: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2VGStop() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_vgstop_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgstop_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_vgstop ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2VGStop", + g_variant_new ("(s^as)", + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgstop_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgstop(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgstop(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgstop_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgstop_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2VGStop() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgstop() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgstop_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2VGStop", + g_variant_new ("(s^as)", + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgset_name: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2VGSetName() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_vgset_name_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgset_name_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_vgset_name ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2VGSetName", + g_variant_new ("(ss)", + arg_uuid, + arg_name), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgset_name_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgset_name(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgset_name(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgset_name_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgset_name_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2VGSetName() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgset_name() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgset_name_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2VGSetName", + g_variant_new ("(ss)", + arg_uuid, + arg_name), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgadd_pv: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_physical_volume: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2VGAddPV() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_vgadd_pv ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_physical_volume, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2VGAddPV", + g_variant_new ("(so^as)", + arg_uuid, + arg_physical_volume, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgadd_pv(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgadd_pv(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_physical_volume: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2VGAddPV() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgadd_pv() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_physical_volume, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2VGAddPV", + g_variant_new ("(so^as)", + arg_uuid, + arg_physical_volume, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgremove_pv: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_vg_uuid: Argument to pass with the method invocation. + * @arg_pv_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2VGRemovePV() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_vgremove_pv ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_vg_uuid, + const gchar *arg_pv_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2VGRemovePV", + g_variant_new ("(ss^as)", + arg_vg_uuid, + arg_pv_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_vgremove_pv(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_vgremove_pv(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_vg_uuid: Argument to pass with the method invocation. + * @arg_pv_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2VGRemovePV() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_vgremove_pv() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_vg_uuid, + const gchar *arg_pv_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2VGRemovePV", + g_variant_new ("(ss^as)", + arg_vg_uuid, + arg_pv_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvset_name: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2LVSetName() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_lvset_name_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvset_name_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_lvset_name ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2LVSetName", + g_variant_new ("(sss)", + arg_group_uuid, + arg_uuid, + arg_name), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvset_name_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvset_name(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvset_name(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvset_name_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvset_name_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2LVSetName() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvset_name() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvset_name_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2LVSetName", + g_variant_new ("(sss)", + arg_group_uuid, + arg_uuid, + arg_name), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvstart: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2LVStart() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_lvstart_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvstart_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_lvstart ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2LVStart", + g_variant_new ("(ss^as)", + arg_group_uuid, + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvstart_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvstart(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvstart(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvstart_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvstart_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2LVStart() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvstart() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvstart_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2LVStart", + g_variant_new ("(ss^as)", + arg_group_uuid, + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvremove: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2LVRemove() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_lvremove_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvremove_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_lvremove ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2LVRemove", + g_variant_new ("(ss^as)", + arg_group_uuid, + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvremove_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvremove(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvremove(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvremove_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvremove_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_uuid: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2LVRemove() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvremove() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvremove_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2LVRemove", + g_variant_new ("(ss^as)", + arg_group_uuid, + arg_uuid, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvcreate: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @arg_size: Argument to pass with the method invocation. + * @arg_num_stripes: Argument to pass with the method invocation. + * @arg_stripe_size: Argument to pass with the method invocation. + * @arg_num_mirrors: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @arg_fstype: Argument to pass with the method invocation. + * @arg_fsoptions: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxLvm2LVCreate() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_lvm2_lvcreate_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvcreate_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_lvm2_lvcreate ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_name, + guint64 arg_size, + guint arg_num_stripes, + guint64 arg_stripe_size, + guint arg_num_mirrors, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxLvm2LVCreate", + g_variant_new ("(sstutu^ass^as)", + arg_group_uuid, + arg_name, + arg_size, + arg_num_stripes, + arg_stripe_size, + arg_num_mirrors, + arg_options, + arg_fstype, + arg_fsoptions), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvcreate_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_created_device: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_lvm2_lvcreate(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_lvm2_lvcreate(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvcreate_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_created_device, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_created_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_lvm2_lvcreate_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_group_uuid: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @arg_size: Argument to pass with the method invocation. + * @arg_num_stripes: Argument to pass with the method invocation. + * @arg_stripe_size: Argument to pass with the method invocation. + * @arg_num_mirrors: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @arg_fstype: Argument to pass with the method invocation. + * @arg_fsoptions: Argument to pass with the method invocation. + * @out_created_device: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxLvm2LVCreate() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_lvm2_lvcreate() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_lvm2_lvcreate_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_name, + guint64 arg_size, + guint arg_num_stripes, + guint64 arg_stripe_size, + guint arg_num_mirrors, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + gchar **out_created_device, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxLvm2LVCreate", + g_variant_new ("(sstutu^ass^as)", + arg_group_uuid, + arg_name, + arg_size, + arg_num_stripes, + arg_stripe_size, + arg_num_mirrors, + arg_options, + arg_fstype, + arg_fsoptions), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_created_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_md_start: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_components: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxMdStart() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_md_start_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_md_start_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_md_start ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxMdStart", + g_variant_new ("(^ao^as)", + arg_components, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_md_start_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_md_start(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_md_start(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_md_start_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_md_start_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_components: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxMdStart() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_md_start() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_md_start_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + gchar **out_device, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxMdStart", + g_variant_new ("(^ao^as)", + arg_components, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_md_create: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_components: Argument to pass with the method invocation. + * @arg_level: Argument to pass with the method invocation. + * @arg_stripe_size: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the LinuxMdCreate() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_linux_md_create_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_linux_md_create_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_linux_md_create ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *arg_level, + guint64 arg_stripe_size, + const gchar *arg_name, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "LinuxMdCreate", + g_variant_new ("(^aosts^as)", + arg_components, + arg_level, + arg_stripe_size, + arg_name, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_linux_md_create_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_linux_md_create(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_linux_md_create(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_md_create_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_linux_md_create_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_components: Argument to pass with the method invocation. + * @arg_level: Argument to pass with the method invocation. + * @arg_stripe_size: Argument to pass with the method invocation. + * @arg_name: Argument to pass with the method invocation. + * @arg_options: Argument to pass with the method invocation. + * @out_device: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the LinuxMdCreate() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_linux_md_create() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_linux_md_create_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *arg_level, + guint64 arg_stripe_size, + const gchar *arg_name, + const gchar *const *arg_options, + gchar **out_device, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "LinuxMdCreate", + g_variant_new ("(^aosts^as)", + arg_components, + arg_level, + arg_stripe_size, + arg_name, + arg_options), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(o)", + out_device); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_inhibit: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the Inhibit() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_inhibit_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_inhibit_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_inhibit ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "Inhibit", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_inhibit_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_inhibit(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_inhibit(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_inhibit_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_inhibit_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @out_cookie: (out): Return location for return parameter or %NULL to ignore. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the Inhibit() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_inhibit() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_inhibit_sync ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "Inhibit", + g_variant_new ("()"), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "(s)", + out_cookie); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_uninhibit: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. + * @user_data: User data to pass to @callback. + * + * Asynchronously invokes the Uninhibit() D-Bus method on @proxy. + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_call_uninhibit_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_call_uninhibit_sync() for the synchronous, blocking version of this method. + */ +void +org_freedesktop_udisks_call_uninhibit ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + g_dbus_proxy_call (G_DBUS_PROXY (proxy), + "Uninhibit", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + callback, + user_data); +} + +/** + * org_freedesktop_udisks_call_uninhibit_finish: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_call_uninhibit(). + * @error: Return location for error or %NULL. + * + * Finishes an operation started with org_freedesktop_udisks_call_uninhibit(). + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_uninhibit_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_call_uninhibit_sync: + * @proxy: A #OrgFreedesktopUDisksProxy. + * @arg_cookie: Argument to pass with the method invocation. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL. + * + * Synchronously invokes the Uninhibit() D-Bus method on @proxy. The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_call_uninhibit() for the asynchronous version of this method. + * + * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + */ +gboolean +org_freedesktop_udisks_call_uninhibit_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error) +{ + GVariant *_ret; + _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), + "Uninhibit", + g_variant_new ("(s)", + arg_cookie), + G_DBUS_CALL_FLAGS_NONE, + -1, + cancellable, + error); + if (_ret == NULL) + goto _out; + g_variant_get (_ret, + "()"); + g_variant_unref (_ret); +_out: + return _ret != NULL; +} + +/** + * org_freedesktop_udisks_complete_enumerate_adapters: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @devices: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the EnumerateAdapters() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_enumerate_adapters ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(^ao)", + devices)); +} + +/** + * org_freedesktop_udisks_complete_enumerate_expanders: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @devices: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the EnumerateExpanders() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_enumerate_expanders ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(^ao)", + devices)); +} + +/** + * org_freedesktop_udisks_complete_enumerate_ports: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @devices: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the EnumeratePorts() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_enumerate_ports ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(^ao)", + devices)); +} + +/** + * org_freedesktop_udisks_complete_enumerate_devices: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @devices: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the EnumerateDevices() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_enumerate_devices ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(^ao)", + devices)); +} + +/** + * org_freedesktop_udisks_complete_enumerate_device_files: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @device_files: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the EnumerateDeviceFiles() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_enumerate_device_files ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *device_files) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(^as)", + device_files)); +} + +/** + * org_freedesktop_udisks_complete_find_device_by_device_file: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @device: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the FindDeviceByDeviceFile() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_find_device_by_device_file ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(o)", + device)); +} + +/** + * org_freedesktop_udisks_complete_find_device_by_major_minor: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @device: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the FindDeviceByMajorMinor() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_find_device_by_major_minor ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(o)", + device)); +} + +/** + * org_freedesktop_udisks_complete_drive_inhibit_all_polling: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @cookie: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the DriveInhibitAllPolling() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_drive_inhibit_all_polling ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *cookie) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(s)", + cookie)); +} + +/** + * org_freedesktop_udisks_complete_drive_uninhibit_all_polling: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveUninhibitAllPolling() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_drive_uninhibit_all_polling ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_drive_set_all_spindown_timeouts: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @cookie: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the DriveSetAllSpindownTimeouts() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_drive_set_all_spindown_timeouts ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *cookie) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(s)", + cookie)); +} + +/** + * org_freedesktop_udisks_complete_drive_unset_all_spindown_timeouts: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the DriveUnsetAllSpindownTimeouts() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_drive_unset_all_spindown_timeouts ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_vgstart: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2VGStart() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_vgstart ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_vgstop: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2VGStop() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_vgstop ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_vgset_name: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2VGSetName() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_vgset_name ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_vgadd_pv: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2VGAddPV() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_vgadd_pv ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_vgremove_pv: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2VGRemovePV() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_vgremove_pv ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_lvset_name: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2LVSetName() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_lvset_name ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_lvstart: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2LVStart() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_lvstart ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_lvremove: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2LVRemove() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_lvremove ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/** + * org_freedesktop_udisks_complete_linux_lvm2_lvcreate: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @created_device: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the LinuxLvm2LVCreate() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_lvm2_lvcreate ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *created_device) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(o)", + created_device)); +} + +/** + * org_freedesktop_udisks_complete_linux_md_start: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @device: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the LinuxMdStart() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_md_start ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(o)", + device)); +} + +/** + * org_freedesktop_udisks_complete_linux_md_create: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @device: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the LinuxMdCreate() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_linux_md_create ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(o)", + device)); +} + +/** + * org_freedesktop_udisks_complete_inhibit: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * @cookie: Parameter to return. + * + * Helper function used in service implementations to finish handling invocations of the Inhibit() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_inhibit ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *cookie) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("(s)", + cookie)); +} + +/** + * org_freedesktop_udisks_complete_uninhibit: + * @object: A #OrgFreedesktopUDisks. + * @invocation: (transfer full): A #GDBusMethodInvocation. + * + * Helper function used in service implementations to finish handling invocations of the Uninhibit() 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. + * + * This method will free @invocation, you cannot use it afterwards. + */ +void +org_freedesktop_udisks_complete_uninhibit ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation) +{ + g_dbus_method_invocation_return_value (invocation, + g_variant_new ("()")); +} + +/* ------------------------------------------------------------------------ */ + +/** + * OrgFreedesktopUDisksProxy: + * + * The #OrgFreedesktopUDisksProxy structure contains only private data and should only be accessed using the provided API. + */ + +/** + * OrgFreedesktopUDisksProxyClass: + * @parent_class: The parent class. + * + * Class structure for #OrgFreedesktopUDisksProxy. + */ + +struct _OrgFreedesktopUDisksProxyPrivate +{ + GData *qdata; +}; + +static void org_freedesktop_udisks_proxy_iface_init (OrgFreedesktopUDisksIface *iface); + +G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksProxy, org_freedesktop_udisks_proxy, G_TYPE_DBUS_PROXY, + G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS, org_freedesktop_udisks_proxy_iface_init)); + +static void +org_freedesktop_udisks_proxy_finalize (GObject *object) +{ + OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object); + g_datalist_clear (&proxy->priv->qdata); + G_OBJECT_CLASS (org_freedesktop_udisks_proxy_parent_class)->finalize (object); +} + +static void +org_freedesktop_udisks_proxy_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + const _ExtendedGDBusPropertyInfo *info; + GVariant *variant; + g_assert (prop_id != 0 && prop_id - 1 < 4); + info = _org_freedesktop_udisks_property_info_pointers[prop_id - 1]; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); + if (info->use_gvariant) + { + g_value_set_variant (value, variant); + } + else + { + if (variant != NULL) + g_dbus_gvariant_to_gvalue (variant, value); + } + if (variant != NULL) + g_variant_unref (variant); +} + +static void +org_freedesktop_udisks_proxy_set_property_cb (GDBusProxy *proxy, + GAsyncResult *res, + gpointer user_data) +{ + const _ExtendedGDBusPropertyInfo *info = user_data; + GError *error; + error = NULL; + if (!g_dbus_proxy_call_finish (proxy, res, &error)) + { + g_warning ("Error setting property `%s' on interface org.freedesktop.UDisks: %s (%s, %d)", + info->parent_struct.name, + error->message, g_quark_to_string (error->domain), error->code); + g_error_free (error); + } +} + +static void +org_freedesktop_udisks_proxy_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + const _ExtendedGDBusPropertyInfo *info; + GVariant *variant; + g_assert (prop_id != 0 && prop_id - 1 < 4); + info = _org_freedesktop_udisks_property_info_pointers[prop_id - 1]; + variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); + g_dbus_proxy_call (G_DBUS_PROXY (object), + "org.freedesktop.DBus.Properties.Set", + g_variant_new ("(ssv)", "org.freedesktop.UDisks", info->parent_struct.name, variant), + G_DBUS_CALL_FLAGS_NONE, + -1, + NULL, (GAsyncReadyCallback) org_freedesktop_udisks_proxy_set_property_cb, (gpointer) info); + g_variant_unref (variant); +} + +static void +org_freedesktop_udisks_proxy_g_signal (GDBusProxy *proxy, + const gchar *sender_name, + const gchar *signal_name, + GVariant *parameters) +{ + _ExtendedGDBusSignalInfo *info; + GVariantIter iter; + GVariant *child; + GValue *paramv; + guint num_params; + guint n; + guint signal_id; + info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info, signal_name); + if (info == NULL) + return; + num_params = g_variant_n_children (parameters); + paramv = g_new0 (GValue, num_params + 1); + g_value_init (¶mv[0], TYPE_ORG_FREEDESKTOP_UDISKS); + g_value_set_object (¶mv[0], proxy); + g_variant_iter_init (&iter, parameters); + n = 1; + while ((child = g_variant_iter_next_value (&iter)) != NULL) + { + _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; + if (arg_info->use_gvariant) + { + g_value_init (¶mv[n], G_TYPE_VARIANT); + g_value_set_variant (¶mv[n], child); + n++; + } + else + g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); + g_variant_unref (child); + } + signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_FREEDESKTOP_UDISKS); + g_signal_emitv (paramv, signal_id, 0, NULL); + for (n = 0; n < num_params + 1; n++) + g_value_unset (¶mv[n]); + g_free (paramv); +} + +static void +org_freedesktop_udisks_proxy_g_properties_changed (GDBusProxy *_proxy, + GVariant *changed_properties, + const gchar *const *invalidated_properties) +{ + OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (_proxy); + guint n; + const gchar *key; + GVariantIter *iter; + _ExtendedGDBusPropertyInfo *info; + g_variant_get (changed_properties, "a{sv}", &iter); + while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) + { + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info, key); + g_datalist_remove_data (&proxy->priv->qdata, key); + if (info != NULL) + g_object_notify (G_OBJECT (proxy), info->hyphen_name); + } + g_variant_iter_free (iter); + for (n = 0; invalidated_properties[n] != NULL; n++) + { + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info, invalidated_properties[n]); + g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); + if (info != NULL) + g_object_notify (G_OBJECT (proxy), info->hyphen_name); + } +} + +static const gchar * +org_freedesktop_udisks_proxy_get_daemon_version (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object); + GVariant *variant; + const gchar *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DaemonVersion"); + if (variant != NULL) + { + value = g_variant_get_string (variant, NULL); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_proxy_get_daemon_is_inhibited (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DaemonIsInhibited"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static gboolean +org_freedesktop_udisks_proxy_get_supports_luks_devices (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object); + GVariant *variant; + gboolean value = 0; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "SupportsLuksDevices"); + if (variant != NULL) + { + value = g_variant_get_boolean (variant); + g_variant_unref (variant); + } + return value; +} + +static GVariant * +org_freedesktop_udisks_proxy_get_known_filesystems (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksProxy *proxy = ORG_FREEDESKTOP_UDISKS_PROXY (object); + GVariant *variant; + GVariant *value = NULL; + variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "KnownFilesystems"); + value = variant; + if (variant != NULL) + g_variant_unref (variant); + return value; +} + +static void +org_freedesktop_udisks_proxy_init (OrgFreedesktopUDisksProxy *proxy) +{ + proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_FREEDESKTOP_UDISKS_PROXY, OrgFreedesktopUDisksProxyPrivate); + g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_freedesktop_udisks_interface_info ()); +} + +static void +org_freedesktop_udisks_proxy_class_init (OrgFreedesktopUDisksProxyClass *klass) +{ + GObjectClass *gobject_class; + GDBusProxyClass *proxy_class; + + g_type_class_add_private (klass, sizeof (OrgFreedesktopUDisksProxyPrivate)); + + gobject_class = G_OBJECT_CLASS (klass); + gobject_class->finalize = org_freedesktop_udisks_proxy_finalize; + gobject_class->get_property = org_freedesktop_udisks_proxy_get_property; + gobject_class->set_property = org_freedesktop_udisks_proxy_set_property; + + proxy_class = G_DBUS_PROXY_CLASS (klass); + proxy_class->g_signal = org_freedesktop_udisks_proxy_g_signal; + proxy_class->g_properties_changed = org_freedesktop_udisks_proxy_g_properties_changed; + + + org_freedesktop_udisks_override_properties (gobject_class, 1); +} + +static void +org_freedesktop_udisks_proxy_iface_init (OrgFreedesktopUDisksIface *iface) +{ + iface->get_daemon_version = org_freedesktop_udisks_proxy_get_daemon_version; + iface->get_daemon_is_inhibited = org_freedesktop_udisks_proxy_get_daemon_is_inhibited; + iface->get_supports_luks_devices = org_freedesktop_udisks_proxy_get_supports_luks_devices; + iface->get_known_filesystems = org_freedesktop_udisks_proxy_get_known_filesystems; +} + +/** + * org_freedesktop_udisks_proxy_new: + * @connection: A #GDBusConnection. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied. + * @user_data: User data to pass to @callback. + * + * Asynchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks. See g_dbus_proxy_new() for more details. + * + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_proxy_new_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_proxy_new_sync() for the synchronous, blocking version of this constructor. + */ +void +org_freedesktop_udisks_proxy_new ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + 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); +} + +/** + * org_freedesktop_udisks_proxy_new_finish: + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_proxy_new(). + * @error: Return location for error or %NULL + * + * Finishes an operation started with org_freedesktop_udisks_proxy_new(). + * + * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisks * +org_freedesktop_udisks_proxy_new_finish ( + GAsyncResult *res, + GError **error) +{ + GObject *ret; + GObject *source_object; + source_object = g_async_result_get_source_object (res); + ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); + g_object_unref (source_object); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS (ret); + else + return NULL; +} + +/** + * org_freedesktop_udisks_proxy_new_sync: + * @connection: A #GDBusConnection. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL + * + * Synchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks. See g_dbus_proxy_new_sync() for more details. + * + * The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_proxy_new() for the asynchronous version of this constructor. + * + * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisks * +org_freedesktop_udisks_proxy_new_sync ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error) +{ + GInitable *ret; + 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); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS (ret); + else + return NULL; +} + + +/** + * org_freedesktop_udisks_proxy_new_for_bus: + * @bus_type: A #GBusType. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: A bus name (well-known or unique). + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @callback: A #GAsyncReadyCallback to call when the request is satisfied. + * @user_data: User data to pass to @callback. + * + * Like org_freedesktop_udisks_proxy_new() but takes a #GBusType instead of a #GDBusConnection. + * + * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from. + * You can then call org_freedesktop_udisks_proxy_new_for_bus_finish() to get the result of the operation. + * + * See org_freedesktop_udisks_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. + */ +void +org_freedesktop_udisks_proxy_new_for_bus ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + 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); +} + +/** + * org_freedesktop_udisks_proxy_new_for_bus_finish: + * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_freedesktop_udisks_proxy_new_for_bus(). + * @error: Return location for error or %NULL + * + * Finishes an operation started with org_freedesktop_udisks_proxy_new_for_bus(). + * + * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisks * +org_freedesktop_udisks_proxy_new_for_bus_finish ( + GAsyncResult *res, + GError **error) +{ + GObject *ret; + GObject *source_object; + source_object = g_async_result_get_source_object (res); + ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); + g_object_unref (source_object); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS (ret); + else + return NULL; +} + +/** + * org_freedesktop_udisks_proxy_new_for_bus_sync: + * @bus_type: A #GBusType. + * @flags: Flags from the #GDBusProxyFlags enumeration. + * @name: A bus name (well-known or unique). + * @object_path: An object path. + * @cancellable: (allow-none): A #GCancellable or %NULL. + * @error: Return location for error or %NULL + * + * Like org_freedesktop_udisks_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. + * + * The calling thread is blocked until a reply is received. + * + * See org_freedesktop_udisks_proxy_new_for_bus() for the asynchronous version of this constructor. + * + * Returns: (transfer full) (type OrgFreedesktopUDisksProxy): The constructed proxy object or %NULL if @error is set. + */ +OrgFreedesktopUDisks * +org_freedesktop_udisks_proxy_new_for_bus_sync ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error) +{ + GInitable *ret; + 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); + if (ret != NULL) + return ORG_FREEDESKTOP_UDISKS (ret); + else + return NULL; +} + + +/* ------------------------------------------------------------------------ */ + +/** + * OrgFreedesktopUDisksSkeleton: + * + * The #OrgFreedesktopUDisksSkeleton structure contains only private data and should only be accessed using the provided API. + */ + +/** + * OrgFreedesktopUDisksSkeletonClass: + * @parent_class: The parent class. + * + * Class structure for #OrgFreedesktopUDisksSkeleton. + */ + +struct _OrgFreedesktopUDisksSkeletonPrivate +{ + GValueArray *properties; + GList *changed_properties; + GSource *changed_properties_idle_source; + GMainContext *context; + GMutex *lock; +}; + +static void +_org_freedesktop_udisks_skeleton_handle_method_call ( + GDBusConnection *connection, + const gchar *sender, + const gchar *object_path, + const gchar *interface_name, + const gchar *method_name, + GVariant *parameters, + GDBusMethodInvocation *invocation, + gpointer user_data) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data); + _ExtendedGDBusMethodInfo *info; + GVariantIter iter; + GVariant *child; + GValue *paramv; + guint num_params; + guint num_extra; + guint n; + guint signal_id; + GValue return_value = {0}; + info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); + g_assert (info != NULL); + num_params = g_variant_n_children (parameters); + num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); + n = 0; + g_value_init (¶mv[n], TYPE_ORG_FREEDESKTOP_UDISKS); + g_value_set_object (¶mv[n++], skeleton); + g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); + g_value_set_object (¶mv[n++], invocation); + if (info->pass_fdlist) + { +#ifdef G_OS_UNIX + g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); + g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); +#else + g_assert_not_reached (); +#endif + } + g_variant_iter_init (&iter, parameters); + while ((child = g_variant_iter_next_value (&iter)) != NULL) + { + _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; + if (arg_info->use_gvariant) + { + g_value_init (¶mv[n], G_TYPE_VARIANT); + g_value_set_variant (¶mv[n], child); + n++; + } + else + g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); + g_variant_unref (child); + } + signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_FREEDESKTOP_UDISKS); + g_value_init (&return_value, G_TYPE_BOOLEAN); + g_signal_emitv (paramv, signal_id, 0, &return_value); + if (!g_value_get_boolean (&return_value)) + 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); + g_value_unset (&return_value); + for (n = 0; n < num_params + num_extra; n++) + g_value_unset (¶mv[n]); + g_free (paramv); +} + +static GVariant * +_org_freedesktop_udisks_skeleton_handle_get_property ( + GDBusConnection *connection, + const gchar *sender, + const gchar *object_path, + const gchar *interface_name, + const gchar *property_name, + GError **error, + gpointer user_data) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data); + GValue value = {0}; + GParamSpec *pspec; + _ExtendedGDBusPropertyInfo *info; + GVariant *ret; + ret = NULL; + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info, property_name); + g_assert (info != NULL); + pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); + if (pspec == NULL) + { + g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); + } + else + { + g_value_init (&value, pspec->value_type); + g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); + ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); + g_value_unset (&value); + } + return ret; +} + +static gboolean +_org_freedesktop_udisks_skeleton_handle_set_property ( + GDBusConnection *connection, + const gchar *sender, + const gchar *object_path, + const gchar *interface_name, + const gchar *property_name, + GVariant *variant, + GError **error, + gpointer user_data) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data); + GValue value = {0}; + GParamSpec *pspec; + _ExtendedGDBusPropertyInfo *info; + gboolean ret; + ret = FALSE; + info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_freedesktop_udisks_interface_info, property_name); + g_assert (info != NULL); + pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); + if (pspec == NULL) + { + g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); + } + else + { + if (info->use_gvariant) + g_value_set_variant (&value, variant); + else + g_dbus_gvariant_to_gvalue (variant, &value); + g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); + g_value_unset (&value); + ret = TRUE; + } + return ret; +} + +static const GDBusInterfaceVTable _org_freedesktop_udisks_skeleton_vtable = +{ + _org_freedesktop_udisks_skeleton_handle_method_call, + _org_freedesktop_udisks_skeleton_handle_get_property, + _org_freedesktop_udisks_skeleton_handle_set_property +}; + +static GDBusInterfaceInfo * +org_freedesktop_udisks_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton) +{ + return org_freedesktop_udisks_interface_info (); +} + +static GDBusInterfaceVTable * +org_freedesktop_udisks_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton) +{ + return (GDBusInterfaceVTable *) &_org_freedesktop_udisks_skeleton_vtable; +} + +static GVariant * +org_freedesktop_udisks_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (_skeleton); + + GVariantBuilder builder; + guint n; + g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); + if (_org_freedesktop_udisks_interface_info.parent_struct.properties == NULL) + goto out; + for (n = 0; _org_freedesktop_udisks_interface_info.parent_struct.properties[n] != NULL; n++) + { + GDBusPropertyInfo *info = _org_freedesktop_udisks_interface_info.parent_struct.properties[n]; + if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) + { + GVariant *value; + 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); + if (value != NULL) + { + g_variant_take_ref (value); + g_variant_builder_add (&builder, "{sv}", info->name, value); + g_variant_unref (value); + } + } + } +out: + return g_variant_builder_end (&builder); +} + +static gboolean _org_freedesktop_udisks_emit_changed (gpointer user_data); + +static void +org_freedesktop_udisks_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (_skeleton); + gboolean emit_changed = FALSE; + + g_mutex_lock (skeleton->priv->lock); + if (skeleton->priv->changed_properties_idle_source != NULL) + { + g_source_destroy (skeleton->priv->changed_properties_idle_source); + skeleton->priv->changed_properties_idle_source = NULL; + emit_changed = TRUE; + } + g_mutex_unlock (skeleton->priv->lock); + + if (emit_changed) + _org_freedesktop_udisks_emit_changed (skeleton); +} + +static void +_org_freedesktop_udisks_on_signal_device_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_device) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceAdded", + g_variant_new ("(o)", + arg_device), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_device_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceRemoved", + g_variant_new ("(o)", + arg_device), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_device_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceChanged", + g_variant_new ("(o)", + arg_device), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_device_job_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + gint arg_job_num_tasks, + gint arg_job_cur_task, + const gchar *arg_job_cur_task_id, + gdouble arg_job_cur_task_percentage) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "DeviceJobChanged", + g_variant_new ("(obbsiisd)", + 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), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_adapter_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "AdapterAdded", + g_variant_new ("(o)", + arg_adapter), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_adapter_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "AdapterRemoved", + g_variant_new ("(o)", + arg_adapter), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_adapter_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "AdapterChanged", + g_variant_new ("(o)", + arg_adapter), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_expander_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "ExpanderAdded", + g_variant_new ("(o)", + arg_expander), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_expander_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "ExpanderRemoved", + g_variant_new ("(o)", + arg_expander), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_expander_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "ExpanderChanged", + g_variant_new ("(o)", + arg_expander), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_port_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_port) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "PortAdded", + g_variant_new ("(o)", + arg_port), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_port_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_port) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "PortRemoved", + g_variant_new ("(o)", + arg_port), NULL); +} + +static void +_org_freedesktop_udisks_on_signal_port_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_port) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GDBusConnection *connection = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)); + if (connection == NULL) + return; + g_dbus_connection_emit_signal (connection, + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.UDisks", "PortChanged", + g_variant_new ("(o)", + arg_port), NULL); +} + +static void org_freedesktop_udisks_skeleton_iface_init (OrgFreedesktopUDisksIface *iface); +G_DEFINE_TYPE_WITH_CODE (OrgFreedesktopUDisksSkeleton, org_freedesktop_udisks_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, + G_IMPLEMENT_INTERFACE (TYPE_ORG_FREEDESKTOP_UDISKS, org_freedesktop_udisks_skeleton_iface_init)); + +static void +org_freedesktop_udisks_skeleton_finalize (GObject *object) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + g_value_array_free (skeleton->priv->properties); + g_list_foreach (skeleton->priv->changed_properties, (GFunc) _changed_property_free, NULL); + g_list_free (skeleton->priv->changed_properties); + if (skeleton->priv->changed_properties_idle_source != NULL) + g_source_destroy (skeleton->priv->changed_properties_idle_source); + if (skeleton->priv->context != NULL) + g_main_context_unref (skeleton->priv->context); + g_mutex_free (skeleton->priv->lock); + G_OBJECT_CLASS (org_freedesktop_udisks_skeleton_parent_class)->finalize (object); +} + +static void +org_freedesktop_udisks_skeleton_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + g_assert (prop_id != 0 && prop_id - 1 < 4); + g_mutex_lock (skeleton->priv->lock); + g_value_copy (&skeleton->priv->properties->values[prop_id - 1], value); + g_mutex_unlock (skeleton->priv->lock); +} + +static gboolean +_org_freedesktop_udisks_emit_changed (gpointer user_data) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (user_data); + GList *l; + GVariantBuilder builder; + GVariantBuilder invalidated_builder; + guint num_changes; + + g_mutex_lock (skeleton->priv->lock); + g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); + g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); + for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) + { + ChangedProperty *cp = l->data; + GVariant *variant; + const GValue *cur_value; + + cur_value = &skeleton->priv->properties->values[cp->prop_id - 1]; + if (!_g_value_equal (cur_value, &cp->orig_value)) + { + variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); + g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); + g_variant_unref (variant); + num_changes++; + } + } + if (num_changes > 0) + { + g_dbus_connection_emit_signal (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), + NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), + "org.freedesktop.DBus.Properties", + "PropertiesChanged", + g_variant_new ("(sa{sv}as)", + "org.freedesktop.UDisks", + &builder, &invalidated_builder), + NULL); + } + else + { + g_variant_builder_clear (&builder); + g_variant_builder_clear (&invalidated_builder); + } + g_list_foreach (skeleton->priv->changed_properties, (GFunc) _changed_property_free, NULL); + g_list_free (skeleton->priv->changed_properties); + skeleton->priv->changed_properties = NULL; + skeleton->priv->changed_properties_idle_source = NULL; + g_mutex_unlock (skeleton->priv->lock); + return FALSE; +} + +static void +_org_freedesktop_udisks_schedule_emit_changed (OrgFreedesktopUDisksSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) +{ + ChangedProperty *cp; + GList *l; + cp = NULL; + for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) + { + ChangedProperty *i_cp = l->data; + if (i_cp->info == info) + { + cp = i_cp; + break; + } + } + if (cp == NULL) + { + cp = g_new0 (ChangedProperty, 1); + cp->prop_id = prop_id; + cp->info = info; + skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); + g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); + g_value_copy (orig_value, &cp->orig_value); + } +} + +static void +org_freedesktop_udisks_skeleton_notify (GObject *object, + GParamSpec *pspec) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + g_mutex_lock (skeleton->priv->lock); + if (skeleton->priv->changed_properties != NULL && + skeleton->priv->changed_properties_idle_source == NULL) + { + skeleton->priv->changed_properties_idle_source = g_idle_source_new (); + g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); + g_source_set_callback (skeleton->priv->changed_properties_idle_source, _org_freedesktop_udisks_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); + g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); + g_source_unref (skeleton->priv->changed_properties_idle_source); + } + g_mutex_unlock (skeleton->priv->lock); +} + +static void +org_freedesktop_udisks_skeleton_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + g_assert (prop_id != 0 && prop_id - 1 < 4); + g_mutex_lock (skeleton->priv->lock); + g_object_freeze_notify (object); + if (!_g_value_equal (value, &skeleton->priv->properties->values[prop_id - 1])) + { + if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL) + _org_freedesktop_udisks_schedule_emit_changed (skeleton, _org_freedesktop_udisks_property_info_pointers[prop_id - 1], prop_id, &skeleton->priv->properties->values[prop_id - 1]); + g_value_copy (value, &skeleton->priv->properties->values[prop_id - 1]); + g_object_notify_by_pspec (object, pspec); + } + g_mutex_unlock (skeleton->priv->lock); + g_object_thaw_notify (object); +} + +static void +org_freedesktop_udisks_skeleton_init (OrgFreedesktopUDisksSkeleton *skeleton) +{ + skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON, OrgFreedesktopUDisksSkeletonPrivate); + skeleton->priv->lock = g_mutex_new (); + skeleton->priv->context = g_main_context_get_thread_default (); + if (skeleton->priv->context != NULL) + g_main_context_ref (skeleton->priv->context); + skeleton->priv->properties = g_value_array_new (4); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[0], G_TYPE_STRING); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[1], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[2], G_TYPE_BOOLEAN); + g_value_array_append (skeleton->priv->properties, NULL); + g_value_init (&skeleton->priv->properties->values[3], G_TYPE_VARIANT); +} + +static const gchar * +org_freedesktop_udisks_skeleton_get_daemon_version (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + const gchar *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_string (&(skeleton->priv->properties->values[0])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_skeleton_get_daemon_is_inhibited (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[1])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static gboolean +org_freedesktop_udisks_skeleton_get_supports_luks_devices (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + gboolean value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_boolean (&(skeleton->priv->properties->values[2])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static GVariant * +org_freedesktop_udisks_skeleton_get_known_filesystems (OrgFreedesktopUDisks *object) +{ + OrgFreedesktopUDisksSkeleton *skeleton = ORG_FREEDESKTOP_UDISKS_SKELETON (object); + GVariant *value; + g_mutex_lock (skeleton->priv->lock); + value = g_value_get_variant (&(skeleton->priv->properties->values[3])); + g_mutex_unlock (skeleton->priv->lock); + return value; +} + +static void +org_freedesktop_udisks_skeleton_class_init (OrgFreedesktopUDisksSkeletonClass *klass) +{ + GObjectClass *gobject_class; + GDBusInterfaceSkeletonClass *skeleton_class; + + g_type_class_add_private (klass, sizeof (OrgFreedesktopUDisksSkeletonPrivate)); + + gobject_class = G_OBJECT_CLASS (klass); + gobject_class->finalize = org_freedesktop_udisks_skeleton_finalize; + gobject_class->get_property = org_freedesktop_udisks_skeleton_get_property; + gobject_class->set_property = org_freedesktop_udisks_skeleton_set_property; + gobject_class->notify = org_freedesktop_udisks_skeleton_notify; + + + org_freedesktop_udisks_override_properties (gobject_class, 1); + + skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); + skeleton_class->get_info = org_freedesktop_udisks_skeleton_dbus_interface_get_info; + skeleton_class->get_properties = org_freedesktop_udisks_skeleton_dbus_interface_get_properties; + skeleton_class->flush = org_freedesktop_udisks_skeleton_dbus_interface_flush; + skeleton_class->get_vtable = org_freedesktop_udisks_skeleton_dbus_interface_get_vtable; +} + +static void +org_freedesktop_udisks_skeleton_iface_init (OrgFreedesktopUDisksIface *iface) +{ + iface->device_added = _org_freedesktop_udisks_on_signal_device_added; + iface->device_removed = _org_freedesktop_udisks_on_signal_device_removed; + iface->device_changed = _org_freedesktop_udisks_on_signal_device_changed; + iface->device_job_changed = _org_freedesktop_udisks_on_signal_device_job_changed; + iface->adapter_added = _org_freedesktop_udisks_on_signal_adapter_added; + iface->adapter_removed = _org_freedesktop_udisks_on_signal_adapter_removed; + iface->adapter_changed = _org_freedesktop_udisks_on_signal_adapter_changed; + iface->expander_added = _org_freedesktop_udisks_on_signal_expander_added; + iface->expander_removed = _org_freedesktop_udisks_on_signal_expander_removed; + iface->expander_changed = _org_freedesktop_udisks_on_signal_expander_changed; + iface->port_added = _org_freedesktop_udisks_on_signal_port_added; + iface->port_removed = _org_freedesktop_udisks_on_signal_port_removed; + iface->port_changed = _org_freedesktop_udisks_on_signal_port_changed; + iface->get_daemon_version = org_freedesktop_udisks_skeleton_get_daemon_version; + iface->get_daemon_is_inhibited = org_freedesktop_udisks_skeleton_get_daemon_is_inhibited; + iface->get_supports_luks_devices = org_freedesktop_udisks_skeleton_get_supports_luks_devices; + iface->get_known_filesystems = org_freedesktop_udisks_skeleton_get_known_filesystems; +} + +/** + * org_freedesktop_udisks_skeleton_new: + * + * Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks. + * + * Returns: (transfer full) (type OrgFreedesktopUDisksSkeleton): The skeleton object. + */ +OrgFreedesktopUDisks * +org_freedesktop_udisks_skeleton_new (void) +{ + return ORG_FREEDESKTOP_UDISKS (g_object_new (TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON, NULL)); +} + diff --git a/udisks.h b/udisks.h new file mode 100644 index 0000000..ac45468 --- /dev/null +++ b/udisks.h @@ -0,0 +1,1043 @@ +/* + * Generated by gdbus-codegen 2.30.3. DO NOT EDIT. + * + * The license of this code is the same as for the source it was derived from. + */ + +#ifndef __UDISKS_H__ +#define __UDISKS_H__ + +#include + +G_BEGIN_DECLS + + +/* ------------------------------------------------------------------------ */ +/* Declarations for org.freedesktop.UDisks */ + +#define TYPE_ORG_FREEDESKTOP_UDISKS (org_freedesktop_udisks_get_type ()) +#define ORG_FREEDESKTOP_UDISKS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_UDISKS, OrgFreedesktopUDisks)) +#define IS_ORG_FREEDESKTOP_UDISKS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_UDISKS)) +#define ORG_FREEDESKTOP_UDISKS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_FREEDESKTOP_UDISKS, OrgFreedesktopUDisksIface)) + +struct _OrgFreedesktopUDisks; +typedef struct _OrgFreedesktopUDisks OrgFreedesktopUDisks; +typedef struct _OrgFreedesktopUDisksIface OrgFreedesktopUDisksIface; + +struct _OrgFreedesktopUDisksIface +{ + GTypeInterface parent_iface; + + + + gboolean (*handle_drive_inhibit_all_polling) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_options); + + gboolean (*handle_drive_set_all_spindown_timeouts) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + gint arg_timeout_seconds, + const gchar *const *arg_options); + + gboolean (*handle_drive_uninhibit_all_polling) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_cookie); + + gboolean (*handle_drive_unset_all_spindown_timeouts) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_cookie); + + gboolean (*handle_enumerate_adapters) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_enumerate_device_files) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_enumerate_devices) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_enumerate_expanders) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_enumerate_ports) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_find_device_by_device_file) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_device_file); + + gboolean (*handle_find_device_by_major_minor) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + gint64 arg_device_major, + gint64 arg_device_minor); + + gboolean (*handle_inhibit) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + + gboolean (*handle_linux_lvm2_lvcreate) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_group_uuid, + const gchar *arg_name, + guint64 arg_size, + guint arg_num_stripes, + guint64 arg_stripe_size, + guint arg_num_mirrors, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions); + + gboolean (*handle_linux_lvm2_lvremove) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options); + + gboolean (*handle_linux_lvm2_lvset_name) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *arg_name); + + gboolean (*handle_linux_lvm2_lvstart) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options); + + gboolean (*handle_linux_lvm2_vgadd_pv) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_uuid, + const gchar *arg_physical_volume, + const gchar *const *arg_options); + + gboolean (*handle_linux_lvm2_vgremove_pv) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_vg_uuid, + const gchar *arg_pv_uuid, + const gchar *const *arg_options); + + gboolean (*handle_linux_lvm2_vgset_name) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_uuid, + const gchar *arg_name); + + gboolean (*handle_linux_lvm2_vgstart) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_uuid, + const gchar *const *arg_options); + + gboolean (*handle_linux_lvm2_vgstop) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_uuid, + const gchar *const *arg_options); + + gboolean (*handle_linux_md_create) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_components, + const gchar *arg_level, + guint64 arg_stripe_size, + const gchar *arg_name, + const gchar *const *arg_options); + + gboolean (*handle_linux_md_start) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *arg_components, + const gchar *const *arg_options); + + gboolean (*handle_uninhibit) ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *arg_cookie); + + gboolean (*get_daemon_is_inhibited) (OrgFreedesktopUDisks *object); + + const gchar * (*get_daemon_version) (OrgFreedesktopUDisks *object); + + GVariant * (*get_known_filesystems) (OrgFreedesktopUDisks *object); + + gboolean (*get_supports_luks_devices) (OrgFreedesktopUDisks *object); + + void (*adapter_added) ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter); + + void (*adapter_changed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter); + + void (*adapter_removed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter); + + void (*device_added) ( + OrgFreedesktopUDisks *object, + const gchar *arg_device); + + void (*device_changed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_device); + + void (*device_job_changed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_device, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + gint arg_job_num_tasks, + gint arg_job_cur_task, + const gchar *arg_job_cur_task_id, + gdouble arg_job_cur_task_percentage); + + void (*device_removed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_device); + + void (*expander_added) ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander); + + void (*expander_changed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander); + + void (*expander_removed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander); + + void (*port_added) ( + OrgFreedesktopUDisks *object, + const gchar *arg_port); + + void (*port_changed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_port); + + void (*port_removed) ( + OrgFreedesktopUDisks *object, + const gchar *arg_port); + +}; + +GType org_freedesktop_udisks_get_type (void) G_GNUC_CONST; + +GDBusInterfaceInfo *org_freedesktop_udisks_interface_info (void); +guint org_freedesktop_udisks_override_properties (GObjectClass *klass, guint property_id_begin); + + +/* D-Bus method call completion functions: */ +void org_freedesktop_udisks_complete_enumerate_adapters ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices); + +void org_freedesktop_udisks_complete_enumerate_expanders ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices); + +void org_freedesktop_udisks_complete_enumerate_ports ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices); + +void org_freedesktop_udisks_complete_enumerate_devices ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *devices); + +void org_freedesktop_udisks_complete_enumerate_device_files ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *const *device_files); + +void org_freedesktop_udisks_complete_find_device_by_device_file ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device); + +void org_freedesktop_udisks_complete_find_device_by_major_minor ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device); + +void org_freedesktop_udisks_complete_drive_inhibit_all_polling ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *cookie); + +void org_freedesktop_udisks_complete_drive_uninhibit_all_polling ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_drive_set_all_spindown_timeouts ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *cookie); + +void org_freedesktop_udisks_complete_drive_unset_all_spindown_timeouts ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_vgstart ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_vgstop ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_vgset_name ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_vgadd_pv ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_vgremove_pv ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_lvset_name ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_lvstart ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_lvremove ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + +void org_freedesktop_udisks_complete_linux_lvm2_lvcreate ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *created_device); + +void org_freedesktop_udisks_complete_linux_md_start ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device); + +void org_freedesktop_udisks_complete_linux_md_create ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *device); + +void org_freedesktop_udisks_complete_inhibit ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation, + const gchar *cookie); + +void org_freedesktop_udisks_complete_uninhibit ( + OrgFreedesktopUDisks *object, + GDBusMethodInvocation *invocation); + + + +/* D-Bus signal emissions functions: */ +void org_freedesktop_udisks_emit_device_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_device); + +void org_freedesktop_udisks_emit_device_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device); + +void org_freedesktop_udisks_emit_device_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device); + +void org_freedesktop_udisks_emit_device_job_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_device, + gboolean arg_job_in_progress, + gboolean arg_job_is_cancellable, + const gchar *arg_job_id, + gint arg_job_num_tasks, + gint arg_job_cur_task, + const gchar *arg_job_cur_task_id, + gdouble arg_job_cur_task_percentage); + +void org_freedesktop_udisks_emit_adapter_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter); + +void org_freedesktop_udisks_emit_adapter_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter); + +void org_freedesktop_udisks_emit_adapter_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_adapter); + +void org_freedesktop_udisks_emit_expander_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander); + +void org_freedesktop_udisks_emit_expander_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander); + +void org_freedesktop_udisks_emit_expander_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_expander); + +void org_freedesktop_udisks_emit_port_added ( + OrgFreedesktopUDisks *object, + const gchar *arg_port); + +void org_freedesktop_udisks_emit_port_removed ( + OrgFreedesktopUDisks *object, + const gchar *arg_port); + +void org_freedesktop_udisks_emit_port_changed ( + OrgFreedesktopUDisks *object, + const gchar *arg_port); + + + +/* D-Bus method calls: */ +void org_freedesktop_udisks_call_enumerate_adapters ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_enumerate_adapters_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_enumerate_adapters_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_enumerate_expanders ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_enumerate_expanders_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_enumerate_expanders_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_enumerate_ports ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_enumerate_ports_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_enumerate_ports_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_enumerate_devices ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_enumerate_devices_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_enumerate_devices_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_devices, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_enumerate_device_files ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_enumerate_device_files_finish ( + OrgFreedesktopUDisks *proxy, + gchar ***out_device_files, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_enumerate_device_files_sync ( + OrgFreedesktopUDisks *proxy, + gchar ***out_device_files, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_find_device_by_device_file ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_device_file, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_find_device_by_device_file_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_find_device_by_device_file_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_device_file, + gchar **out_device, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_find_device_by_major_minor ( + OrgFreedesktopUDisks *proxy, + gint64 arg_device_major, + gint64 arg_device_minor, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_find_device_by_major_minor_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_find_device_by_major_minor_sync ( + OrgFreedesktopUDisks *proxy, + gint64 arg_device_major, + gint64 arg_device_minor, + gchar **out_device, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_drive_inhibit_all_polling ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_drive_inhibit_all_polling_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_drive_inhibit_all_polling_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_drive_uninhibit_all_polling ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_drive_uninhibit_all_polling_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_drive_uninhibit_all_polling_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_drive_set_all_spindown_timeouts ( + OrgFreedesktopUDisks *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_drive_set_all_spindown_timeouts_sync ( + OrgFreedesktopUDisks *proxy, + gint arg_timeout_seconds, + const gchar *const *arg_options, + gchar **out_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_drive_unset_all_spindown_timeouts_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_vgstart ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgstart_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgstart_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_vgstop ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgstop_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgstop_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_vgset_name ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgset_name_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgset_name_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_vgadd_pv ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_physical_volume, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgadd_pv_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_uuid, + const gchar *arg_physical_volume, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_vgremove_pv ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_vg_uuid, + const gchar *arg_pv_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_vgremove_pv_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_vg_uuid, + const gchar *arg_pv_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_lvset_name ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvset_name_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvset_name_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *arg_name, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_lvstart ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvstart_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvstart_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_lvremove ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvremove_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvremove_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_uuid, + const gchar *const *arg_options, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_lvm2_lvcreate ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_name, + guint64 arg_size, + guint arg_num_stripes, + guint64 arg_stripe_size, + guint arg_num_mirrors, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvcreate_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_created_device, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_lvm2_lvcreate_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_group_uuid, + const gchar *arg_name, + guint64 arg_size, + guint arg_num_stripes, + guint64 arg_stripe_size, + guint arg_num_mirrors, + const gchar *const *arg_options, + const gchar *arg_fstype, + const gchar *const *arg_fsoptions, + gchar **out_created_device, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_md_start ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_md_start_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_md_start_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *const *arg_options, + gchar **out_device, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_linux_md_create ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *arg_level, + guint64 arg_stripe_size, + const gchar *arg_name, + const gchar *const *arg_options, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_linux_md_create_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_device, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_linux_md_create_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *const *arg_components, + const gchar *arg_level, + guint64 arg_stripe_size, + const gchar *arg_name, + const gchar *const *arg_options, + gchar **out_device, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_inhibit ( + OrgFreedesktopUDisks *proxy, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_inhibit_finish ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_inhibit_sync ( + OrgFreedesktopUDisks *proxy, + gchar **out_cookie, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_call_uninhibit ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean org_freedesktop_udisks_call_uninhibit_finish ( + OrgFreedesktopUDisks *proxy, + GAsyncResult *res, + GError **error); + +gboolean org_freedesktop_udisks_call_uninhibit_sync ( + OrgFreedesktopUDisks *proxy, + const gchar *arg_cookie, + GCancellable *cancellable, + GError **error); + + + +/* D-Bus property accessors: */ +const gchar *org_freedesktop_udisks_get_daemon_version (OrgFreedesktopUDisks *object); +gchar *org_freedesktop_udisks_dup_daemon_version (OrgFreedesktopUDisks *object); +void org_freedesktop_udisks_set_daemon_version (OrgFreedesktopUDisks *object, const gchar *value); + +gboolean org_freedesktop_udisks_get_daemon_is_inhibited (OrgFreedesktopUDisks *object); +void org_freedesktop_udisks_set_daemon_is_inhibited (OrgFreedesktopUDisks *object, gboolean value); + +gboolean org_freedesktop_udisks_get_supports_luks_devices (OrgFreedesktopUDisks *object); +void org_freedesktop_udisks_set_supports_luks_devices (OrgFreedesktopUDisks *object, gboolean value); + +GVariant *org_freedesktop_udisks_get_known_filesystems (OrgFreedesktopUDisks *object); +GVariant *org_freedesktop_udisks_dup_known_filesystems (OrgFreedesktopUDisks *object); +void org_freedesktop_udisks_set_known_filesystems (OrgFreedesktopUDisks *object, GVariant *value); + + +/* ---- */ + +#define TYPE_ORG_FREEDESKTOP_UDISKS_PROXY (org_freedesktop_udisks_proxy_get_type ()) +#define ORG_FREEDESKTOP_UDISKS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_UDISKS_PROXY, OrgFreedesktopUDisksProxy)) +#define ORG_FREEDESKTOP_UDISKS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_UDISKS_PROXY, OrgFreedesktopUDisksProxyClass)) +#define ORG_FREEDESKTOP_UDISKS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_UDISKS_PROXY, OrgFreedesktopUDisksProxyClass)) +#define IS_ORG_FREEDESKTOP_UDISKS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_UDISKS_PROXY)) +#define IS_ORG_FREEDESKTOP_UDISKS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_UDISKS_PROXY)) + +typedef struct _OrgFreedesktopUDisksProxy OrgFreedesktopUDisksProxy; +typedef struct _OrgFreedesktopUDisksProxyClass OrgFreedesktopUDisksProxyClass; +typedef struct _OrgFreedesktopUDisksProxyPrivate OrgFreedesktopUDisksProxyPrivate; + +struct _OrgFreedesktopUDisksProxy +{ + /*< private >*/ + GDBusProxy parent_instance; + OrgFreedesktopUDisksProxyPrivate *priv; +}; + +struct _OrgFreedesktopUDisksProxyClass +{ + GDBusProxyClass parent_class; +}; + +GType org_freedesktop_udisks_proxy_get_type (void) G_GNUC_CONST; + +void org_freedesktop_udisks_proxy_new ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +OrgFreedesktopUDisks *org_freedesktop_udisks_proxy_new_finish ( + GAsyncResult *res, + GError **error); +OrgFreedesktopUDisks *org_freedesktop_udisks_proxy_new_sync ( + GDBusConnection *connection, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error); + +void org_freedesktop_udisks_proxy_new_for_bus ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +OrgFreedesktopUDisks *org_freedesktop_udisks_proxy_new_for_bus_finish ( + GAsyncResult *res, + GError **error); +OrgFreedesktopUDisks *org_freedesktop_udisks_proxy_new_for_bus_sync ( + GBusType bus_type, + GDBusProxyFlags flags, + const gchar *name, + const gchar *object_path, + GCancellable *cancellable, + GError **error); + + +/* ---- */ + +#define TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON (org_freedesktop_udisks_skeleton_get_type ()) +#define ORG_FREEDESKTOP_UDISKS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON, OrgFreedesktopUDisksSkeleton)) +#define ORG_FREEDESKTOP_UDISKS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON, OrgFreedesktopUDisksSkeletonClass)) +#define ORG_FREEDESKTOP_UDISKS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON, OrgFreedesktopUDisksSkeletonClass)) +#define IS_ORG_FREEDESKTOP_UDISKS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON)) +#define IS_ORG_FREEDESKTOP_UDISKS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_UDISKS_SKELETON)) + +typedef struct _OrgFreedesktopUDisksSkeleton OrgFreedesktopUDisksSkeleton; +typedef struct _OrgFreedesktopUDisksSkeletonClass OrgFreedesktopUDisksSkeletonClass; +typedef struct _OrgFreedesktopUDisksSkeletonPrivate OrgFreedesktopUDisksSkeletonPrivate; + +struct _OrgFreedesktopUDisksSkeleton +{ + /*< private >*/ + GDBusInterfaceSkeleton parent_instance; + OrgFreedesktopUDisksSkeletonPrivate *priv; +}; + +struct _OrgFreedesktopUDisksSkeletonClass +{ + GDBusInterfaceSkeletonClass parent_class; +}; + +GType org_freedesktop_udisks_skeleton_get_type (void) G_GNUC_CONST; + +OrgFreedesktopUDisks *org_freedesktop_udisks_skeleton_new (void); + + +G_END_DECLS + +#endif /* __UDISKS_H__ */ -- cgit v1.2.3