From 37e8ad6c00349fd62f09c8cfe3e22acf545db2ac Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 13 May 2010 20:16:51 +0200 Subject: Imported Upstream version 2.31.1 --- src/scanner.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/scanner.c') diff --git a/src/scanner.c b/src/scanner.c index b27ae2a..a8d09f9 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -1054,6 +1054,14 @@ do_get_option (Scanner *scanner) break; } } + else if (strcmp (option->name, "duplex") == 0) { + if (option->type == SANE_TYPE_BOOL) + set_bool_option (scanner->priv->handle, option, option_index, job->type == SCAN_ADF_BOTH, NULL); + } + else if (strcmp (option->name, "batch-scan") == 0) { + if (option->type == SANE_TYPE_BOOL) + set_bool_option (scanner->priv->handle, option, option_index, job->type != SCAN_SINGLE, NULL); + } else if (strcmp (option->name, SANE_NAME_BIT_DEPTH) == 0) { if (job->depth > 0) set_int_option (scanner->priv->handle, option, option_index, job->depth, NULL); -- cgit v1.2.3