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 | 37e8ad6c00349fd62f09c8cfe3e22acf545db2ac (patch) | |
tree | 4b663edb122b77e9c8f1b48c0f1c68f69fcf5655 /src/scanner.c | |
parent | dc950f77d2a9f9aa23f6bd0ea59648c34fff491b (diff) |
Imported Upstream version 2.31.1upstream/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); |