mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fp-device: add FP_DEVICE_RETRY_TOO_FAST error code
This commit is contained in:
committed by
Marco Trevisan
parent
cdc22b4553
commit
1c4ed2e225
@@ -113,6 +113,8 @@ typedef enum {
|
||||
* @FP_DEVICE_RETRY_REMOVE_FINGER: The scan did not succeed due to quality or
|
||||
* pressure problems; the user should remove their finger from the scanner
|
||||
* before retrying.
|
||||
* @FP_DEVICE_RETRY_TOO_FAST: The scan did not succeed because the finger
|
||||
* swipe was too fast.
|
||||
*
|
||||
* Error codes representing scan failures resulting in the user needing to
|
||||
* retry.
|
||||
@@ -122,6 +124,7 @@ typedef enum {
|
||||
FP_DEVICE_RETRY_TOO_SHORT,
|
||||
FP_DEVICE_RETRY_CENTER_FINGER,
|
||||
FP_DEVICE_RETRY_REMOVE_FINGER,
|
||||
FP_DEVICE_RETRY_TOO_FAST,
|
||||
} FpDeviceRetry;
|
||||
|
||||
/**
|
||||
|
||||
@@ -117,6 +117,10 @@ fpi_device_retry_new (FpDeviceRetry error)
|
||||
msg = "Please try again after removing the finger first.";
|
||||
break;
|
||||
|
||||
case FP_DEVICE_RETRY_TOO_FAST:
|
||||
msg = "The swipe was too fast, please try again.";
|
||||
break;
|
||||
|
||||
default:
|
||||
g_warning ("Unsupported error, returning general error instead!");
|
||||
error = FP_DEVICE_RETRY_GENERAL;
|
||||
|
||||
Reference in New Issue
Block a user