Top |
void | fpi_imgdev_abort_scan () |
void | fpi_imgdev_activate_complete () |
void | fpi_imgdev_close_complete () |
void | fpi_imgdev_deactivate_complete () |
enum fp_imgdev_action | fpi_imgdev_get_action () |
int | fpi_imgdev_get_action_result () |
enum fp_imgdev_enroll_state | fpi_imgdev_get_action_state () |
void | fpi_imgdev_image_captured () |
void | fpi_imgdev_open_complete () |
void | fpi_imgdev_report_finger_status () |
void | fpi_imgdev_session_error () |
void | fpi_imgdev_set_action_result () |
As drivers work through different operations, they need to report back to the core as to their internal state, so errors and successes can be reported back to front-ends.
void fpi_imgdev_abort_scan (struct fp_img_dev *imgdev
,int result
);
Aborts a scan after an error, and set the action result. See
fpi_imgdev_get_action_result()
for possible values.
void fpi_imgdev_activate_complete (struct fp_img_dev *imgdev
,int status
);
Marks an activation as complete, whether successful or not.
See fpi_imgdev_get_action_result()
for possible values.
void
fpi_imgdev_close_complete (struct fp_img_dev *imgdev
);
Function to call when the device has been closed.
void
fpi_imgdev_deactivate_complete (struct fp_img_dev *imgdev
);
Marks a deactivation as complete.
enum fp_imgdev_action
fpi_imgdev_get_action (struct fp_img_dev *imgdev
);
Returns the current action being performed by an imaging device.
int
fpi_imgdev_get_action_result (struct fp_img_dev *imgdev
);
Returns an integer representing the result of an action. Which enum the result code is taken from depends on the current action being performed. See fp_capture_result, fp_enroll_result and fp_verify_result.
enum fp_imgdev_enroll_state
fpi_imgdev_get_action_state (struct fp_img_dev *imgdev
);
Returns the state of an imaging device while enrolling a fingerprint.
void fpi_imgdev_image_captured (struct fp_img_dev *imgdev
,struct fp_img *img
);
Report to the core that the driver captured this image from the sensor.
void fpi_imgdev_open_complete (struct fp_img_dev *imgdev
,int status
);
Function to call when the device has been opened, whether successfully of not.
void fpi_imgdev_report_finger_status (struct fp_img_dev *imgdev
,gboolean present
);
Reports from the driver whether the user's finger is on the sensor.
imgdev |
a fp_img_dev imaging fingerprint device |
|
present |
whether the finger is present on the sensor |
void fpi_imgdev_session_error (struct fp_img_dev *imgdev
,int error
);
Report an error that occurred in the driver.
void fpi_imgdev_set_action_result (struct fp_img_dev *imgdev
,int action_result
);
Drivers should use fpi_imgdev_image_captured()
instead. This function
should not be used, and will be removed soon.
The current action being performed by an imaging device. The current
action can be gathered inside the driver using fpi_imgdev_get_action()
.
The state of an imaging device while doing a capture. The state is
passed through to the driver using the ::activate()
or ::change_state()
vfuncs.
The state of an imaging device while enrolling a fingerprint. Given that enrollment
requires multiple captures, a number of those states will be repeated before
the state is IMG_ACQUIRE_STATE_DONE
.