Top |
GObject ╰── GDBusObjectSkeleton ╰── UDisksObjectSkeleton ╰── UDisksLinuxMDRaidObject
UDisksLinuxMDRaidObject * udisks_linux_mdraid_object_new (UDisksDaemon *daemon
,const gchar *uuid
);
Create a new MDRaid object.
void udisks_linux_mdraid_object_uevent (UDisksLinuxMDRaidObject *object
,const gchar *action
,UDisksLinuxDevice *device
,gboolean is_member
);
Updates all information on interfaces on mdraid
.
object |
||
action |
Uevent action or |
|
device |
A UDisksLinuxDevice device object or |
|
is_member |
|
gboolean
udisks_linux_mdraid_object_have_devices
(UDisksLinuxMDRaidObject *object
);
Checks if there are any devices associated with object
at
all. This includes both member devices and the raid device.
UDisksDaemon *
udisks_linux_mdraid_object_get_daemon (UDisksLinuxMDRaidObject *object
);
Gets the daemon used by object
.
UDisksLinuxDevice *
udisks_linux_mdraid_object_get_device (UDisksLinuxMDRaidObject *object
);
Gets the current UDisksLinuxDevice object for the RAID device
(e.g. /dev/md0) associated with object
, if any.
GList *
udisks_linux_mdraid_object_get_members
(UDisksLinuxMDRaidObject *object
);
Gets the current UDisksLinuxDevice objects for the RAID members associated with object
.
A list of UDisksLinuxDevice objects. Free each element with
g_object_unref()
, then free the list with g_list_free()
.
const gchar *
udisks_linux_mdraid_object_get_uuid (UDisksLinuxMDRaidObject *object
);
Gets the UUID for object
.
typedef struct _UDisksLinuxMDRaidObject UDisksLinuxMDRaidObject;
The UDisksLinuxMDRaidObject structure contains only private data and should only be accessed using the provided API.
“daemon”
property“daemon” UDisksDaemon *
The UDisksDaemon the object is for.
Flags: Read / Write / Construct Only