diff options
author | Alessio Treglia <quadrispro@ubuntu.com> | 2010-05-13 20:16:51 +0200 |
---|---|---|
committer | Alessio Treglia <quadrispro@ubuntu.com> | 2010-05-13 20:16:51 +0200 |
commit | 7f9ebd076a83aaf63891d63bcb29b4f358f1df2f (patch) | |
tree | d0e1f85948001b77ff07412accf00c155cbbc6a2 /src/scanner.c | |
parent | d116d13b3417eac7943735d2499aab265cc4d9a3 (diff) | |
parent | 37e8ad6c00349fd62f09c8cfe3e22acf545db2ac (diff) |
Merge commit 'upstream/2.31.1'
Diffstat (limited to 'src/scanner.c')
-rw-r--r-- | src/scanner.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |