Top |
UDisksObject | |
struct | UDisksObjectIface |
struct | UDisksObjectProxy |
struct | UDisksObjectProxyClass |
struct | UDisksObjectSkeleton |
struct | UDisksObjectSkeletonClass |
GInterface ╰── UDisksObject GObject ├── GDBusObjectProxy │ ╰── UDisksObjectProxy ╰── GDBusObjectSkeleton ╰── UDisksObjectSkeleton ├── UDisksLinuxBlockObject ├── UDisksLinuxDriveObject ╰── UDisksLinuxMDRaidObject
UDisksObjectProxy implements GDBusObject and UDisksObject.
UDisksObjectSkeleton implements GDBusObject and UDisksObject.
UDisksObject is implemented by UDisksLinuxBlockObject, UDisksLinuxDriveObject, UDisksLinuxMDRaidObject, UDisksObjectProxy and UDisksObjectSkeleton.
This section contains the UDisksObject, UDisksObjectProxy, and UDisksObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.
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 UDisksBlock that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksDrive that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksDriveAta that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksFilesystem that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksJob that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksSwapspace that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksEncrypted that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksLoop that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksManager that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksPartition that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
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 UDisksPartitionTable that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
UDisksMDRaid *
udisks_object_get_mdraid (UDisksObject *object
);
Gets the UDisksMDRaid instance for the D-Bus interface org.freedesktop.UDisks2.MDRaid on object
, if any.
A UDisksMDRaid that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
Since: 2.0.0
UDisksBlock *
udisks_object_peek_block (UDisksObject *object
);
Like udisks_object_get_block()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksBlock or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksDrive *
udisks_object_peek_drive (UDisksObject *object
);
Like udisks_object_get_drive()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksDrive or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
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.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksDriveAta or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksFilesystem *
udisks_object_peek_filesystem (UDisksObject *object
);
Like udisks_object_get_filesystem()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksFilesystem or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksJob *
udisks_object_peek_job (UDisksObject *object
);
Like udisks_object_get_job()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
UDisksSwapspace *
udisks_object_peek_swapspace (UDisksObject *object
);
Like udisks_object_get_swapspace()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksSwapspace or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksEncrypted *
udisks_object_peek_encrypted (UDisksObject *object
);
Like udisks_object_get_encrypted()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksEncrypted or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksLoop *
udisks_object_peek_loop (UDisksObject *object
);
Like udisks_object_get_loop()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksLoop or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksManager *
udisks_object_peek_manager (UDisksObject *object
);
Like udisks_object_get_manager()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksManager or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksPartition *
udisks_object_peek_partition (UDisksObject *object
);
Like udisks_object_get_partition()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksPartition or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
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.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksPartitionTable or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
UDisksMDRaid *
udisks_object_peek_mdraid (UDisksObject *object
);
Like udisks_object_get_mdraid()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A UDisksMDRaid or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
Since: 2.0.0
UDisksObjectProxy * udisks_object_proxy_new (GDBusConnection *connection
,const gchar *object_path
);
Creates a new proxy object.
UDisksObjectSkeleton *
udisks_object_skeleton_new (const gchar *object_path
);
Creates a new skeleton object.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
void udisks_object_skeleton_set_mdraid (UDisksObjectSkeleton *object
,UDisksMDRaid *interface_
);
Sets the UDisksMDRaid instance for the D-Bus interface org.freedesktop.UDisks2.MDRaid on object
.
Since: 2.0.0
typedef struct _UDisksObject UDisksObject;
The UDisksObject type is a specialized container of interfaces.
struct UDisksObjectIface { GTypeInterface parent_iface; };
Virtual table for the UDisksObject interface.
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.
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.
“block”
property“block” UDisksBlock *
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.
Owner: UDisksObject
Flags: Read / Write
“block-bcache”
property“block-bcache” UDisksBlockBcache *
The UDisksBlockBcache instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Block.Bcache, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
“block-lvm2”
property“block-lvm2” UDisksBlockLVM2 *
The UDisksBlockLVM2 instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Block.LVM2, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.0.0
“block-vdo”
property“block-vdo” UDisksBlockVDO *
The UDisksBlockVDO instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Block.VDO, if any.
Connect to the “notify” signal to get informed of property changes.
UDisksObject:block-vdo
is deprecated and should not be used in newly-written code.
The D-Bus interface has been deprecated.
Owner: UDisksObject
Flags: Read / Write
Since: 2.8.0
“block-zram”
property“block-zram” UDisksBlockZRAM *
The UDisksBlockZRAM instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Block.ZRAM, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.3.0
“drive”
property“drive” UDisksDrive *
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.
Owner: UDisksObject
Flags: Read / Write
“drive-ata”
property“drive-ata” UDisksDriveAta *
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.
Owner: UDisksObject
Flags: Read / Write
“drive-lsm”
property“drive-lsm” UDisksDriveLSM *
The UDisksDriveLSM instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Drive.LSM, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.3.0
“drive-lsm-local”
property“drive-lsm-local” UDisksDriveLsmLocal *
The UDisksDriveLsmLocal instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Drive.LsmLocal, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
“encrypted”
property“encrypted” UDisksEncrypted *
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.
Owner: UDisksObject
Flags: Read / Write
“filesystem”
property“filesystem” UDisksFilesystem *
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.
Owner: UDisksObject
Flags: Read / Write
“filesystem-btrfs”
property“filesystem-btrfs” UDisksFilesystemBTRFS *
The UDisksFilesystemBTRFS instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Filesystem.BTRFS, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.1.3
“iscsi-session”
property“iscsi-session” UDisksISCSISession *
The UDisksISCSISession instance corresponding to the D-Bus interface org.freedesktop.UDisks2.ISCSI.Session, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
“job”
property“job” UDisksJob *
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.
Owner: UDisksObject
Flags: Read / Write
“logical-volume”
property“logical-volume” UDisksLogicalVolume *
The UDisksLogicalVolume instance corresponding to the D-Bus interface org.freedesktop.UDisks2.LogicalVolume, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.0.0
“loop”
property“loop” UDisksLoop *
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.
Owner: UDisksObject
Flags: Read / Write
“manager”
property“manager” UDisksManager *
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.
Owner: UDisksObject
Flags: Read / Write
“manager-bcache”
property“manager-bcache” UDisksManagerBcache *
The UDisksManagerBcache instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Manager.Bcache, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
“manager-btrfs”
property“manager-btrfs” UDisksManagerBTRFS *
The UDisksManagerBTRFS instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Manager.BTRFS, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.1.3
“manager-iscsi-initiator”
property“manager-iscsi-initiator” UDisksManagerISCSIInitiator *
The UDisksManagerISCSIInitiator instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Manager.ISCSI.Initiator, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.0.1
“manager-lvm2”
property“manager-lvm2” UDisksManagerLVM2 *
The UDisksManagerLVM2 instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Manager.LVM2, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.0.0
“manager-vdo”
property“manager-vdo” UDisksManagerVDO *
The UDisksManagerVDO instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Manager.VDO, if any.
Connect to the “notify” signal to get informed of property changes.
UDisksObject:manager-vdo
is deprecated and should not be used in newly-written code.
The D-Bus interface has been deprecated.
Owner: UDisksObject
Flags: Read / Write
Since: 2.8.0
“manager-zram”
property“manager-zram” UDisksManagerZRAM *
The UDisksManagerZRAM instance corresponding to the D-Bus interface org.freedesktop.UDisks2.Manager.ZRAM, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.3.0
“mdraid”
property“mdraid” UDisksMDRaid *
The UDisksMDRaid instance corresponding to the D-Bus interface org.freedesktop.UDisks2.MDRaid, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.0.0
“partition”
property“partition” UDisksPartition *
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.
Owner: UDisksObject
Flags: Read / Write
“partition-table”
property“partition-table” UDisksPartitionTable *
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.
Owner: UDisksObject
Flags: Read / Write
“physical-volume”
property“physical-volume” UDisksPhysicalVolume *
The UDisksPhysicalVolume instance corresponding to the D-Bus interface org.freedesktop.UDisks2.PhysicalVolume, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.0.0
“swapspace”
property“swapspace” UDisksSwapspace *
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.
Owner: UDisksObject
Flags: Read / Write
“vdo-volume”
property“vdo-volume” UDisksVDOVolume *
The UDisksVDOVolume instance corresponding to the D-Bus interface org.freedesktop.UDisks2.VDOVolume, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.9.0
“volume-group”
property“volume-group” UDisksVolumeGroup *
The UDisksVolumeGroup instance corresponding to the D-Bus interface org.freedesktop.UDisks2.VolumeGroup, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: UDisksObject
Flags: Read / Write
Since: 2.0.0