![]() |
![]() |
![]() |
Disk Utility Library Reference Manual | ![]() |
---|---|---|---|---|
enum GduError; #define GDU_ERROR GQuark gdu_error_quark (void); gboolean gdu_error_check_polkit_not_authorized (GError *error, PolKitAction **pk_action, PolKitResult *pk_result);
typedef enum { GDU_ERROR_FAILED, GDU_ERROR_BUSY, GDU_ERROR_CANCELLED, GDU_ERROR_INVALID_OPTION, GDU_ERROR_ALREADY_MOUNTED, GDU_ERROR_NOT_MOUNTED, GDU_ERROR_NOT_CANCELLABLE, GDU_ERROR_NOT_PARTITION, GDU_ERROR_NOT_PARTITION_TABLE, GDU_ERROR_NOT_FILESYSTEM, GDU_ERROR_NOT_LUKS, GDU_ERROR_NOT_LOCKED, GDU_ERROR_NOT_UNLOCKED, GDU_ERROR_NOT_LINUX_MD, GDU_ERROR_NOT_LINUX_MD_COMPONENT, GDU_ERROR_NOT_DRIVE, GDU_ERROR_NOT_SMART_CAPABLE, GDU_ERROR_NOT_SUPPORTED, GDU_ERROR_NOT_FOUND, } GduError;
Error codes in the GDU_ERROR domain.
The operation failed. | |
The device is busy | |
The operation was cancelled | |
An invalid option was passed | |
Device is already mounted. | |
Device is not mounted. | |
Operation is not cancellable. | |
Device is not a partition. | |
Device is not a partition table. | |
Device is not a file system. | |
Device is not a LUKS encrypted device. | |
Device is not locked. | |
Device is not unlocked. | |
Device is not a Linux md Software RAID device. | |
Device is not a Linux md Software RAID component. | |
Device is not a drive. | |
Device is not S.M.A.R.T. capable. | |
Operation not supported. | |
Given device does not exist. |
#define GDU_ERROR gdu_error_quark ()
Error domain used for errors reported from DeviceKit-disks daemon via D-Bus. Note that not all remote errors are mapped to this domain. Errors in this domain will come from the GduError enumeration. See GError for more information on error domains.
gboolean gdu_error_check_polkit_not_authorized (GError *error, PolKitAction **pk_action, PolKitResult *pk_result);
Checks if an error from a remote method call is of
type org.freedesktop.PolicyKit.Error.NotAuthorized
and if so, extracts the PolicyKit action and result.
|
A GError. |
|
Return location for a PolKitAction object. |
|
Return location for PolKitResult value. |
Returns : |
TRUE only if the error is a PolicyKit exception and
pk_action (caller must free this object with polkit_action_unref() )
and pk_result are set.
|