device: Return more specific error if we failed cleaning up the storage

This commit is contained in:
Marco Trevisan (Treviño)
2020-12-17 01:37:54 +01:00
parent 3fa0f232ef
commit e0a643f3b9
3 changed files with 20 additions and 9 deletions

View File

@ -51,6 +51,8 @@ typedef enum {
FPRINT_ERROR_INVALID_FINGERNAME, /*< nick=net.reactivated.Fprint.Error.InvalidFingername >*/
/* device does not exist */
FPRINT_ERROR_NO_SUCH_DEVICE, /*< nick=net.reactivated.Fprint.Error.NoSuchDevice >*/
/* Prints cannot be deleted from the fprintd storage */
FPRINT_ERROR_PRINTS_NOT_DELETED, /*< nick=net.reactivated.Fprint.Error.PrintsNotDeleted >*/
} FprintError;
/* Enum of possible permissions, orders and nick matter here: