Top |
GVariant * | active-devices | Read / Write |
gchar * | bitmap-location | Read / Write |
GVariant * | child-configuration | Read / Write |
guint64 | chunk-size | Read / Write |
guint | degraded | Read / Write |
gchar * | level | Read / Write |
gchar * | name | Read / Write |
guint | num-devices | Read / Write |
gboolean | running | Read / Write |
guint64 | size | Read / Write |
gchar * | sync-action | Read / Write |
gdouble | sync-completed | Read / Write |
guint64 | sync-rate | Read / Write |
guint64 | sync-remaining-time | Read / Write |
gchar * | uuid | Read / Write |
UDisksMDRaid | |
struct | UDisksMDRaidIface |
struct | UDisksMDRaidProxy |
struct | UDisksMDRaidProxyClass |
struct | UDisksMDRaidSkeleton |
struct | UDisksMDRaidSkeletonClass |
GInterface ╰── UDisksMDRaid GObject ├── GDBusInterfaceSkeleton │ ╰── UDisksMDRaidSkeleton │ ╰── UDisksLinuxMDRaid ╰── GDBusProxy ╰── UDisksMDRaidProxy
UDisksMDRaidProxy implements GDBusInterface, GInitable, GAsyncInitable and UDisksMDRaid.
UDisksMDRaidSkeleton implements GDBusInterface and UDisksMDRaid.
UDisksMDRaid is implemented by UDisksLinuxMDRaid, UDisksMDRaidProxy and UDisksMDRaidSkeleton.
This section contains code for working with the org.freedesktop.UDisks2.MDRaid D-Bus interface in C.
GDBusInterfaceInfo *
udisks_mdraid_interface_info (void
);
Gets a machine-readable description of the org.freedesktop.UDisks2.MDRaid D-Bus interface.
Since: 2.0.0
guint udisks_mdraid_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the UDisksMDRaid interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
Since: 2.0.0
void udisks_mdraid_call_remove_device (UDisksMDRaid *proxy
,const gchar *arg_device
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the RemoveDevice()
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 udisks_mdraid_call_remove_device_finish()
to get the result of the operation.
See udisks_mdraid_call_remove_device_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_device |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean udisks_mdraid_call_remove_device_finish (UDisksMDRaid *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_call_remove_device()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean udisks_mdraid_call_remove_device_sync (UDisksMDRaid *proxy
,const gchar *arg_device
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the RemoveDevice()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_mdraid_call_remove_device()
for the asynchronous version of this method.
proxy |
||
arg_device |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.0.0
void udisks_mdraid_complete_remove_device (UDisksMDRaid *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the RemoveDevice()
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.
Since: 2.0.0
void udisks_mdraid_call_add_device (UDisksMDRaid *proxy
,const gchar *arg_device
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the AddDevice()
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 udisks_mdraid_call_add_device_finish()
to get the result of the operation.
See udisks_mdraid_call_add_device_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_device |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean udisks_mdraid_call_add_device_finish (UDisksMDRaid *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_call_add_device()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean udisks_mdraid_call_add_device_sync (UDisksMDRaid *proxy
,const gchar *arg_device
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the AddDevice()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_mdraid_call_add_device()
for the asynchronous version of this method.
proxy |
||
arg_device |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.0.0
void udisks_mdraid_complete_add_device (UDisksMDRaid *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the AddDevice()
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.
Since: 2.0.0
void udisks_mdraid_call_start (UDisksMDRaid *proxy
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Start()
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 udisks_mdraid_call_start_finish()
to get the result of the operation.
See udisks_mdraid_call_start_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean udisks_mdraid_call_start_finish (UDisksMDRaid *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_call_start()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean udisks_mdraid_call_start_sync (UDisksMDRaid *proxy
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Start()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_mdraid_call_start()
for the asynchronous version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.0.0
void udisks_mdraid_complete_start (UDisksMDRaid *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the Start()
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.
Since: 2.0.0
void udisks_mdraid_call_stop (UDisksMDRaid *proxy
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Stop()
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 udisks_mdraid_call_stop_finish()
to get the result of the operation.
See udisks_mdraid_call_stop_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean udisks_mdraid_call_stop_finish (UDisksMDRaid *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_call_stop()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean udisks_mdraid_call_stop_sync (UDisksMDRaid *proxy
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Stop()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_mdraid_call_stop()
for the asynchronous version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.0.0
void udisks_mdraid_complete_stop (UDisksMDRaid *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the Stop()
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.
Since: 2.0.0
void udisks_mdraid_call_set_bitmap_location (UDisksMDRaid *proxy
,const gchar *arg_value
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the SetBitmapLocation()
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 udisks_mdraid_call_set_bitmap_location_finish()
to get the result of the operation.
See udisks_mdraid_call_set_bitmap_location_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_value |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean udisks_mdraid_call_set_bitmap_location_finish (UDisksMDRaid *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_call_set_bitmap_location()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean udisks_mdraid_call_set_bitmap_location_sync (UDisksMDRaid *proxy
,const gchar *arg_value
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the SetBitmapLocation()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_mdraid_call_set_bitmap_location()
for the asynchronous version of this method.
proxy |
||
arg_value |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.0.0
void udisks_mdraid_complete_set_bitmap_location (UDisksMDRaid *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the SetBitmapLocation()
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.
Since: 2.0.0
void udisks_mdraid_call_request_sync_action (UDisksMDRaid *proxy
,const gchar *arg_sync_action
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the RequestSyncAction()
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 udisks_mdraid_call_request_sync_action_finish()
to get the result of the operation.
See udisks_mdraid_call_request_sync_action_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_sync_action |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean udisks_mdraid_call_request_sync_action_finish (UDisksMDRaid *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_call_request_sync_action()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean udisks_mdraid_call_request_sync_action_sync (UDisksMDRaid *proxy
,const gchar *arg_sync_action
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the RequestSyncAction()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_mdraid_call_request_sync_action()
for the asynchronous version of this method.
proxy |
||
arg_sync_action |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.0.0
void udisks_mdraid_complete_request_sync_action (UDisksMDRaid *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the RequestSyncAction()
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.
Since: 2.0.0
GVariant *
udisks_mdraid_get_active_devices (UDisksMDRaid *object
);
Gets the value of the "ActiveDevices" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use udisks_mdraid_dup_active_devices()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
Since: 2.0.0
const gchar *
udisks_mdraid_get_bitmap_location (UDisksMDRaid *object
);
Gets the value of the "BitmapLocation" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use udisks_mdraid_dup_bitmap_location()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
Since: 2.0.0
guint64
udisks_mdraid_get_chunk_size (UDisksMDRaid *object
);
Gets the value of the "ChunkSize" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Since: 2.0.0
guint
udisks_mdraid_get_degraded (UDisksMDRaid *object
);
Gets the value of the "Degraded" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Since: 2.0.0
const gchar *
udisks_mdraid_get_level (UDisksMDRaid *object
);
Gets the value of the "Level" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use udisks_mdraid_dup_level()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
Since: 2.0.0
const gchar *
udisks_mdraid_get_name (UDisksMDRaid *object
);
Gets the value of the "Name" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use udisks_mdraid_dup_name()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
Since: 2.0.0
guint
udisks_mdraid_get_num_devices (UDisksMDRaid *object
);
Gets the value of the "NumDevices" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Since: 2.0.0
guint64
udisks_mdraid_get_size (UDisksMDRaid *object
);
Gets the value of the "Size" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Since: 2.0.0
const gchar *
udisks_mdraid_get_sync_action (UDisksMDRaid *object
);
Gets the value of the "SyncAction" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use udisks_mdraid_dup_sync_action()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
Since: 2.0.0
gdouble
udisks_mdraid_get_sync_completed (UDisksMDRaid *object
);
Gets the value of the "SyncCompleted" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Since: 2.0.0
guint64
udisks_mdraid_get_sync_rate (UDisksMDRaid *object
);
Gets the value of the "SyncRate" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Since: 2.0.0
guint64
udisks_mdraid_get_sync_remaining_time (UDisksMDRaid *object
);
Gets the value of the "SyncRemainingTime" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Since: 2.0.0
const gchar *
udisks_mdraid_get_uuid (UDisksMDRaid *object
);
Gets the value of the "UUID" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use udisks_mdraid_dup_uuid()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
Since: 2.0.0
GVariant *
udisks_mdraid_dup_active_devices (UDisksMDRaid *object
);
Gets a copy of the "ActiveDevices" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full]
Since: 2.0.0
gchar *
udisks_mdraid_dup_bitmap_location (UDisksMDRaid *object
);
Gets a copy of the "BitmapLocation" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_free()
.
[transfer full]
Since: 2.0.0
gchar *
udisks_mdraid_dup_level (UDisksMDRaid *object
);
Gets a copy of the "Level" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_free()
.
[transfer full]
Since: 2.0.0
gchar *
udisks_mdraid_dup_name (UDisksMDRaid *object
);
Gets a copy of the "Name" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_free()
.
[transfer full]
Since: 2.0.0
gchar *
udisks_mdraid_dup_sync_action (UDisksMDRaid *object
);
Gets a copy of the "SyncAction" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_free()
.
[transfer full]
Since: 2.0.0
gchar *
udisks_mdraid_dup_uuid (UDisksMDRaid *object
);
Gets a copy of the "UUID" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_free()
.
[transfer full]
Since: 2.0.0
void udisks_mdraid_set_active_devices (UDisksMDRaid *object
,GVariant *value
);
Sets the "ActiveDevices" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_bitmap_location (UDisksMDRaid *object
,const gchar *value
);
Sets the "BitmapLocation" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_chunk_size (UDisksMDRaid *object
,guint64 value
);
Sets the "ChunkSize" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_degraded (UDisksMDRaid *object
,guint value
);
Sets the "Degraded" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_level (UDisksMDRaid *object
,const gchar *value
);
Sets the "Level" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_name (UDisksMDRaid *object
,const gchar *value
);
Sets the "Name" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_num_devices (UDisksMDRaid *object
,guint value
);
Sets the "NumDevices" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_size (UDisksMDRaid *object
,guint64 value
);
Sets the "Size" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_sync_action (UDisksMDRaid *object
,const gchar *value
);
Sets the "SyncAction" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_sync_completed (UDisksMDRaid *object
,gdouble value
);
Sets the "SyncCompleted" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_sync_rate (UDisksMDRaid *object
,guint64 value
);
Sets the "SyncRate" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_sync_remaining_time (UDisksMDRaid *object
,guint64 value
);
Sets the "SyncRemainingTime" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_set_uuid (UDisksMDRaid *object
,const gchar *value
);
Sets the "UUID" 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.
[skip]
Since: 2.0.0
void udisks_mdraid_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks2.MDRaid. 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 udisks_mdraid_proxy_new_finish()
to get the result of the operation.
See udisks_mdraid_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
Since: 2.0.0
UDisksMDRaid * udisks_mdraid_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type UDisksMDRaidProxy]
Since: 2.0.0
UDisksMDRaid * udisks_mdraid_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks2.MDRaid. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See udisks_mdraid_proxy_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type UDisksMDRaidProxy]
Since: 2.0.0
void udisks_mdraid_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like udisks_mdraid_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 udisks_mdraid_proxy_new_for_bus_finish()
to get the result of the operation.
See udisks_mdraid_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
Since: 2.0.0
UDisksMDRaid * udisks_mdraid_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_mdraid_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type UDisksMDRaidProxy]
Since: 2.0.0
UDisksMDRaid * udisks_mdraid_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like udisks_mdraid_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See udisks_mdraid_proxy_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type UDisksMDRaidProxy]
Since: 2.0.0
UDisksMDRaid *
udisks_mdraid_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks2.MDRaid.
Since: 2.0.0
typedef struct _UDisksMDRaid UDisksMDRaid;
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.MDRaid.
Since: 2.0.0
struct UDisksMDRaidIface { GTypeInterface parent_iface; gboolean (*handle_add_device) ( UDisksMDRaid *object, GDBusMethodInvocation *invocation, const gchar *arg_device, GVariant *arg_options); gboolean (*handle_delete) ( UDisksMDRaid *object, GDBusMethodInvocation *invocation, GVariant *arg_options); gboolean (*handle_remove_device) ( UDisksMDRaid *object, GDBusMethodInvocation *invocation, const gchar *arg_device, GVariant *arg_options); gboolean (*handle_request_sync_action) ( UDisksMDRaid *object, GDBusMethodInvocation *invocation, const gchar *arg_sync_action, GVariant *arg_options); gboolean (*handle_set_bitmap_location) ( UDisksMDRaid *object, GDBusMethodInvocation *invocation, const gchar *arg_value, GVariant *arg_options); gboolean (*handle_start) ( UDisksMDRaid *object, GDBusMethodInvocation *invocation, GVariant *arg_options); gboolean (*handle_stop) ( UDisksMDRaid *object, GDBusMethodInvocation *invocation, GVariant *arg_options); GVariant * (*get_active_devices) (UDisksMDRaid *object); const gchar * (*get_bitmap_location) (UDisksMDRaid *object); GVariant * (*get_child_configuration) (UDisksMDRaid *object); guint64 (*get_chunk_size) (UDisksMDRaid *object); guint (*get_degraded) (UDisksMDRaid *object); const gchar * (*get_level) (UDisksMDRaid *object); const gchar * (*get_name) (UDisksMDRaid *object); guint (*get_num_devices) (UDisksMDRaid *object); gboolean (*get_running) (UDisksMDRaid *object); guint64 (*get_size) (UDisksMDRaid *object); const gchar * (*get_sync_action) (UDisksMDRaid *object); gdouble (*get_sync_completed) (UDisksMDRaid *object); guint64 (*get_sync_rate) (UDisksMDRaid *object); guint64 (*get_sync_remaining_time) (UDisksMDRaid *object); const gchar * (*get_uuid) (UDisksMDRaid *object); };
Virtual table for the D-Bus interface org.freedesktop.UDisks2.MDRaid.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-add-device” signal. |
||
Handler for the “handle-delete” signal. |
||
Handler for the “handle-remove-device” signal. |
||
Handler for the “handle-request-sync-action” signal. |
||
Handler for the “handle-set-bitmap-location” signal. |
||
Handler for the “handle-start” signal. |
||
Handler for the “handle-stop” signal. |
||
Getter for the “active-devices” property. |
||
Getter for the “bitmap-location” property. |
||
Getter for the “child-configuration” property. |
||
Getter for the “chunk-size” property. |
||
Getter for the “degraded” property. |
||
Getter for the “level” property. |
||
Getter for the “name” property. |
||
Getter for the “num-devices” property. |
||
Getter for the “running” property. |
||
Getter for the “size” property. |
||
Getter for the “sync-action” property. |
||
Getter for the “sync-completed” property. |
||
Getter for the “sync-rate” property. |
||
Getter for the “sync-remaining-time” property. |
||
Getter for the “uuid” property. |
Since: 2.0.0
struct UDisksMDRaidProxy;
The UDisksMDRaidProxy structure contains only private data and should only be accessed using the provided API.
Since: 2.0.0
struct UDisksMDRaidProxyClass { GDBusProxyClass parent_class; };
Class structure for UDisksMDRaidProxy.
Since: 2.0.0
struct UDisksMDRaidSkeleton;
The UDisksMDRaidSkeleton structure contains only private data and should only be accessed using the provided API.
Since: 2.0.0
struct UDisksMDRaidSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for UDisksMDRaidSkeleton.
Since: 2.0.0
“active-devices”
property“active-devices” GVariant *
Represents the D-Bus property "ActiveDevices".
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.
Flags: Read / Write
Allowed values: GVariant<a(oiasta{sv})>
Default value: NULL
Since: 2.0.0
“bitmap-location”
property“bitmap-location” gchar *
Represents the D-Bus property "BitmapLocation".
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.
Flags: Read / Write
Default value: NULL
Since: 2.0.0
“child-configuration”
property“child-configuration” GVariant *
Represents the D-Bus property "ChildConfiguration".
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.
Flags: Read / Write
Allowed values: GVariant<a(sa{sv})>
Default value: NULL
Since: 2.0.0
“chunk-size”
property“chunk-size” guint64
Represents the D-Bus property "ChunkSize".
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.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“degraded”
property“degraded” guint
Represents the D-Bus property "Degraded".
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.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“level”
property“level” gchar *
Represents the D-Bus property "Level".
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.
Flags: Read / Write
Default value: NULL
Since: 2.0.0
“name”
property“name” gchar *
Represents the D-Bus property "Name".
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.
Flags: Read / Write
Default value: NULL
Since: 2.0.0
“num-devices”
property“num-devices” guint
Represents the D-Bus property "NumDevices".
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.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“running”
property“running” gboolean
Represents the D-Bus property "Running".
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.
Flags: Read / Write
Default value: FALSE
Since: 2.0.0
“size”
property“size” guint64
Represents the D-Bus property "Size".
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.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“sync-action”
property“sync-action” gchar *
Represents the D-Bus property "SyncAction".
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.
Flags: Read / Write
Default value: NULL
Since: 2.0.0
“sync-completed”
property“sync-completed” gdouble
Represents the D-Bus property "SyncCompleted".
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.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“sync-rate”
property“sync-rate” guint64
Represents the D-Bus property "SyncRate".
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.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“sync-remaining-time”
property“sync-remaining-time” guint64
Represents the D-Bus property "SyncRemainingTime".
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.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“uuid”
property“uuid” gchar *
Represents the D-Bus property "UUID".
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.
Flags: Read / Write
Default value: NULL
Since: 2.0.0
“handle-add-device”
signalgboolean user_function (UDisksMDRaid *object, GDBusMethodInvocation *invocation, gchar *arg_device, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the AddDevice()
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 udisks_mdraid_complete_add_device()
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.
object |
A UDisksMDRaid. |
|
invocation |
||
arg_device |
Argument passed by remote caller. |
|
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“handle-delete”
signalgboolean user_function (UDisksMDRaid *object, GDBusMethodInvocation *invocation, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the Delete()
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 udisks_mdraid_complete_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.
object |
A UDisksMDRaid. |
|
invocation |
||
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“handle-remove-device”
signalgboolean user_function (UDisksMDRaid *object, GDBusMethodInvocation *invocation, gchar *arg_device, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the RemoveDevice()
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 udisks_mdraid_complete_remove_device()
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.
object |
A UDisksMDRaid. |
|
invocation |
||
arg_device |
Argument passed by remote caller. |
|
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“handle-request-sync-action”
signalgboolean user_function (UDisksMDRaid *object, GDBusMethodInvocation *invocation, gchar *arg_sync_action, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the RequestSyncAction()
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 udisks_mdraid_complete_request_sync_action()
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.
object |
A UDisksMDRaid. |
|
invocation |
||
arg_sync_action |
Argument passed by remote caller. |
|
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“handle-set-bitmap-location”
signalgboolean user_function (UDisksMDRaid *object, GDBusMethodInvocation *invocation, gchar *arg_value, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the SetBitmapLocation()
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 udisks_mdraid_complete_set_bitmap_location()
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.
object |
A UDisksMDRaid. |
|
invocation |
||
arg_value |
Argument passed by remote caller. |
|
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“handle-start”
signalgboolean user_function (UDisksMDRaid *object, GDBusMethodInvocation *invocation, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the Start()
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 udisks_mdraid_complete_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.
object |
A UDisksMDRaid. |
|
invocation |
||
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“handle-stop”
signalgboolean user_function (UDisksMDRaid *object, GDBusMethodInvocation *invocation, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the Stop()
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 udisks_mdraid_complete_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.
object |
A UDisksMDRaid. |
|
invocation |
||
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0