File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ typedef enum {
90
90
* @FP_DEVICE_ERROR_DATA_INVALID: The passed data is invalid
91
91
* @FP_DEVICE_ERROR_DATA_NOT_FOUND: Requested print was not found on device
92
92
* @FP_DEVICE_ERROR_DATA_FULL: No space on device available for operation
93
+ * @FP_DEVICE_ERROR_DATA_DUPLICATE: Enrolling template duplicates storaged templates
93
94
*
94
95
* Error codes for device operations. More specific errors from other domains
95
96
* such as #G_IO_ERROR or #G_USB_DEVICE_ERROR may also be reported.
@@ -104,6 +105,7 @@ typedef enum {
104
105
FP_DEVICE_ERROR_DATA_INVALID ,
105
106
FP_DEVICE_ERROR_DATA_NOT_FOUND ,
106
107
FP_DEVICE_ERROR_DATA_FULL ,
108
+ FP_DEVICE_ERROR_DATA_DUPLICATE ,
107
109
} FpDeviceError ;
108
110
109
111
GQuark fp_device_retry_quark (void );
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ fpi_device_error_new (FpDeviceError error)
135
135
msg = "Print was not found on the devices storage." ;
136
136
break ;
137
137
138
+ case FP_DEVICE_ERROR_DATA_DUPLICATE :
139
+ msg = "This finger has already enrolled, please try a different finger" ;
140
+ break ;
141
+
138
142
default :
139
143
g_warning ("Unsupported error, returning general error instead!" );
140
144
error = FP_DEVICE_ERROR_GENERAL ;
You can’t perform that action at this time.
0 commit comments