lib: Make the fp_print_data structure private

And add a couple of helpers for the upekts driver to use.
This commit is contained in:
Bastien Nocera
2018-11-29 14:05:25 +01:00
parent 2b21430abe
commit 61483a4c47
5 changed files with 31 additions and 15 deletions

View File

@@ -39,6 +39,19 @@
extern libusb_context *fpi_usb_ctx;
extern GSList *opened_devices;
/* fp_print_data structure definition */
enum fp_print_data_type {
PRINT_DATA_RAW = 0, /* memset-imposed default */
PRINT_DATA_NBIS_MINUTIAE
};
struct fp_print_data {
uint16_t driver_id;
uint32_t devtype;
enum fp_print_data_type type;
GSList *prints;
};
/* fp_dev structure definition */
enum fp_dev_state {
DEV_STATE_INITIAL = 0,