summaryrefslogtreecommitdiff
path: root/backend/pixma_sane_options.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
commit58912f68c2489bcee787599837447e0d64dfd61a (patch)
treedda50aadde35fe152da1a8d50769987ace0f1496 /backend/pixma_sane_options.c
parentcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (diff)
New upstream version 1.0.27upstream/1.0.27
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;
}