![]() |
![]() |
![]() |
Disk Utility Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
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_INHIBITED, GDU_ERROR_INVALID_OPTION, GDU_ERROR_NOT_SUPPORTED, GDU_ERROR_ATA_SMART_WOULD_WAKEUP } GduError;
Error codes in the GDU_ERROR domain.
The operation failed. | |
The device is busy | |
The operation was cancelled | |
The daemon is being inhibited. | |
An invalid option was passed | |
Operation not supported. | |
Getting S.M.A.R.T. data for the device would require to spin it up. |
#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.
|