IO_ERROR = 9
};
+uint16_t _kds_s2000w_handler_get_group_available_options(json_object* defaults, const char** group, size_t len)
+{
+ const json_object* key = NULL;
+ uint16_t bitmask = 0;
+
+ for (size_t i = 0; i < len; i++) {
+ key = json_object_object_get(defaults, group[i]);
+ if (key != NULL)
+ bitmask |= 1 << i;
+
+ key = NULL;
+ }
+
+ return bitmask;
+}
+
void _kds_s2000w_handler_opts_write_value_to_json(json_object* value_object, SANE_Value_Type value_type, void* value)
{
if (value_type == SANE_TYPE_INT || value_type == SANE_TYPE_BOOL) {
resp = NULL;
}
-uint16_t _kds_s2000w_handler_get_group_available_options(json_object* defaults, const char** group, size_t len)
-{
- const json_object* key = NULL;
- uint16_t bitmask = 0;
-
- for (size_t i = 0; i < len; i++) {
- key = json_object_object_get(defaults, group[i]);
- if (key != NULL)
- bitmask |= 1 << i;
-
- key = NULL;
- }
-
- return bitmask;
-}
-
json_object* _kds_s2000w_handler_opts_reset(const option_descriptor_t* descriptor, handler_t* h)
{
if (strcmp(descriptor->config_name, RESET) != 0)