summaryrefslogtreecommitdiff
path: root/backend/pixma_sane_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/pixma_sane_options.c')
-rw-r--r--backend/pixma_sane_options.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/backend/pixma_sane_options.c b/backend/pixma_sane_options.c
index 890b3ff..2e4a054 100644
--- a/backend/pixma_sane_options.c
+++ b/backend/pixma_sane_options.c
@@ -7,6 +7,8 @@ static const SANE_Range constraint_threshold =
{ 0,100,1 };
static const SANE_Range constraint_threshold_curve =
{ 0,127,1 };
+static const SANE_Range constraint_adf_wait =
+ { 0,3600,1 };
static
@@ -340,6 +342,21 @@ int build_option_descriptors(struct pixma_sane_t *ss)
sod->constraint.range = &constraint_threshold_curve;
OPT_IN_CTX[opt_threshold_curve].info = 0;
+ opt = &(OPT_IN_CTX[opt_adf_wait]);
+ sod = &opt->sod;
+ sod->type = SANE_TYPE_INT;
+ sod->title = SANE_I18N("ADF Waiting Time");
+ sod->desc = SANE_I18N("When set, the scanner searches the waiting time in seconds for a new document inserted into the automatic document feeder.");
+ sod->name = "adf-wait";
+ sod->unit = SANE_UNIT_NONE;
+ sod->size = 1 * sizeof(SANE_Word);
+ sod->cap = SANE_CAP_SOFT_SELECT|SANE_CAP_SOFT_DETECT|SANE_CAP_AUTOMATIC|SANE_CAP_INACTIVE;
+ sod->constraint_type = SANE_CONSTRAINT_RANGE;
+ sod->constraint.range = &constraint_adf_wait;
+ OPT_IN_CTX[opt_adf_wait].info = 0;
+ opt->def.w = 0;
+ opt->val.w = 0;
+
return 0;
}