From: Bastian Dehn Date: Sat, 27 Jan 2024 16:54:39 +0000 (+0100) Subject: change skip blank page to bool X-Git-Tag: v1.0.0^2~430 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=5b5a72ce6a280c3dcdd057c83cd1913970f7898f;p=sane-kds-s2000w-net.git change skip blank page to bool --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 53c8ddb..f5cae02 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -137,7 +137,7 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor( option_descriptors[option].name = "skipblankpages"; option_descriptors[option].title = "skipblankpages"; option_descriptors[option].desc = "skipblankpages"; - option_descriptors[option].cap = SANE_CAP_SOFT_DETECT; + option_descriptors[option].cap = SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT; option_descriptors[option].constraint_type = SANE_CONSTRAINT_NONE; option_descriptors[option].constraint.string_list = NULL; break; @@ -294,7 +294,6 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor( switch (option) { case 0: case 1: - case 4: case 5: case 7: case 11: @@ -322,6 +321,10 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor( option_descriptors[option].unit = SANE_UNIT_NONE; option_descriptors[option].size = sizeof(SANE_String) * 50; break; + case 4: + option_descriptors[option].type = SANE_TYPE_BOOL; + option_descriptors[option].size = sizeof(SANE_Bool); + break; default: return NULL; break;