summaryrefslogtreecommitdiff
path: root/backend/pieusb_specific.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/pieusb_specific.h')
-rw-r--r--backend/pieusb_specific.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/backend/pieusb_specific.h b/backend/pieusb_specific.h
index 3928adf..f516960 100644
--- a/backend/pieusb_specific.h
+++ b/backend/pieusb_specific.h
@@ -193,6 +193,7 @@ struct Pieusb_Device_Definition
/* USB id's like 0x05e3 0x0145, see pieusb.conf */
SANE_String version; /* INQUIRY productRevision */
SANE_Byte model; /* INQUIRY model */
+ SANE_Byte flags; /* pieusb.conf flags */
/* Ranges for various quantities */
SANE_Range dpi_range;
@@ -315,7 +316,11 @@ struct Pieusb_Scanner
typedef struct Pieusb_Scanner Pieusb_Scanner;
-SANE_Status sanei_pieusb_parse_config_line(const char* config_line, SANE_Word* vendor_id, SANE_Word* product_id, SANE_Word* model_number);
+SANE_Status sanei_pieusb_parse_config_line(const char* config_line,
+ SANE_Word* vendor_id,
+ SANE_Word* product_id,
+ SANE_Int* model_number,
+ SANE_Int* flags);
/* sub to sane_start() */
SANE_Status sanei_pieusb_post (Pieusb_Scanner *scanner, uint16_t **in_img, int planes);
void sanei_pieusb_correct_shading(struct Pieusb_Scanner *scanner, struct Pieusb_Read_Buffer *buffer);
@@ -329,8 +334,8 @@ SANE_Status sanei_pieusb_set_frame_from_options(Pieusb_Scanner * scanner);
void sanei_pieusb_print_options(struct Pieusb_Scanner *scanner);
/* sub to sane_control_option() and sane_start() */
int sanei_pieusb_analyse_options(struct Pieusb_Scanner *scanner);
-SANE_Bool sanei_pieusb_supported_device_list_contains(SANE_Word vendor_id, SANE_Word product_id, SANE_Word model_number);
-SANE_Status sanei_pieusb_supported_device_list_add(SANE_Word vendor_id, SANE_Word product_id, SANE_Word model_number);
+SANE_Bool sanei_pieusb_supported_device_list_contains(SANE_Word vendor_id, SANE_Word product_id, SANE_Int model_number, SANE_Int flags);
+SANE_Status sanei_pieusb_supported_device_list_add(SANE_Word vendor_id, SANE_Word product_id, SANE_Int model_number, SANE_Int flags);
/* sub to sane_init() and sane_open() */
SANE_Status sanei_pieusb_find_device_callback (const char *devicename);
/* sub to sane_open() */