2006-05-26 07:49:24 +00:00
|
|
|
/* Automatically generated from pixma_sane.c */
|
|
|
|
|
2012-10-31 11:40:07 +00:00
|
|
|
typedef union {
|
2006-05-26 07:49:24 +00:00
|
|
|
SANE_Word w;
|
2012-10-31 11:40:07 +00:00
|
|
|
SANE_Int i;
|
2006-05-26 07:49:24 +00:00
|
|
|
SANE_Bool b;
|
|
|
|
SANE_Fixed f;
|
|
|
|
SANE_String s;
|
|
|
|
void *ptr;
|
|
|
|
} option_value_t;
|
|
|
|
|
2012-10-31 11:40:07 +00:00
|
|
|
typedef enum {
|
2006-05-26 07:49:24 +00:00
|
|
|
opt_opt_num_opts,
|
|
|
|
opt__group_1,
|
|
|
|
opt_resolution,
|
|
|
|
opt_mode,
|
|
|
|
opt_source,
|
|
|
|
opt_button_controlled,
|
|
|
|
opt__group_2,
|
|
|
|
opt_custom_gamma,
|
|
|
|
opt_gamma_table,
|
2012-02-16 18:58:23 +00:00
|
|
|
opt_gamma,
|
2006-05-26 07:49:24 +00:00
|
|
|
opt__group_3,
|
|
|
|
opt_tl_x,
|
|
|
|
opt_tl_y,
|
|
|
|
opt_br_x,
|
|
|
|
opt_br_y,
|
|
|
|
opt__group_4,
|
|
|
|
opt_button_update,
|
|
|
|
opt_button_1,
|
|
|
|
opt_button_2,
|
2012-10-31 11:40:07 +00:00
|
|
|
opt_original,
|
|
|
|
opt_target,
|
2013-07-18 20:45:45 +00:00
|
|
|
opt_scan_resolution,
|
2012-02-03 21:05:32 +00:00
|
|
|
opt__group_5,
|
|
|
|
opt_threshold,
|
2012-02-29 10:40:18 +00:00
|
|
|
opt_threshold_curve,
|
2017-04-04 09:23:03 +00:00
|
|
|
opt_adf_wait,
|
2006-05-26 07:49:24 +00:00
|
|
|
opt_last
|
|
|
|
} option_t;
|
|
|
|
|
2012-10-31 11:40:07 +00:00
|
|
|
|
|
|
|
typedef struct {
|
2006-05-26 07:49:24 +00:00
|
|
|
SANE_Option_Descriptor sod;
|
2012-10-31 11:40:07 +00:00
|
|
|
option_value_t val,def;
|
2006-05-26 07:49:24 +00:00
|
|
|
SANE_Word info;
|
|
|
|
} option_descriptor_t;
|
|
|
|
|
2012-10-31 11:40:07 +00:00
|
|
|
|
2006-05-26 07:49:24 +00:00
|
|
|
struct pixma_sane_t;
|
2012-10-31 11:40:07 +00:00
|
|
|
static int build_option_descriptors(struct pixma_sane_t *ss);
|