| Disk Utility Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Signals | ||||
GduPoolPrivate;
GduPool;
GduPool * gdu_pool_new (void);
char * gdu_pool_get_daemon_version (GduPool *pool);
gboolean gdu_pool_is_daemon_inhibited (GduPool *pool);
gboolean gdu_pool_supports_luks_devices (GduPool *pool);
GList * gdu_pool_get_known_filesystems (GduPool *pool);
GduKnownFilesystem * gdu_pool_get_known_filesystem_by_id
(GduPool *pool,
const char *id);
GduDevice * gdu_pool_get_by_object_path (GduPool *pool,
const char *object_path);
GduDevice * gdu_pool_get_by_device_file (GduPool *pool,
const char *device_file);
GduPresentable * gdu_pool_get_volume_by_device (GduPool *pool,
GduDevice *device);
GduPresentable * gdu_pool_get_drive_by_device (GduPool *pool,
GduDevice *device);
GduPresentable * gdu_pool_get_presentable_by_id (GduPool *pool,
const gchar *id);
GList * gdu_pool_get_devices (GduPool *pool);
GList * gdu_pool_get_presentables (GduPool *pool);
GList * gdu_pool_get_enclosed_presentables (GduPool *pool,
GduPresentable *presentable);
void gdu_pool_op_linux_md_start (GduPool *pool,
GPtrArray *component_objpaths,
GduPoolLinuxMdStartCompletedFunc callback,
gpointer user_data);
"device-added" : Run Last "device-changed" : Run Last "device-job-changed" : Run Last "device-removed" : Run Last "presentable-added" : Run Last "presentable-changed" : Run Last "presentable-job-changed" : Run Last "presentable-removed" : Run Last
GduPool * gdu_pool_new (void);
Create a new GduPool object.
Returns : |
A GduPool object. Caller must free this object using g_object_unref().
|
char * gdu_pool_get_daemon_version (GduPool *pool);
Get the version of the DeviceKit-daemon on the system.
gboolean gdu_pool_is_daemon_inhibited (GduPool *pool);
Checks if the daemon is currently inhibited.
gboolean gdu_pool_supports_luks_devices (GduPool *pool);
Determine if the DeviceKit-disks daemon supports LUKS encrypted devices.
GList * gdu_pool_get_known_filesystems (GduPool *pool);
Get a list of file systems known to the DeviceKit-disks daemon.
|
A GduPool. |
Returns : |
A GList of GduKnownFilesystem objects. Caller must free
this (unref all objects, then use g_list_free()).
|
GduKnownFilesystem * gdu_pool_get_known_filesystem_by_id (GduPool *pool, const char *id);
Looks up a known file system by id.
|
A GduPool. |
|
Identifier for the file system, e.g. ext3 or vfat.
|
Returns : |
A GduKnownFilesystem object or NULL if file system
corresponding to id exists. Caller must free this object using
g_object_unref().
|
GduDevice * gdu_pool_get_by_object_path (GduPool *pool, const char *object_path);
Looks up GduDevice object for object_path.
|
the device pool |
|
the D-Bus object path |
Returns : |
A GduDevice object for object_path, otherwise
NULL. Caller must unref this object using g_object_unref().
|
GduDevice * gdu_pool_get_by_device_file (GduPool *pool, const char *device_file);
Looks up GduDevice object for device_file.
|
the device pool |
|
the UNIX block special device file, e.g. /dev/sda1. |
Returns : |
A GduDevice object for object_path, otherwise
NULL. Caller must unref this object using g_object_unref().
|
GduPresentable * gdu_pool_get_volume_by_device (GduPool *pool, GduDevice *device);
Given device, find the GduVolume object for it.
|
A GduPool. |
|
A GduDevice. |
Returns : |
A GduVolume object or NULL if no device isn't a
volume. Caller must free this object with g_object_unref().
|
GduPresentable * gdu_pool_get_drive_by_device (GduPool *pool, GduDevice *device);
Given device, find the GduDrive object for it.
|
A GduPool. |
|
A GduDevice. |
Returns : |
A GduDrive object or NULL if no device isn't a
drive. Caller must free this object with g_object_unref().
|
GduPresentable * gdu_pool_get_presentable_by_id (GduPool *pool, const gchar *id);
|
|
|
|
Returns : |
GList * gdu_pool_get_devices (GduPool *pool);
Get a list of all devices. The returned list is topologically sorted, e.g. for any device A with a dependency on a device B, A is guaranteed to appear after B.
|
A GduPool. |
Returns : |
A GList of GduDevice objects. Caller must free this
(unref all objects, then use g_list_free()).
|
GList * gdu_pool_get_presentables (GduPool *pool);
Get a list of all presentables.
|
A GduPool |
Returns : |
A GList of objects implementing the GduPresentable
interface. Caller must free this (unref all objects, then use
g_list_free()).
|
GList * gdu_pool_get_enclosed_presentables (GduPool *pool, GduPresentable *presentable);
|
|
|
|
Returns : |
void gdu_pool_op_linux_md_start (GduPool *pool, GPtrArray *component_objpaths, GduPoolLinuxMdStartCompletedFunc callback, gpointer user_data);
Starts a Linux md Software Array.
"device-added" signalvoid user_function (GduPool *pool, GduDevice *device, gpointer user_data) : Run Last
Emitted when device is added to pool.
"device-changed" signalvoid user_function (GduPool *pool, GduDevice *device, gpointer user_data) : Run Last
Emitted when device is changed.
"device-job-changed" signalvoid user_function (GduPool *pool, GduDevice *device, gpointer user_data) : Run Last
Emitted when job status on device changes.
"device-removed" signalvoid user_function (GduPool *pool, GduDevice *device, gpointer user_data) : Run Last
Emitted when device is removed from pool. Recipients
should release references to device.
"presentable-added" signalvoid user_function (GduPool *pool, GduPresentable *presentable, gpointer user_data) : Run Last
Emitted when presentable is added to pool.
|
The GduPool emitting the signal. |
|
The GduPresentable that was added. |
|
user data set when the signal handler was connected. |
"presentable-changed" signalvoid user_function (GduPool *pool, GduPresentable *presentable, gpointer user_data) : Run Last
Emitted when presentable changes.
|
The GduPool emitting the signal. |
|
A GduPresentable. |
|
user data set when the signal handler was connected. |
"presentable-job-changed" signalvoid user_function (GduPool *pool, GduPresentable *presentable, gpointer user_data) : Run Last
Emitted when job status on presentable changes.
|
The GduPool emitting the signal. |
|
A GduPresentable. |
|
user data set when the signal handler was connected. |
"presentable-removed" signalvoid user_function (GduPool *pool, GduPresentable *presentable, gpointer user_data) : Run Last
Emitted when presentable is removed from pool. Recipients
should release references to presentable.
|
The GduPool emitting the signal. |
|
The GduPresentable that was removed. |
|
user data set when the signal handler was connected. |