2007-10-08 15:46:42 +00:00
|
|
|
/*
|
|
|
|
* Main definitions for libfprint
|
|
|
|
* Copyright (C) 2007 Daniel Drake <dsd@gentoo.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __FPRINT_H__
|
|
|
|
#define __FPRINT_H__
|
|
|
|
|
2010-09-08 06:43:17 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-10-31 13:12:04 +00:00
|
|
|
#include <stdint.h>
|
2008-02-16 12:44:50 +00:00
|
|
|
#include <sys/time.h>
|
2007-10-31 13:12:04 +00:00
|
|
|
|
2007-10-08 15:55:50 +00:00
|
|
|
/* structs that applications are not allowed to peek into */
|
|
|
|
struct fp_dscv_dev;
|
2007-10-31 13:12:04 +00:00
|
|
|
struct fp_dscv_print;
|
2007-10-08 16:01:08 +00:00
|
|
|
struct fp_dev;
|
2007-10-08 16:05:58 +00:00
|
|
|
struct fp_driver;
|
2007-10-08 17:24:29 +00:00
|
|
|
struct fp_print_data;
|
2007-10-26 23:06:53 +00:00
|
|
|
struct fp_img;
|
2007-10-08 15:55:50 +00:00
|
|
|
|
2007-10-16 13:23:30 +00:00
|
|
|
/* misc/general stuff */
|
2007-11-01 23:11:29 +00:00
|
|
|
|
|
|
|
/** \ingroup print_data
|
|
|
|
* Numeric codes used to refer to fingers (and thumbs) of a human. These are
|
|
|
|
* purposely not available as strings, to avoid getting the library tangled up
|
|
|
|
* in localization efforts.
|
|
|
|
*/
|
2007-10-16 13:23:30 +00:00
|
|
|
enum fp_finger {
|
2007-11-01 23:11:29 +00:00
|
|
|
LEFT_THUMB = 1, /** thumb (left hand) */
|
|
|
|
LEFT_INDEX, /** index finger (left hand) */
|
|
|
|
LEFT_MIDDLE, /** middle finger (left hand) */
|
|
|
|
LEFT_RING, /** ring finger (left hand) */
|
|
|
|
LEFT_LITTLE, /** little finger (left hand) */
|
|
|
|
RIGHT_THUMB, /** thumb (right hand) */
|
|
|
|
RIGHT_INDEX, /** index finger (right hand) */
|
|
|
|
RIGHT_MIDDLE, /** middle finger (right hand) */
|
|
|
|
RIGHT_RING, /** ring finger (right hand) */
|
|
|
|
RIGHT_LITTLE, /** little finger (right hand) */
|
2007-10-16 13:23:30 +00:00
|
|
|
};
|
|
|
|
|
2008-11-20 14:40:01 +00:00
|
|
|
/** \ingroup dev
|
|
|
|
* Numeric codes used to refer to the scan type of the device. Devices require
|
|
|
|
* either swiping or pressing the finger on the device. This is useful for
|
|
|
|
* front-ends.
|
|
|
|
*/
|
|
|
|
enum fp_scan_type {
|
|
|
|
FP_SCAN_TYPE_PRESS = 0, /** press */
|
|
|
|
FP_SCAN_TYPE_SWIPE, /** swipe */
|
|
|
|
};
|
|
|
|
|
2007-10-31 13:12:04 +00:00
|
|
|
/* Drivers */
|
|
|
|
const char *fp_driver_get_name(struct fp_driver *drv);
|
|
|
|
const char *fp_driver_get_full_name(struct fp_driver *drv);
|
|
|
|
uint16_t fp_driver_get_driver_id(struct fp_driver *drv);
|
2008-11-20 14:40:01 +00:00
|
|
|
enum fp_scan_type fp_driver_get_scan_type(struct fp_driver *drv);
|
2007-10-31 13:12:04 +00:00
|
|
|
|
2007-10-08 15:55:50 +00:00
|
|
|
/* Device discovery */
|
|
|
|
struct fp_dscv_dev **fp_discover_devs(void);
|
|
|
|
void fp_dscv_devs_free(struct fp_dscv_dev **devs);
|
2007-10-23 22:24:21 +00:00
|
|
|
struct fp_driver *fp_dscv_dev_get_driver(struct fp_dscv_dev *dev);
|
2007-10-30 22:24:31 +00:00
|
|
|
uint32_t fp_dscv_dev_get_devtype(struct fp_dscv_dev *dev);
|
2007-10-31 13:12:04 +00:00
|
|
|
int fp_dscv_dev_supports_print_data(struct fp_dscv_dev *dev,
|
|
|
|
struct fp_print_data *print);
|
|
|
|
int fp_dscv_dev_supports_dscv_print(struct fp_dscv_dev *dev,
|
|
|
|
struct fp_dscv_print *print);
|
|
|
|
struct fp_dscv_dev *fp_dscv_dev_for_print_data(struct fp_dscv_dev **devs,
|
|
|
|
struct fp_print_data *print);
|
|
|
|
struct fp_dscv_dev *fp_dscv_dev_for_dscv_print(struct fp_dscv_dev **devs,
|
|
|
|
struct fp_dscv_print *print);
|
2007-10-30 22:24:31 +00:00
|
|
|
|
|
|
|
static inline uint16_t fp_dscv_dev_get_driver_id(struct fp_dscv_dev *dev)
|
|
|
|
{
|
|
|
|
return fp_driver_get_driver_id(fp_dscv_dev_get_driver(dev));
|
|
|
|
}
|
2007-10-08 15:55:50 +00:00
|
|
|
|
2007-10-31 13:12:04 +00:00
|
|
|
/* Print discovery */
|
|
|
|
struct fp_dscv_print **fp_discover_prints(void);
|
|
|
|
void fp_dscv_prints_free(struct fp_dscv_print **prints);
|
|
|
|
uint16_t fp_dscv_print_get_driver_id(struct fp_dscv_print *print);
|
|
|
|
uint32_t fp_dscv_print_get_devtype(struct fp_dscv_print *print);
|
|
|
|
enum fp_finger fp_dscv_print_get_finger(struct fp_dscv_print *print);
|
2007-11-19 18:29:26 +00:00
|
|
|
int fp_dscv_print_delete(struct fp_dscv_print *print);
|
2007-10-31 13:12:04 +00:00
|
|
|
|
2007-10-08 16:01:08 +00:00
|
|
|
/* Device handling */
|
|
|
|
struct fp_dev *fp_dev_open(struct fp_dscv_dev *ddev);
|
|
|
|
void fp_dev_close(struct fp_dev *dev);
|
2007-10-23 22:24:21 +00:00
|
|
|
struct fp_driver *fp_dev_get_driver(struct fp_dev *dev);
|
2007-10-08 18:53:50 +00:00
|
|
|
int fp_dev_get_nr_enroll_stages(struct fp_dev *dev);
|
2007-10-30 22:24:31 +00:00
|
|
|
uint32_t fp_dev_get_devtype(struct fp_dev *dev);
|
2007-10-31 13:12:04 +00:00
|
|
|
int fp_dev_supports_print_data(struct fp_dev *dev, struct fp_print_data *data);
|
|
|
|
int fp_dev_supports_dscv_print(struct fp_dev *dev, struct fp_dscv_print *print);
|
2007-10-08 16:01:08 +00:00
|
|
|
|
2013-02-08 11:38:13 +00:00
|
|
|
/** \ingroup dev
|
|
|
|
* Image capture result codes returned from fp_dev_img_capture().
|
|
|
|
*/
|
|
|
|
enum fp_capture_result {
|
|
|
|
/** Capture completed successfully, the capture data has been
|
|
|
|
* returned to the caller. */
|
|
|
|
FP_CAPTURE_COMPLETE = 0,
|
|
|
|
/** Capture failed for some reason */
|
|
|
|
FP_CAPTURE_FAIL,
|
|
|
|
};
|
|
|
|
|
2007-11-02 17:04:19 +00:00
|
|
|
int fp_dev_supports_imaging(struct fp_dev *dev);
|
|
|
|
int fp_dev_img_capture(struct fp_dev *dev, int unconditional,
|
|
|
|
struct fp_img **image);
|
|
|
|
int fp_dev_get_img_width(struct fp_dev *dev);
|
|
|
|
int fp_dev_get_img_height(struct fp_dev *dev);
|
|
|
|
|
2007-11-01 23:11:29 +00:00
|
|
|
/** \ingroup dev
|
|
|
|
* Enrollment result codes returned from fp_enroll_finger().
|
|
|
|
* Result codes with RETRY in the name suggest that the scan failed due to
|
|
|
|
* user error. Applications will generally want to inform the user of the
|
|
|
|
* problem and then retry the enrollment stage. For more info on the semantics
|
|
|
|
* of interpreting these result codes and tracking enrollment process, see
|
|
|
|
* \ref enrolling.
|
|
|
|
*/
|
2007-10-13 23:45:49 +00:00
|
|
|
enum fp_enroll_result {
|
2007-11-01 23:11:29 +00:00
|
|
|
/** Enrollment completed successfully, the enrollment data has been
|
|
|
|
* returned to the caller. */
|
2007-10-12 14:27:23 +00:00
|
|
|
FP_ENROLL_COMPLETE = 1,
|
2007-11-01 23:11:29 +00:00
|
|
|
/** Enrollment failed due to incomprehensible data; this may occur when
|
|
|
|
* the user scans a different finger on each enroll stage. */
|
2007-10-08 18:53:50 +00:00
|
|
|
FP_ENROLL_FAIL,
|
2007-11-01 23:11:29 +00:00
|
|
|
/** Enroll stage passed; more stages are need to complete the process. */
|
2007-10-08 18:53:50 +00:00
|
|
|
FP_ENROLL_PASS,
|
2007-11-01 23:11:29 +00:00
|
|
|
/** The enrollment scan did not succeed due to poor scan quality or
|
|
|
|
* other general user scanning problem. */
|
2007-10-13 23:45:49 +00:00
|
|
|
FP_ENROLL_RETRY = 100,
|
2007-11-01 23:11:29 +00:00
|
|
|
/** The enrollment scan did not succeed because the finger swipe was
|
|
|
|
* too short. */
|
2007-10-12 14:27:23 +00:00
|
|
|
FP_ENROLL_RETRY_TOO_SHORT,
|
2007-11-01 23:11:29 +00:00
|
|
|
/** The enrollment scan did not succeed because the finger was not
|
|
|
|
* centered on the scanner. */
|
2007-10-12 14:27:23 +00:00
|
|
|
FP_ENROLL_RETRY_CENTER_FINGER,
|
2007-11-01 23:11:29 +00:00
|
|
|
/** The verification scan did not succeed due to quality or pressure
|
|
|
|
* problems; the user should remove their finger from the scanner before
|
|
|
|
* retrying. */
|
2007-10-13 23:45:49 +00:00
|
|
|
FP_ENROLL_RETRY_REMOVE_FINGER,
|
2007-10-08 18:53:50 +00:00
|
|
|
};
|
|
|
|
|
2007-11-13 20:46:15 +00:00
|
|
|
int fp_enroll_finger_img(struct fp_dev *dev, struct fp_print_data **print_data,
|
|
|
|
struct fp_img **img);
|
|
|
|
|
|
|
|
/** \ingroup dev
|
|
|
|
* Performs an enroll stage. See \ref enrolling for an explanation of enroll
|
|
|
|
* stages. This function is just a shortcut to calling fp_enroll_finger_img()
|
|
|
|
* with a NULL image parameter. Be sure to read the description of
|
|
|
|
* fp_enroll_finger_img() in order to understand its behaviour.
|
|
|
|
*
|
|
|
|
* \param dev the device
|
|
|
|
* \param print_data a location to return the resultant enrollment data from
|
|
|
|
* the final stage. Must be freed with fp_print_data_free() after use.
|
|
|
|
* \return negative code on error, otherwise a code from #fp_enroll_result
|
|
|
|
*/
|
|
|
|
static inline int fp_enroll_finger(struct fp_dev *dev,
|
|
|
|
struct fp_print_data **print_data)
|
|
|
|
{
|
|
|
|
return fp_enroll_finger_img(dev, print_data, NULL);
|
|
|
|
}
|
2007-10-08 18:53:50 +00:00
|
|
|
|
2007-11-01 23:11:29 +00:00
|
|
|
/** \ingroup dev
|
2007-11-20 21:52:10 +00:00
|
|
|
* Verification result codes returned from fp_verify_finger(). Return codes
|
|
|
|
* are also shared with fp_identify_finger().
|
2007-11-01 23:11:29 +00:00
|
|
|
* Result codes with RETRY in the name suggest that the scan failed due to
|
|
|
|
* user error. Applications will generally want to inform the user of the
|
|
|
|
* problem and then retry the verify operation.
|
|
|
|
*/
|
2007-10-13 23:58:45 +00:00
|
|
|
enum fp_verify_result {
|
2007-11-20 21:52:10 +00:00
|
|
|
/** The scan completed successfully, but the newly scanned fingerprint
|
|
|
|
* does not match the fingerprint being verified against.
|
|
|
|
* In the case of identification, this return code indicates that the
|
|
|
|
* scanned finger could not be found in the print gallery. */
|
2007-10-13 23:58:45 +00:00
|
|
|
FP_VERIFY_NO_MATCH = 0,
|
2007-11-20 21:52:10 +00:00
|
|
|
/** The scan completed successfully and the newly scanned fingerprint does
|
|
|
|
* match the fingerprint being verified, or in the case of identification,
|
|
|
|
* the scanned fingerprint was found in the print gallery. */
|
2007-10-13 23:58:45 +00:00
|
|
|
FP_VERIFY_MATCH = 1,
|
2007-11-20 21:52:10 +00:00
|
|
|
/** The scan did not succeed due to poor scan quality or other general
|
|
|
|
* user scanning problem. */
|
2007-10-13 23:58:45 +00:00
|
|
|
FP_VERIFY_RETRY = FP_ENROLL_RETRY,
|
2007-11-20 21:52:10 +00:00
|
|
|
/** The scan did not succeed because the finger swipe was too short. */
|
2007-10-13 23:58:45 +00:00
|
|
|
FP_VERIFY_RETRY_TOO_SHORT = FP_ENROLL_RETRY_TOO_SHORT,
|
2007-11-20 21:52:10 +00:00
|
|
|
/** The scan did not succeed because the finger was not centered on the
|
|
|
|
* scanner. */
|
2007-10-13 23:58:45 +00:00
|
|
|
FP_VERIFY_RETRY_CENTER_FINGER = FP_ENROLL_RETRY_CENTER_FINGER,
|
2007-11-20 21:52:10 +00:00
|
|
|
/** The scan did not succeed due to quality or pressure problems; the user
|
|
|
|
* should remove their finger from the scanner before retrying. */
|
2007-10-13 23:58:45 +00:00
|
|
|
FP_VERIFY_RETRY_REMOVE_FINGER = FP_ENROLL_RETRY_REMOVE_FINGER,
|
|
|
|
};
|
|
|
|
|
2007-11-13 20:46:15 +00:00
|
|
|
int fp_verify_finger_img(struct fp_dev *dev,
|
|
|
|
struct fp_print_data *enrolled_print, struct fp_img **img);
|
|
|
|
|
|
|
|
/** \ingroup dev
|
2007-11-20 21:52:10 +00:00
|
|
|
* Performs a new scan and verify it against a previously enrolled print. This
|
|
|
|
* function is just a shortcut to calling fp_verify_finger_img() with a NULL
|
|
|
|
* image output parameter.
|
2007-11-13 20:46:15 +00:00
|
|
|
* \param dev the device to perform the scan.
|
|
|
|
* \param enrolled_print the print to verify against. Must have been previously
|
|
|
|
* enrolled with a device compatible to the device selected to perform the scan.
|
|
|
|
* \return negative code on error, otherwise a code from #fp_verify_result
|
|
|
|
* \sa fp_verify_finger_img()
|
|
|
|
*/
|
|
|
|
static inline int fp_verify_finger(struct fp_dev *dev,
|
|
|
|
struct fp_print_data *enrolled_print)
|
|
|
|
{
|
|
|
|
return fp_verify_finger_img(dev, enrolled_print, NULL);
|
|
|
|
}
|
2007-10-13 23:58:45 +00:00
|
|
|
|
2007-11-20 21:52:10 +00:00
|
|
|
int fp_dev_supports_identification(struct fp_dev *dev);
|
|
|
|
int fp_identify_finger_img(struct fp_dev *dev,
|
|
|
|
struct fp_print_data **print_gallery, size_t *match_offset,
|
|
|
|
struct fp_img **img);
|
|
|
|
|
|
|
|
/** \ingroup dev
|
|
|
|
* Performs a new scan and attempts to identify the scanned finger against a
|
|
|
|
* collection of previously enrolled fingerprints. This function is just a
|
|
|
|
* shortcut to calling fp_identify_finger_img() with a NULL image output
|
|
|
|
* parameter.
|
|
|
|
* \param dev the device to perform the scan.
|
|
|
|
* \param print_gallery NULL-terminated array of pointers to the prints to
|
|
|
|
* identify against. Each one must have been previously enrolled with a device
|
|
|
|
* compatible to the device selected to perform the scan.
|
|
|
|
* \param match_offset output location to store the array index of the matched
|
|
|
|
* gallery print (if any was found). Only valid if FP_VERIFY_MATCH was
|
|
|
|
* returned.
|
|
|
|
* \return negative code on error, otherwise a code from #fp_verify_result
|
|
|
|
* \sa fp_identify_finger_img()
|
|
|
|
*/
|
|
|
|
static inline int fp_identify_finger(struct fp_dev *dev,
|
|
|
|
struct fp_print_data **print_gallery, size_t *match_offset)
|
|
|
|
{
|
|
|
|
return fp_identify_finger_img(dev, print_gallery, match_offset, NULL);
|
|
|
|
}
|
|
|
|
|
2007-10-08 17:24:29 +00:00
|
|
|
/* Data handling */
|
2007-10-16 13:23:30 +00:00
|
|
|
int fp_print_data_load(struct fp_dev *dev, enum fp_finger finger,
|
2007-10-31 13:12:04 +00:00
|
|
|
struct fp_print_data **data);
|
|
|
|
int fp_print_data_from_dscv_print(struct fp_dscv_print *print,
|
2007-10-16 13:23:30 +00:00
|
|
|
struct fp_print_data **data);
|
|
|
|
int fp_print_data_save(struct fp_print_data *data, enum fp_finger finger);
|
2007-11-19 18:29:26 +00:00
|
|
|
int fp_print_data_delete(struct fp_dev *dev, enum fp_finger finger);
|
2007-10-08 17:24:29 +00:00
|
|
|
void fp_print_data_free(struct fp_print_data *data);
|
2007-10-28 22:02:04 +00:00
|
|
|
size_t fp_print_data_get_data(struct fp_print_data *data, unsigned char **ret);
|
|
|
|
struct fp_print_data *fp_print_data_from_data(unsigned char *buf,
|
|
|
|
size_t buflen);
|
2007-10-30 22:24:31 +00:00
|
|
|
uint16_t fp_print_data_get_driver_id(struct fp_print_data *data);
|
|
|
|
uint32_t fp_print_data_get_devtype(struct fp_print_data *data);
|
2007-10-08 17:24:29 +00:00
|
|
|
|
2007-10-26 23:06:53 +00:00
|
|
|
/* Image handling */
|
2007-11-19 00:27:27 +00:00
|
|
|
|
|
|
|
/** \ingroup img */
|
|
|
|
struct fp_minutia {
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int ex;
|
|
|
|
int ey;
|
|
|
|
int direction;
|
|
|
|
double reliability;
|
|
|
|
int type;
|
|
|
|
int appearing;
|
|
|
|
int feature_id;
|
|
|
|
int *nbrs;
|
|
|
|
int *ridge_counts;
|
|
|
|
int num_nbrs;
|
|
|
|
};
|
|
|
|
|
2007-10-26 23:06:53 +00:00
|
|
|
int fp_img_get_height(struct fp_img *img);
|
|
|
|
int fp_img_get_width(struct fp_img *img);
|
|
|
|
unsigned char *fp_img_get_data(struct fp_img *img);
|
|
|
|
int fp_img_save_to_file(struct fp_img *img, char *path);
|
2007-10-27 11:07:11 +00:00
|
|
|
void fp_img_standardize(struct fp_img *img);
|
2007-11-17 12:46:00 +00:00
|
|
|
struct fp_img *fp_img_binarize(struct fp_img *img);
|
2007-11-19 00:27:27 +00:00
|
|
|
struct fp_minutia **fp_img_get_minutiae(struct fp_img *img, int *nr_minutiae);
|
2007-10-27 14:16:54 +00:00
|
|
|
void fp_img_free(struct fp_img *img);
|
2007-10-26 23:06:53 +00:00
|
|
|
|
2008-02-16 12:44:50 +00:00
|
|
|
/* Polling and timing */
|
2008-02-26 22:40:38 +00:00
|
|
|
|
|
|
|
struct fp_pollfd {
|
|
|
|
int fd;
|
|
|
|
short events;
|
|
|
|
};
|
|
|
|
|
2008-02-16 12:44:50 +00:00
|
|
|
int fp_handle_events_timeout(struct timeval *timeout);
|
|
|
|
int fp_handle_events(void);
|
2008-02-26 22:40:38 +00:00
|
|
|
size_t fp_get_pollfds(struct fp_pollfd **pollfds);
|
2008-03-01 12:16:31 +00:00
|
|
|
int fp_get_next_timeout(struct timeval *tv);
|
2008-02-26 22:40:38 +00:00
|
|
|
|
|
|
|
typedef void (*fp_pollfd_added_cb)(int fd, short events);
|
|
|
|
typedef void (*fp_pollfd_removed_cb)(int fd);
|
|
|
|
void fp_set_pollfd_notifiers(fp_pollfd_added_cb added_cb,
|
|
|
|
fp_pollfd_removed_cb removed_cb);
|
2008-02-16 12:44:50 +00:00
|
|
|
|
2007-10-08 17:24:29 +00:00
|
|
|
/* Library */
|
2007-10-08 15:46:42 +00:00
|
|
|
int fp_init(void);
|
2007-11-13 14:32:31 +00:00
|
|
|
void fp_exit(void);
|
2008-11-20 17:23:04 +00:00
|
|
|
void fp_set_debug(int level);
|
2007-10-08 15:46:42 +00:00
|
|
|
|
2008-02-26 18:04:54 +00:00
|
|
|
/* Asynchronous I/O */
|
|
|
|
|
|
|
|
typedef void (*fp_dev_open_cb)(struct fp_dev *dev, int status, void *user_data);
|
|
|
|
int fp_async_dev_open(struct fp_dscv_dev *ddev, fp_dev_open_cb callback,
|
|
|
|
void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_dev_close_cb)(struct fp_dev *dev, void *user_data);
|
|
|
|
void fp_async_dev_close(struct fp_dev *dev, fp_dev_close_cb callback,
|
|
|
|
void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_enroll_stage_cb)(struct fp_dev *dev, int result,
|
|
|
|
struct fp_print_data *print, struct fp_img *img, void *user_data);
|
|
|
|
int fp_async_enroll_start(struct fp_dev *dev, fp_enroll_stage_cb callback,
|
|
|
|
void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_enroll_stop_cb)(struct fp_dev *dev, void *user_data);
|
|
|
|
int fp_async_enroll_stop(struct fp_dev *dev, fp_enroll_stop_cb callback,
|
|
|
|
void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_verify_cb)(struct fp_dev *dev, int result,
|
|
|
|
struct fp_img *img, void *user_data);
|
|
|
|
int fp_async_verify_start(struct fp_dev *dev, struct fp_print_data *data,
|
|
|
|
fp_verify_cb callback, void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_verify_stop_cb)(struct fp_dev *dev, void *user_data);
|
|
|
|
int fp_async_verify_stop(struct fp_dev *dev, fp_verify_stop_cb callback,
|
|
|
|
void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_identify_cb)(struct fp_dev *dev, int result,
|
|
|
|
size_t match_offset, struct fp_img *img, void *user_data);
|
|
|
|
int fp_async_identify_start(struct fp_dev *dev, struct fp_print_data **gallery,
|
|
|
|
fp_identify_cb callback, void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_identify_stop_cb)(struct fp_dev *dev, void *user_data);
|
|
|
|
int fp_async_identify_stop(struct fp_dev *dev, fp_identify_stop_cb callback,
|
|
|
|
void *user_data);
|
|
|
|
|
2013-02-08 11:38:13 +00:00
|
|
|
typedef void (*fp_capture_cb)(struct fp_dev *dev, int result,
|
|
|
|
struct fp_img *img, void *user_data);
|
|
|
|
int fp_async_capture_start(struct fp_dev *dev, int unconditional, fp_capture_cb callback, void *user_data);
|
|
|
|
|
|
|
|
typedef void (*fp_capture_stop_cb)(struct fp_dev *dev, void *user_data);
|
|
|
|
int fp_async_capture_stop(struct fp_dev *dev, fp_capture_stop_cb callback, void *user_data);
|
|
|
|
|
2010-09-08 06:43:17 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2007-10-08 15:46:42 +00:00
|
|
|
#endif
|
|
|
|
|