| Storaged Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Prerequisites | Known Implementations | Properties | ||||
StoragedObject; struct StoragedObjectIface; StoragedBlock * storaged_object_get_block (StoragedObject *object); StoragedDrive * storaged_object_get_drive (StoragedObject *object); StoragedDriveAta * storaged_object_get_drive_ata (StoragedObject *object); StoragedFilesystem * storaged_object_get_filesystem (StoragedObject *object); StoragedJob * storaged_object_get_job (StoragedObject *object); StoragedSwapspace * storaged_object_get_swapspace (StoragedObject *object); StoragedEncrypted * storaged_object_get_encrypted (StoragedObject *object); StoragedLoop * storaged_object_get_loop (StoragedObject *object); StoragedManager * storaged_object_get_manager (StoragedObject *object); StoragedPartition * storaged_object_get_partition (StoragedObject *object); StoragedPartitionTable * storaged_object_get_partition_table (StoragedObject *object); StoragedMDRaid * storaged_object_get_mdraid (StoragedObject *object); StoragedBlock * storaged_object_peek_block (StoragedObject *object); StoragedDrive * storaged_object_peek_drive (StoragedObject *object); StoragedDriveAta * storaged_object_peek_drive_ata (StoragedObject *object); StoragedFilesystem * storaged_object_peek_filesystem (StoragedObject *object); StoragedJob * storaged_object_peek_job (StoragedObject *object); StoragedSwapspace * storaged_object_peek_swapspace (StoragedObject *object); StoragedEncrypted * storaged_object_peek_encrypted (StoragedObject *object); StoragedLoop * storaged_object_peek_loop (StoragedObject *object); StoragedManager * storaged_object_peek_manager (StoragedObject *object); StoragedPartition * storaged_object_peek_partition (StoragedObject *object); StoragedPartitionTable * storaged_object_peek_partition_table (StoragedObject *object); StoragedMDRaid * storaged_object_peek_mdraid (StoragedObject *object); struct StoragedObjectProxy; struct StoragedObjectProxyClass; StoragedObjectProxy * storaged_object_proxy_new (GDBusConnection *connection,const gchar *object_path); struct StoragedObjectSkeleton; struct StoragedObjectSkeletonClass; StoragedObjectSkeleton * storaged_object_skeleton_new (const gchar *object_path); void storaged_object_skeleton_set_block (StoragedObjectSkeleton *object,StoragedBlock *interface_); void storaged_object_skeleton_set_drive (StoragedObjectSkeleton *object,StoragedDrive *interface_); void storaged_object_skeleton_set_drive_ata (StoragedObjectSkeleton *object,StoragedDriveAta *interface_); void storaged_object_skeleton_set_filesystem (StoragedObjectSkeleton *object,StoragedFilesystem *interface_); void storaged_object_skeleton_set_job (StoragedObjectSkeleton *object,StoragedJob *interface_); void storaged_object_skeleton_set_swapspace (StoragedObjectSkeleton *object,StoragedSwapspace *interface_); void storaged_object_skeleton_set_encrypted (StoragedObjectSkeleton *object,StoragedEncrypted *interface_); void storaged_object_skeleton_set_loop (StoragedObjectSkeleton *object,StoragedLoop *interface_); void storaged_object_skeleton_set_manager (StoragedObjectSkeleton *object,StoragedManager *interface_); void storaged_object_skeleton_set_partition (StoragedObjectSkeleton *object,StoragedPartition *interface_); void storaged_object_skeleton_set_partition_table (StoragedObjectSkeleton *object,StoragedPartitionTable *interface_); void storaged_object_skeleton_set_mdraid (StoragedObjectSkeleton *object,StoragedMDRaid *interface_);
GInterface +----StoragedObject
GObject
+----GDBusObjectProxy
+----StoragedObjectProxy
GObject
+----GDBusObjectSkeleton
+----StoragedObjectSkeleton
+----StoragedLinuxBlockObject
+----StoragedLinuxDriveObject
+----StoragedLinuxMDRaidObject
StoragedObjectProxy implements GDBusObject and StoragedObject.
StoragedObjectSkeleton implements GDBusObject and StoragedObject.
StoragedObject is implemented by StoragedLinuxBlockObject, StoragedLinuxDriveObject, StoragedLinuxMDRaidObject, StoragedObjectProxy and StoragedObjectSkeleton.
"block" StoragedBlock* : Read / Write "drive" StoragedDrive* : Read / Write "drive-ata" StoragedDriveAta* : Read / Write "encrypted" StoragedEncrypted* : Read / Write "filesystem" StoragedFilesystem* : Read / Write "job" StoragedJob* : Read / Write "loop" StoragedLoop* : Read / Write "manager" StoragedManager* : Read / Write "mdraid" StoragedMDRaid* : Read / Write "partition" StoragedPartition* : Read / Write "partition-table" StoragedPartitionTable* : Read / Write "swapspace" StoragedSwapspace* : Read / Write
This section contains the StoragedObject, StoragedObjectProxy, and StoragedObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.
typedef struct _StoragedObject StoragedObject;
The StoragedObject type is a specialized container of interfaces.
struct StoragedObjectIface {
GTypeInterface parent_iface;
};
Virtual table for the StoragedObject interface.
StoragedBlock * storaged_object_get_block (StoragedObject *object);
Gets the StoragedBlock instance for the D-Bus interface org.storaged.Storaged.Block on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedBlock that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedDrive * storaged_object_get_drive (StoragedObject *object);
Gets the StoragedDrive instance for the D-Bus interface org.storaged.Storaged.Drive on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedDrive that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedDriveAta * storaged_object_get_drive_ata (StoragedObject *object);
Gets the StoragedDriveAta instance for the D-Bus interface org.storaged.Storaged.Drive.Ata on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedDriveAta that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedFilesystem * storaged_object_get_filesystem (StoragedObject *object);
Gets the StoragedFilesystem instance for the D-Bus interface org.storaged.Storaged.Filesystem on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedFilesystem that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedJob * storaged_object_get_job (StoragedObject *object);
Gets the StoragedJob instance for the D-Bus interface org.storaged.Storaged.Job on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedJob that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedSwapspace * storaged_object_get_swapspace (StoragedObject *object);
Gets the StoragedSwapspace instance for the D-Bus interface org.storaged.Storaged.Swapspace on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedSwapspace that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedEncrypted * storaged_object_get_encrypted (StoragedObject *object);
Gets the StoragedEncrypted instance for the D-Bus interface org.storaged.Storaged.Encrypted on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedEncrypted that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedLoop * storaged_object_get_loop (StoragedObject *object);
Gets the StoragedLoop instance for the D-Bus interface org.storaged.Storaged.Loop on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedLoop that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedManager * storaged_object_get_manager (StoragedObject *object);
Gets the StoragedManager instance for the D-Bus interface org.storaged.Storaged.Manager on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedManager that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedPartition * storaged_object_get_partition (StoragedObject *object);
Gets the StoragedPartition instance for the D-Bus interface org.storaged.Storaged.Partition on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedPartition that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedPartitionTable * storaged_object_get_partition_table
(StoragedObject *object);
Gets the StoragedPartitionTable instance for the D-Bus interface org.storaged.Storaged.PartitionTable on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedPartitionTable that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
StoragedMDRaid * storaged_object_get_mdraid (StoragedObject *object);
Gets the StoragedMDRaid instance for the D-Bus interface org.storaged.Storaged.MDRaid on object, if any.
|
A StoragedObject. |
Returns : |
A StoragedMDRaid that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
Since 2.0.0
StoragedBlock * storaged_object_peek_block (StoragedObject *object);
Like storaged_object_get_block() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedBlock or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedDrive * storaged_object_peek_drive (StoragedObject *object);
Like storaged_object_get_drive() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedDrive or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedDriveAta * storaged_object_peek_drive_ata (StoragedObject *object);
Like storaged_object_get_drive_ata() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedDriveAta or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedFilesystem * storaged_object_peek_filesystem (StoragedObject *object);
Like storaged_object_get_filesystem() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedFilesystem or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedJob * storaged_object_peek_job (StoragedObject *object);
Like storaged_object_get_job() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedJob or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedSwapspace * storaged_object_peek_swapspace (StoragedObject *object);
Like storaged_object_get_swapspace() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedSwapspace or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedEncrypted * storaged_object_peek_encrypted (StoragedObject *object);
Like storaged_object_get_encrypted() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedEncrypted or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedLoop * storaged_object_peek_loop (StoragedObject *object);
Like storaged_object_get_loop() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedLoop or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedManager * storaged_object_peek_manager (StoragedObject *object);
Like storaged_object_get_manager() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedManager or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedPartition * storaged_object_peek_partition (StoragedObject *object);
Like storaged_object_get_partition() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedPartition or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedPartitionTable * storaged_object_peek_partition_table
(StoragedObject *object);
Like storaged_object_get_partition_table() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedPartitionTable or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
StoragedMDRaid * storaged_object_peek_mdraid (StoragedObject *object);
Like storaged_object_get_mdraid() but doesn't increase the reference count on the returned object.
object is running.
|
A StoragedObject. |
Returns : |
A StoragedMDRaid or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
Since 2.0.0
struct StoragedObjectProxy;
The StoragedObjectProxy structure contains only private data and should only be accessed using the provided API.
struct StoragedObjectProxyClass {
GDBusObjectProxyClass parent_class;
};
Class structure for StoragedObjectProxy.
StoragedObjectProxy * storaged_object_proxy_new (GDBusConnection *connection,const gchar *object_path);
Creates a new proxy object.
|
A GDBusConnection. |
|
An object path. |
Returns : |
The proxy object. [transfer full] |
struct StoragedObjectSkeleton;
The StoragedObjectSkeleton structure contains only private data and should only be accessed using the provided API.
struct StoragedObjectSkeletonClass {
GDBusObjectSkeletonClass parent_class;
};
Class structure for StoragedObjectSkeleton.
StoragedObjectSkeleton * storaged_object_skeleton_new (const gchar *object_path);
Creates a new skeleton object.
|
An object path. |
Returns : |
The skeleton object. [transfer full] |
void storaged_object_skeleton_set_block (StoragedObjectSkeleton *object,StoragedBlock *interface_);
Sets the StoragedBlock instance for the D-Bus interface org.storaged.Storaged.Block on object.
|
A StoragedObjectSkeleton. |
|
A StoragedBlock or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_drive (StoragedObjectSkeleton *object,StoragedDrive *interface_);
Sets the StoragedDrive instance for the D-Bus interface org.storaged.Storaged.Drive on object.
|
A StoragedObjectSkeleton. |
|
A StoragedDrive or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_drive_ata (StoragedObjectSkeleton *object,StoragedDriveAta *interface_);
Sets the StoragedDriveAta instance for the D-Bus interface org.storaged.Storaged.Drive.Ata on object.
|
A StoragedObjectSkeleton. |
|
A StoragedDriveAta or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_filesystem (StoragedObjectSkeleton *object,StoragedFilesystem *interface_);
Sets the StoragedFilesystem instance for the D-Bus interface org.storaged.Storaged.Filesystem on object.
|
A StoragedObjectSkeleton. |
|
A StoragedFilesystem or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_job (StoragedObjectSkeleton *object,StoragedJob *interface_);
Sets the StoragedJob instance for the D-Bus interface org.storaged.Storaged.Job on object.
|
A StoragedObjectSkeleton. |
|
A StoragedJob or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_swapspace (StoragedObjectSkeleton *object,StoragedSwapspace *interface_);
Sets the StoragedSwapspace instance for the D-Bus interface org.storaged.Storaged.Swapspace on object.
|
A StoragedObjectSkeleton. |
|
A StoragedSwapspace or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_encrypted (StoragedObjectSkeleton *object,StoragedEncrypted *interface_);
Sets the StoragedEncrypted instance for the D-Bus interface org.storaged.Storaged.Encrypted on object.
|
A StoragedObjectSkeleton. |
|
A StoragedEncrypted or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_loop (StoragedObjectSkeleton *object,StoragedLoop *interface_);
Sets the StoragedLoop instance for the D-Bus interface org.storaged.Storaged.Loop on object.
|
A StoragedObjectSkeleton. |
|
A StoragedLoop or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_manager (StoragedObjectSkeleton *object,StoragedManager *interface_);
Sets the StoragedManager instance for the D-Bus interface org.storaged.Storaged.Manager on object.
|
A StoragedObjectSkeleton. |
|
A StoragedManager or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_partition (StoragedObjectSkeleton *object,StoragedPartition *interface_);
Sets the StoragedPartition instance for the D-Bus interface org.storaged.Storaged.Partition on object.
|
A StoragedObjectSkeleton. |
|
A StoragedPartition or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_partition_table (StoragedObjectSkeleton *object,StoragedPartitionTable *interface_);
Sets the StoragedPartitionTable instance for the D-Bus interface org.storaged.Storaged.PartitionTable on object.
|
A StoragedObjectSkeleton. |
|
A StoragedPartitionTable or NULL to clear the interface. [allow-none]
|
void storaged_object_skeleton_set_mdraid (StoragedObjectSkeleton *object,StoragedMDRaid *interface_);
Sets the StoragedMDRaid instance for the D-Bus interface org.storaged.Storaged.MDRaid on object.
|
A StoragedObjectSkeleton. |
|
A StoragedMDRaid or NULL to clear the interface. [allow-none]
|
Since 2.0.0
"block" property"block" StoragedBlock* : Read / Write
The StoragedBlock instance corresponding to the D-Bus interface org.storaged.Storaged.Block, if any.
Connect to the "notify" signal to get informed of property changes.
"drive" property"drive" StoragedDrive* : Read / Write
The StoragedDrive instance corresponding to the D-Bus interface org.storaged.Storaged.Drive, if any.
Connect to the "notify" signal to get informed of property changes.
"drive-ata" property"drive-ata" StoragedDriveAta* : Read / Write
The StoragedDriveAta instance corresponding to the D-Bus interface org.storaged.Storaged.Drive.Ata, if any.
Connect to the "notify" signal to get informed of property changes.
"encrypted" property"encrypted" StoragedEncrypted* : Read / Write
The StoragedEncrypted instance corresponding to the D-Bus interface org.storaged.Storaged.Encrypted, if any.
Connect to the "notify" signal to get informed of property changes.
"filesystem" property"filesystem" StoragedFilesystem* : Read / Write
The StoragedFilesystem instance corresponding to the D-Bus interface org.storaged.Storaged.Filesystem, if any.
Connect to the "notify" signal to get informed of property changes.
"job" property"job" StoragedJob* : Read / Write
The StoragedJob instance corresponding to the D-Bus interface org.storaged.Storaged.Job, if any.
Connect to the "notify" signal to get informed of property changes.
"loop" property"loop" StoragedLoop* : Read / Write
The StoragedLoop instance corresponding to the D-Bus interface org.storaged.Storaged.Loop, if any.
Connect to the "notify" signal to get informed of property changes.
"manager" property"manager" StoragedManager* : Read / Write
The StoragedManager instance corresponding to the D-Bus interface org.storaged.Storaged.Manager, if any.
Connect to the "notify" signal to get informed of property changes.
"mdraid" property"mdraid" StoragedMDRaid* : Read / Write
The StoragedMDRaid instance corresponding to the D-Bus interface org.storaged.Storaged.MDRaid, if any.
Connect to the "notify" signal to get informed of property changes.
Since 2.0.0
"partition" property"partition" StoragedPartition* : Read / Write
The StoragedPartition instance corresponding to the D-Bus interface org.storaged.Storaged.Partition, if any.
Connect to the "notify" signal to get informed of property changes.
"partition-table" property"partition-table" StoragedPartitionTable* : Read / Write
The StoragedPartitionTable instance corresponding to the D-Bus interface org.storaged.Storaged.PartitionTable, if any.
Connect to the "notify" signal to get informed of property changes.
"swapspace" property"swapspace" StoragedSwapspace* : Read / Write
The StoragedSwapspace instance corresponding to the D-Bus interface org.storaged.Storaged.Swapspace, if any.
Connect to the "notify" signal to get informed of property changes.