| UDisks Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Prerequisites | Known Implementations | Properties | ||||
UDisksObject; struct UDisksObjectIface; UDisksBlock * udisks_object_get_block (UDisksObject *object); UDisksDrive * udisks_object_get_drive (UDisksObject *object); UDisksDriveAta * udisks_object_get_drive_ata (UDisksObject *object); UDisksFilesystem * udisks_object_get_filesystem (UDisksObject *object); UDisksJob * udisks_object_get_job (UDisksObject *object); UDisksSwapspace * udisks_object_get_swapspace (UDisksObject *object); UDisksEncrypted * udisks_object_get_encrypted (UDisksObject *object); UDisksLoop * udisks_object_get_loop (UDisksObject *object); UDisksManager * udisks_object_get_manager (UDisksObject *object); UDisksPartition * udisks_object_get_partition (UDisksObject *object); UDisksPartitionTable * udisks_object_get_partition_table (UDisksObject *object); UDisksBlock * udisks_object_peek_block (UDisksObject *object); UDisksDrive * udisks_object_peek_drive (UDisksObject *object); UDisksDriveAta * udisks_object_peek_drive_ata (UDisksObject *object); UDisksFilesystem * udisks_object_peek_filesystem (UDisksObject *object); UDisksJob * udisks_object_peek_job (UDisksObject *object); UDisksSwapspace * udisks_object_peek_swapspace (UDisksObject *object); UDisksEncrypted * udisks_object_peek_encrypted (UDisksObject *object); UDisksLoop * udisks_object_peek_loop (UDisksObject *object); UDisksManager * udisks_object_peek_manager (UDisksObject *object); UDisksPartition * udisks_object_peek_partition (UDisksObject *object); UDisksPartitionTable * udisks_object_peek_partition_table (UDisksObject *object); struct UDisksObjectProxy; struct UDisksObjectProxyClass; UDisksObjectProxy * udisks_object_proxy_new (GDBusConnection *connection,const gchar *object_path); struct UDisksObjectSkeleton; struct UDisksObjectSkeletonClass; UDisksObjectSkeleton * udisks_object_skeleton_new (const gchar *object_path); void udisks_object_skeleton_set_block (UDisksObjectSkeleton *object,UDisksBlock *interface_); void udisks_object_skeleton_set_drive (UDisksObjectSkeleton *object,UDisksDrive *interface_); void udisks_object_skeleton_set_drive_ata (UDisksObjectSkeleton *object,UDisksDriveAta *interface_); void udisks_object_skeleton_set_filesystem (UDisksObjectSkeleton *object,UDisksFilesystem *interface_); void udisks_object_skeleton_set_job (UDisksObjectSkeleton *object,UDisksJob *interface_); void udisks_object_skeleton_set_swapspace (UDisksObjectSkeleton *object,UDisksSwapspace *interface_); void udisks_object_skeleton_set_encrypted (UDisksObjectSkeleton *object,UDisksEncrypted *interface_); void udisks_object_skeleton_set_loop (UDisksObjectSkeleton *object,UDisksLoop *interface_); void udisks_object_skeleton_set_manager (UDisksObjectSkeleton *object,UDisksManager *interface_); void udisks_object_skeleton_set_partition (UDisksObjectSkeleton *object,UDisksPartition *interface_); void udisks_object_skeleton_set_partition_table (UDisksObjectSkeleton *object,UDisksPartitionTable *interface_);
GInterface +----UDisksObject
GObject +----GDBusObjectProxy +----UDisksObjectProxy
GObject +----GDBusObjectSkeleton +----UDisksObjectSkeleton +----UDisksLinuxBlockObject +----UDisksLinuxDriveObject
UDisksObjectProxy implements GDBusObject and UDisksObject.
UDisksObjectSkeleton implements GDBusObject and UDisksObject.
UDisksObject is implemented by UDisksLinuxBlockObject, UDisksLinuxDriveObject, UDisksObjectProxy and UDisksObjectSkeleton.
"block" UDisksBlock* : Read / Write "drive" UDisksDrive* : Read / Write "drive-ata" UDisksDriveAta* : Read / Write "encrypted" UDisksEncrypted* : Read / Write "filesystem" UDisksFilesystem* : Read / Write "job" UDisksJob* : Read / Write "loop" UDisksLoop* : Read / Write "manager" UDisksManager* : Read / Write "partition" UDisksPartition* : Read / Write "partition-table" UDisksPartitionTable* : Read / Write "swapspace" UDisksSwapspace* : Read / Write
This section contains the UDisksObject, UDisksObjectProxy, and UDisksObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.
typedef struct _UDisksObject UDisksObject;
The UDisksObject type is a specialized container of interfaces.
struct UDisksObjectIface {
GTypeInterface parent_iface;
};
Virtual table for the UDisksObject interface.
GTypeInterface |
The parent interface. |
UDisksBlock * udisks_object_get_block (UDisksObject *object);
Gets the UDisksBlock instance for the D-Bus interface org.freedesktop.UDisks2.Block on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksBlock that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksDrive * udisks_object_get_drive (UDisksObject *object);
Gets the UDisksDrive instance for the D-Bus interface org.freedesktop.UDisks2.Drive on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksDrive that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksDriveAta * udisks_object_get_drive_ata (UDisksObject *object);
Gets the UDisksDriveAta instance for the D-Bus interface org.freedesktop.UDisks2.Drive.Ata on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksDriveAta that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksFilesystem * udisks_object_get_filesystem (UDisksObject *object);
Gets the UDisksFilesystem instance for the D-Bus interface org.freedesktop.UDisks2.Filesystem on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksFilesystem that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksJob * udisks_object_get_job (UDisksObject *object);
Gets the UDisksJob instance for the D-Bus interface org.freedesktop.UDisks2.Job on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksJob that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksSwapspace * udisks_object_get_swapspace (UDisksObject *object);
Gets the UDisksSwapspace instance for the D-Bus interface org.freedesktop.UDisks2.Swapspace on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksSwapspace that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksEncrypted * udisks_object_get_encrypted (UDisksObject *object);
Gets the UDisksEncrypted instance for the D-Bus interface org.freedesktop.UDisks2.Encrypted on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksEncrypted that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksLoop * udisks_object_get_loop (UDisksObject *object);
Gets the UDisksLoop instance for the D-Bus interface org.freedesktop.UDisks2.Loop on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksLoop that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksManager * udisks_object_get_manager (UDisksObject *object);
Gets the UDisksManager instance for the D-Bus interface org.freedesktop.UDisks2.Manager on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksManager that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksPartition * udisks_object_get_partition (UDisksObject *object);
Gets the UDisksPartition instance for the D-Bus interface org.freedesktop.UDisks2.Partition on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksPartition that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksPartitionTable * udisks_object_get_partition_table
(UDisksObject *object);
Gets the UDisksPartitionTable instance for the D-Bus interface org.freedesktop.UDisks2.PartitionTable on object, if any.
|
A UDisksObject. |
Returns : |
A UDisksPartitionTable that must be freed with g_object_unref() or NULL if object does not implement the interface. [transfer full]
|
UDisksBlock * udisks_object_peek_block (UDisksObject *object);
Like udisks_object_get_block() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksBlock or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksDrive * udisks_object_peek_drive (UDisksObject *object);
Like udisks_object_get_drive() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksDrive or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksDriveAta * udisks_object_peek_drive_ata (UDisksObject *object);
Like udisks_object_get_drive_ata() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksDriveAta or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksFilesystem * udisks_object_peek_filesystem (UDisksObject *object);
Like udisks_object_get_filesystem() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksFilesystem or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksJob * udisks_object_peek_job (UDisksObject *object);
Like udisks_object_get_job() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksJob or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksSwapspace * udisks_object_peek_swapspace (UDisksObject *object);
Like udisks_object_get_swapspace() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksSwapspace or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksEncrypted * udisks_object_peek_encrypted (UDisksObject *object);
Like udisks_object_get_encrypted() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksEncrypted or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksLoop * udisks_object_peek_loop (UDisksObject *object);
Like udisks_object_get_loop() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksLoop or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksManager * udisks_object_peek_manager (UDisksObject *object);
Like udisks_object_get_manager() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksManager or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksPartition * udisks_object_peek_partition (UDisksObject *object);
Like udisks_object_get_partition() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksPartition or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
UDisksPartitionTable * udisks_object_peek_partition_table
(UDisksObject *object);
Like udisks_object_get_partition_table() but doesn't increase the reference count on the returned object.
object is running.
|
A UDisksObject. |
Returns : |
A UDisksPartitionTable or NULL if object does not implement the interface. Do not free the returned object, it is owned by object. [transfer none]
|
struct UDisksObjectProxy;
The UDisksObjectProxy structure contains only private data and should only be accessed using the provided API.
struct UDisksObjectProxyClass {
GDBusObjectProxyClass parent_class;
};
Class structure for UDisksObjectProxy.
GDBusObjectProxyClass |
The parent class. |
UDisksObjectProxy * udisks_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 UDisksObjectSkeleton;
The UDisksObjectSkeleton structure contains only private data and should only be accessed using the provided API.
struct UDisksObjectSkeletonClass {
GDBusObjectSkeletonClass parent_class;
};
Class structure for UDisksObjectSkeleton.
GDBusObjectSkeletonClass |
The parent class. |
UDisksObjectSkeleton * udisks_object_skeleton_new (const gchar *object_path);
Creates a new skeleton object.
|
An object path. |
Returns : |
The skeleton object. [transfer full] |
void udisks_object_skeleton_set_block (UDisksObjectSkeleton *object,UDisksBlock *interface_);
Sets the UDisksBlock instance for the D-Bus interface org.freedesktop.UDisks2.Block on object.
|
A UDisksObjectSkeleton. |
|
A UDisksBlock or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_drive (UDisksObjectSkeleton *object,UDisksDrive *interface_);
Sets the UDisksDrive instance for the D-Bus interface org.freedesktop.UDisks2.Drive on object.
|
A UDisksObjectSkeleton. |
|
A UDisksDrive or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_drive_ata (UDisksObjectSkeleton *object,UDisksDriveAta *interface_);
Sets the UDisksDriveAta instance for the D-Bus interface org.freedesktop.UDisks2.Drive.Ata on object.
|
A UDisksObjectSkeleton. |
|
A UDisksDriveAta or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_filesystem (UDisksObjectSkeleton *object,UDisksFilesystem *interface_);
Sets the UDisksFilesystem instance for the D-Bus interface org.freedesktop.UDisks2.Filesystem on object.
|
A UDisksObjectSkeleton. |
|
A UDisksFilesystem or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_job (UDisksObjectSkeleton *object,UDisksJob *interface_);
Sets the UDisksJob instance for the D-Bus interface org.freedesktop.UDisks2.Job on object.
|
A UDisksObjectSkeleton. |
|
A UDisksJob or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_swapspace (UDisksObjectSkeleton *object,UDisksSwapspace *interface_);
Sets the UDisksSwapspace instance for the D-Bus interface org.freedesktop.UDisks2.Swapspace on object.
|
A UDisksObjectSkeleton. |
|
A UDisksSwapspace or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_encrypted (UDisksObjectSkeleton *object,UDisksEncrypted *interface_);
Sets the UDisksEncrypted instance for the D-Bus interface org.freedesktop.UDisks2.Encrypted on object.
|
A UDisksObjectSkeleton. |
|
A UDisksEncrypted or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_loop (UDisksObjectSkeleton *object,UDisksLoop *interface_);
Sets the UDisksLoop instance for the D-Bus interface org.freedesktop.UDisks2.Loop on object.
|
A UDisksObjectSkeleton. |
|
A UDisksLoop or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_manager (UDisksObjectSkeleton *object,UDisksManager *interface_);
Sets the UDisksManager instance for the D-Bus interface org.freedesktop.UDisks2.Manager on object.
|
A UDisksObjectSkeleton. |
|
A UDisksManager or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_partition (UDisksObjectSkeleton *object,UDisksPartition *interface_);
Sets the UDisksPartition instance for the D-Bus interface org.freedesktop.UDisks2.Partition on object.
|
A UDisksObjectSkeleton. |
|
A UDisksPartition or NULL to clear the interface. [allow-none]
|
void udisks_object_skeleton_set_partition_table (UDisksObjectSkeleton *object,UDisksPartitionTable *interface_);
Sets the UDisksPartitionTable instance for the D-Bus interface org.freedesktop.UDisks2.PartitionTable on object.
|
A UDisksObjectSkeleton. |
|
A UDisksPartitionTable or NULL to clear the interface. [allow-none]
|
"block" property"block" UDisksBlock* : Read / Write
The UDisksBlock instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Block, if any.
Connect to the "notify" signal to get informed of property changes.
"drive" property"drive" UDisksDrive* : Read / Write
The UDisksDrive instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Drive, if any.
Connect to the "notify" signal to get informed of property changes.
"drive-ata" property"drive-ata" UDisksDriveAta* : Read / Write
The UDisksDriveAta instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Drive.Ata, if any.
Connect to the "notify" signal to get informed of property changes.
"encrypted" property"encrypted" UDisksEncrypted* : Read / Write
The UDisksEncrypted instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Encrypted, if any.
Connect to the "notify" signal to get informed of property changes.
"filesystem" property"filesystem" UDisksFilesystem* : Read / Write
The UDisksFilesystem instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Filesystem, if any.
Connect to the "notify" signal to get informed of property changes.
"job" property"job" UDisksJob* : Read / Write
The UDisksJob instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Job, if any.
Connect to the "notify" signal to get informed of property changes.
"loop" property"loop" UDisksLoop* : Read / Write
The UDisksLoop instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Loop, if any.
Connect to the "notify" signal to get informed of property changes.
"manager" property"manager" UDisksManager* : Read / Write
The UDisksManager instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Manager, if any.
Connect to the "notify" signal to get informed of property changes.
"partition" property"partition" UDisksPartition* : Read / Write
The UDisksPartition instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Partition, if any.
Connect to the "notify" signal to get informed of property changes.
"partition-table" property"partition-table" UDisksPartitionTable* : Read / Write
The UDisksPartitionTable instance corresponding to the D-Bus interface org.freedesktop.UDisks2.PartitionTable, if any.
Connect to the "notify" signal to get informed of property changes.
"swapspace" property"swapspace" UDisksSwapspace* : Read / Write
The UDisksSwapspace instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Swapspace, if any.
Connect to the "notify" signal to get informed of property changes.