![]() |
![]() |
![]() |
Storaged Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
StoragedLinuxBlockObject; StoragedLinuxBlockObject * storaged_linux_block_object_new (StoragedDaemon *daemon
,StoragedLinuxDevice *device
); void storaged_linux_block_object_uevent (StoragedLinuxBlockObject *object
,const gchar *action
,StoragedLinuxDevice *device
); StoragedDaemon * storaged_linux_block_object_get_daemon (StoragedLinuxBlockObject *object
); StoragedLinuxDevice * storaged_linux_block_object_get_device (StoragedLinuxBlockObject *object
); void storaged_linux_block_object_trigger_uevent (StoragedLinuxBlockObject *object
); void storaged_linux_block_object_reread_partition_table (StoragedLinuxBlockObject *object
);
GObject +----GDBusObjectSkeleton +----StoragedObjectSkeleton +----StoragedLinuxBlockObject
"daemon" StoragedDaemon* : Read / Write / Construct Only "device" StoragedLinuxDevice* : Read / Write / Construct Only
typedef struct _StoragedLinuxBlockObject StoragedLinuxBlockObject;
The StoragedLinuxBlockObject structure contains only private data and should only be accessed using the provided API.
StoragedLinuxBlockObject * storaged_linux_block_object_new (StoragedDaemon *daemon
,StoragedLinuxDevice *device
);
Create a new block object.
|
A StoragedDaemon. |
|
The StoragedLinuxDevice for the device. |
Returns : |
A StoragedLinuxBlockObject object. Free with g_object_unref() . |
void storaged_linux_block_object_uevent (StoragedLinuxBlockObject *object
,const gchar *action
,StoragedLinuxDevice *device
);
Updates all information on interfaces on object
.
|
A StoragedLinuxBlockObject. |
|
Uevent action or NULL
|
|
A new StoragedLinuxDevice device object or NULL if the device hasn't changed. |
StoragedDaemon * storaged_linux_block_object_get_daemon
(StoragedLinuxBlockObject *object
);
Gets the daemon used by object
.
|
A StoragedLinuxBlockObject. |
Returns : |
A StoragedDaemon. Do not free, the object is owned 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.
|
A StoragedLinuxBlockObject. |
Returns : |
A StoragedLinuxDevice. Free with g_object_unref() . |
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.
|
A StoragedLinuxBlockObject. |
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.
|
A StoragedLinuxBlockObject. |
"daemon"
property"daemon" StoragedDaemon* : Read / Write / Construct Only
The StoragedDaemon the object is for.
"device"
property"device" StoragedLinuxDevice* : Read / Write / Construct Only
The StoragedLinuxDevice for the object. Connect to the "notify" signal to get notified whenever this is updated.