From 42cdb00aa1d3fb18012a77c2fb705f012575bdf6 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Sat, 29 Jan 2011 11:50:04 +0900 Subject: [PATCH] Added a Misc option group to hold misc features I felt that the ehancements group was doing double duity for image tuning and other more hardware related options. This new group takes ownership of those. I'm not happy with the name, but that can always be changed. --- backend/avision.c | 8 ++++++++ backend/avision.h | 1 + 2 files changed, 9 insertions(+) diff --git a/backend/avision.c b/backend/avision.c index 5f8549274..fb643995d 100644 --- a/backend/avision.c +++ b/backend/avision.c @@ -6504,6 +6504,14 @@ init_options (Avision_Scanner* s) s->opt[OPT_IR].cap |= SANE_CAP_INACTIVE; } + /* "MISC" group: */ + s->opt[OPT_MISC_GROUP].title = SANE_TITLE_SCAN_MODE; + s->opt[OPT_MISC_GROUP].desc = ""; /* for groups only title and type are valid */ + s->opt[OPT_MISC_GROUP].type = SANE_TYPE_GROUP; + s->opt[OPT_MISC_GROUP].cap = 0; + s->opt[OPT_MISC_GROUP].size = 0; + s->opt[OPT_MISC_GROUP].constraint_type = SANE_CONSTRAINT_NONE; + /* film holder control */ if (dev->scanner_type != AV_FILM) s->opt[OPT_FRAME].cap |= SANE_CAP_INACTIVE; diff --git a/backend/avision.h b/backend/avision.h index 62ef30cbf..58dcb5ed6 100644 --- a/backend/avision.h +++ b/backend/avision.h @@ -285,6 +285,7 @@ enum Avision_Option OPT_IR, /* infra-red */ OPT_MULTISAMPLE, /* multi-sample */ + OPT_MISC_GROUP, OPT_FRAME, /* Film holder control */ OPT_POWER_SAVE_TIME, /* set power save time to the scanner */