Top | ![]() |
![]() |
![]() |
![]() |
StoragedDaemon * | daemon | Read / Write / Construct Only |
StoragedLinuxDevice * | device | Read / Write / Construct Only |
GObject ╰── GDBusObjectSkeleton ╰── StoragedObjectSkeleton ╰── StoragedLinuxBlockObject
StoragedLinuxBlockObject * storaged_linux_block_object_new (StoragedDaemon *daemon
,StoragedLinuxDevice *device
);
Create a new block object.
void storaged_linux_block_object_uevent (StoragedLinuxBlockObject *object
,const gchar *action
,StoragedLinuxDevice *device
);
Updates all information on interfaces on object
.
object |
||
action |
Uevent action or |
|
device |
A new StoragedLinuxDevice device object or |
StoragedDaemon *
storaged_linux_block_object_get_daemon
(StoragedLinuxBlockObject *object
);
Gets the daemon used by object
.
StoragedLinuxDevice *
storaged_linux_block_object_get_device
(StoragedLinuxBlockObject *object
);
Gets the current StoragedLinuxDevice for object
. Connect to
“notify” to track changes to the “device”
property.
void
storaged_linux_block_object_trigger_uevent
(StoragedLinuxBlockObject *object
);
Triggers a 'change' uevent in the kernel.
The triggered event will bubble up from the kernel through the udev stack and will eventually be received by the storaged daemon process itself. This method does not wait for the event to be received.
void
storaged_linux_block_object_reread_partition_table
(StoragedLinuxBlockObject *object
);
Requests the kernel to re-read the partition table for object
.
The events from any change this may cause will bubble up from the kernel through the udev stack and will eventually be received by the storaged daemon process itself. This method does not wait for the event to be received.
typedef struct _StoragedLinuxBlockObject StoragedLinuxBlockObject;
The StoragedLinuxBlockObject structure contains only private data and should only be accessed using the provided API.
“daemon”
property“daemon” StoragedDaemon *
The StoragedDaemon the object is for.
Flags: Read / Write / Construct Only
“device”
property“device” StoragedLinuxDevice *
The StoragedLinuxDevice for the object. Connect to the “notify” signal to get notified whenever this is updated.
Flags: Read / Write / Construct Only