| Top |
StoragedMDRaidStoragedMDRaid — Generated C code for the org.storaged.Storaged.MDRaid D-Bus interface |
| 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 |
| gboolean | handle-add-device | Run Last |
| gboolean | handle-delete | Run Last |
| gboolean | handle-remove-device | Run Last |
| gboolean | handle-request-sync-action | Run Last |
| gboolean | handle-set-bitmap-location | Run Last |
| gboolean | handle-start | Run Last |
| gboolean | handle-stop | Run Last |
| StoragedMDRaid | |
| struct | StoragedMDRaidIface |
| struct | StoragedMDRaidProxy |
| struct | StoragedMDRaidProxyClass |
| struct | StoragedMDRaidSkeleton |
| struct | StoragedMDRaidSkeletonClass |
GInterface ╰── StoragedMDRaid GObject ├── GDBusInterfaceSkeleton │ ╰── StoragedMDRaidSkeleton │ ╰── StoragedLinuxMDRaid ╰── GDBusProxy ╰── StoragedMDRaidProxy
StoragedMDRaidProxy implements GDBusInterface, GInitable, GAsyncInitable and StoragedMDRaid.
StoragedMDRaidSkeleton implements GDBusInterface and StoragedMDRaid.
StoragedMDRaid is implemented by StoragedLinuxMDRaid, StoragedMDRaidProxy and StoragedMDRaidSkeleton.
This section contains code for working with the org.storaged.Storaged.MDRaid D-Bus interface in C.
GDBusInterfaceInfo *
storaged_mdraid_interface_info (void);
Gets a machine-readable description of the org.storaged.Storaged.MDRaid D-Bus interface.
Since: 2.0.0
guint storaged_mdraid_override_properties (GObjectClass *klass,guint property_id_begin);
Overrides all GObject properties in the StoragedMDRaid 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 storaged_mdraid_call_remove_device (StoragedMDRaid *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 storaged_mdraid_call_remove_device_finish() to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean storaged_mdraid_call_remove_device_finish (StoragedMDRaid *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_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 storaged_mdraid_call_remove_device_sync (StoragedMDRaid *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 storaged_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 |
[allow-none] |
error |
Return location for error or |
Since: 2.0.0
void storaged_mdraid_complete_remove_device (StoragedMDRaid *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 storaged_mdraid_call_add_device (StoragedMDRaid *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 storaged_mdraid_call_add_device_finish() to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean storaged_mdraid_call_add_device_finish (StoragedMDRaid *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_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 storaged_mdraid_call_add_device_sync (StoragedMDRaid *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 storaged_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 |
[allow-none] |
error |
Return location for error or |
Since: 2.0.0
void storaged_mdraid_complete_add_device (StoragedMDRaid *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 storaged_mdraid_call_start (StoragedMDRaid *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 storaged_mdraid_call_start_finish() to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean storaged_mdraid_call_start_finish (StoragedMDRaid *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_mdraid_call_start().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean storaged_mdraid_call_start_sync (StoragedMDRaid *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 storaged_mdraid_call_start() for the asynchronous version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 2.0.0
void storaged_mdraid_complete_start (StoragedMDRaid *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 storaged_mdraid_call_stop (StoragedMDRaid *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 storaged_mdraid_call_stop_finish() to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean storaged_mdraid_call_stop_finish (StoragedMDRaid *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_mdraid_call_stop().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.0.0
gboolean storaged_mdraid_call_stop_sync (StoragedMDRaid *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 storaged_mdraid_call_stop() for the asynchronous version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 2.0.0
void storaged_mdraid_complete_stop (StoragedMDRaid *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 storaged_mdraid_call_set_bitmap_location (StoragedMDRaid *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 storaged_mdraid_call_set_bitmap_location_finish() to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean storaged_mdraid_call_set_bitmap_location_finish (StoragedMDRaid *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_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 storaged_mdraid_call_set_bitmap_location_sync (StoragedMDRaid *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 storaged_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 |
[allow-none] |
error |
Return location for error or |
Since: 2.0.0
void storaged_mdraid_complete_set_bitmap_location (StoragedMDRaid *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 storaged_mdraid_call_request_sync_action (StoragedMDRaid *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 storaged_mdraid_call_request_sync_action_finish() to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.0.0
gboolean storaged_mdraid_call_request_sync_action_finish (StoragedMDRaid *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_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 storaged_mdraid_call_request_sync_action_sync (StoragedMDRaid *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 storaged_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 |
[allow-none] |
error |
Return location for error or |
Since: 2.0.0
void storaged_mdraid_complete_request_sync_action (StoragedMDRaid *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 *
storaged_mdraid_get_active_devices (StoragedMDRaid *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 storaged_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 *
storaged_mdraid_get_bitmap_location (StoragedMDRaid *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 storaged_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
storaged_mdraid_get_chunk_size (StoragedMDRaid *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
storaged_mdraid_get_degraded (StoragedMDRaid *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 *
storaged_mdraid_get_level (StoragedMDRaid *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 storaged_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 *
storaged_mdraid_get_name (StoragedMDRaid *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 storaged_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
storaged_mdraid_get_num_devices (StoragedMDRaid *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
storaged_mdraid_get_size (StoragedMDRaid *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 *
storaged_mdraid_get_sync_action (StoragedMDRaid *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 storaged_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
storaged_mdraid_get_sync_completed (StoragedMDRaid *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
storaged_mdraid_get_sync_rate (StoragedMDRaid *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
storaged_mdraid_get_sync_remaining_time
(StoragedMDRaid *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 *
storaged_mdraid_get_uuid (StoragedMDRaid *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 storaged_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 *
storaged_mdraid_dup_active_devices (StoragedMDRaid *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 *
storaged_mdraid_dup_bitmap_location (StoragedMDRaid *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 *
storaged_mdraid_dup_level (StoragedMDRaid *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 *
storaged_mdraid_dup_name (StoragedMDRaid *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 *
storaged_mdraid_dup_sync_action (StoragedMDRaid *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 *
storaged_mdraid_dup_uuid (StoragedMDRaid *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 storaged_mdraid_set_active_devices (StoragedMDRaid *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 storaged_mdraid_set_bitmap_location (StoragedMDRaid *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 storaged_mdraid_set_chunk_size (StoragedMDRaid *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 storaged_mdraid_set_degraded (StoragedMDRaid *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 storaged_mdraid_set_level (StoragedMDRaid *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 storaged_mdraid_set_name (StoragedMDRaid *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 storaged_mdraid_set_num_devices (StoragedMDRaid *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 storaged_mdraid_set_size (StoragedMDRaid *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 storaged_mdraid_set_sync_action (StoragedMDRaid *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 storaged_mdraid_set_sync_completed (StoragedMDRaid *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 storaged_mdraid_set_sync_rate (StoragedMDRaid *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 storaged_mdraid_set_sync_remaining_time (StoragedMDRaid *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 storaged_mdraid_set_uuid (StoragedMDRaid *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 storaged_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.storaged.Storaged.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 storaged_mdraid_proxy_new_finish() to get the result of the operation.
See storaged_mdraid_proxy_new_sync() for the synchronous, blocking version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[allow-none] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
Since: 2.0.0
StoragedMDRaid * storaged_mdraid_proxy_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with storaged_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 StoragedMDRaidProxy]
Since: 2.0.0
StoragedMDRaid * storaged_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.storaged.Storaged.MDRaid. See g_dbus_proxy_new_sync() for more details.
The calling thread is blocked until a reply is received.
See storaged_mdraid_proxy_new() for the asynchronous version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[allow-none] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
The constructed proxy object or NULL if error
is set.
[transfer full][type StoragedMDRaidProxy]
Since: 2.0.0
void storaged_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 storaged_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 storaged_mdraid_proxy_new_for_bus_finish() to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
Since: 2.0.0
StoragedMDRaid * storaged_mdraid_proxy_new_for_bus_finish (GAsyncResult *res,GError **error);
Finishes an operation started with storaged_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 StoragedMDRaidProxy]
Since: 2.0.0
StoragedMDRaid * storaged_mdraid_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error);
Like storaged_mdraid_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See storaged_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 |
[allow-none] |
error |
Return location for error or |
The constructed proxy object or NULL if error
is set.
[transfer full][type StoragedMDRaidProxy]
Since: 2.0.0
StoragedMDRaid *
storaged_mdraid_skeleton_new (void);
Creates a skeleton object for the D-Bus interface org.storaged.Storaged.MDRaid.
Since: 2.0.0
typedef struct _StoragedMDRaid StoragedMDRaid;
Abstract interface type for the D-Bus interface org.storaged.Storaged.MDRaid.
Since: 2.0.0
struct StoragedMDRaidIface {
GTypeInterface parent_iface;
gboolean (*handle_add_device) (
StoragedMDRaid *object,
GDBusMethodInvocation *invocation,
const gchar *arg_device,
GVariant *arg_options);
gboolean (*handle_delete) (
StoragedMDRaid *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*handle_remove_device) (
StoragedMDRaid *object,
GDBusMethodInvocation *invocation,
const gchar *arg_device,
GVariant *arg_options);
gboolean (*handle_request_sync_action) (
StoragedMDRaid *object,
GDBusMethodInvocation *invocation,
const gchar *arg_sync_action,
GVariant *arg_options);
gboolean (*handle_set_bitmap_location) (
StoragedMDRaid *object,
GDBusMethodInvocation *invocation,
const gchar *arg_value,
GVariant *arg_options);
gboolean (*handle_start) (
StoragedMDRaid *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*handle_stop) (
StoragedMDRaid *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
GVariant * (*get_active_devices) (StoragedMDRaid *object);
const gchar * (*get_bitmap_location) (StoragedMDRaid *object);
GVariant * (*get_child_configuration) (StoragedMDRaid *object);
guint64 (*get_chunk_size) (StoragedMDRaid *object);
guint (*get_degraded) (StoragedMDRaid *object);
const gchar * (*get_level) (StoragedMDRaid *object);
const gchar * (*get_name) (StoragedMDRaid *object);
guint (*get_num_devices) (StoragedMDRaid *object);
gboolean (*get_running) (StoragedMDRaid *object);
guint64 (*get_size) (StoragedMDRaid *object);
const gchar * (*get_sync_action) (StoragedMDRaid *object);
gdouble (*get_sync_completed) (StoragedMDRaid *object);
guint64 (*get_sync_rate) (StoragedMDRaid *object);
guint64 (*get_sync_remaining_time) (StoragedMDRaid *object);
const gchar * (*get_uuid) (StoragedMDRaid *object);
};
Virtual table for the D-Bus interface org.storaged.Storaged.MDRaid.
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 StoragedMDRaidProxy;
The StoragedMDRaidProxy structure contains only private data and should only be accessed using the provided API.
Since: 2.0.0
struct StoragedMDRaidProxyClass {
GDBusProxyClass parent_class;
};
Class structure for StoragedMDRaidProxy.
Since: 2.0.0
struct StoragedMDRaidSkeleton;
The StoragedMDRaidSkeleton structure contains only private data and should only be accessed using the provided API.
Since: 2.0.0
struct StoragedMDRaidSkeletonClass {
GDBusInterfaceSkeletonClass parent_class;
};
Class structure for StoragedMDRaidSkeleton.
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 (StoragedMDRaid *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 storaged_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 |
||
invocation |
A GDBusMethodInvocation. |
|
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 (StoragedMDRaid *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 storaged_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 |
||
invocation |
A GDBusMethodInvocation. |
|
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 (StoragedMDRaid *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 storaged_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 |
||
invocation |
A GDBusMethodInvocation. |
|
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 (StoragedMDRaid *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 storaged_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 |
||
invocation |
A GDBusMethodInvocation. |
|
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 (StoragedMDRaid *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 storaged_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 |
||
invocation |
A GDBusMethodInvocation. |
|
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 (StoragedMDRaid *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 storaged_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 |
||
invocation |
A GDBusMethodInvocation. |
|
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 (StoragedMDRaid *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 storaged_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 |
||
invocation |
A GDBusMethodInvocation. |
|
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