device: Throw an error if we failed to delete a device storage print

Although this error is not fatal as the local print reference has been
properly removed.
This commit is contained in:
Marco Trevisan (Treviño)
2020-12-17 01:58:30 +01:00
parent 0f29cfc0c7
commit dbf01399ad
3 changed files with 19 additions and 0 deletions

View File

@ -53,6 +53,8 @@ typedef enum {
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 >*/
/* Prints cannot be deleted from the device storage */
FPRINT_ERROR_PRINTS_NOT_DELETED_FROM_DEVICE, /*< nick=net.reactivated.Fprint.Error.PrintsNotDeletedFromDevice >*/
} FprintError;
/* Enum of possible permissions, orders and nick matter here: