]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add info value for get option
authorBastian Dehn <hhaalo@arcor.de>
Sun, 25 Feb 2024 10:03:46 +0000 (11:03 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 25 Feb 2024 10:03:46 +0000 (11:03 +0100)
src/kds_s2000w_handler.h
src/kds_s2000w_handler_opts.c
src/kds_s2000w_handler_opts.h
src/kds_s2000w_net.c

index 2c49d4bfe2d5c379e1f8a0663416e618041e6636..ea01fe81a1a41e0586e29704b468399eea3baa2c 100644 (file)
@@ -52,7 +52,7 @@ handler* init_handler();
 void free_handler(handler* h);
 void kds_s2000w_handler_open(const char* devicename, void** handle);
 void kds_s2000w_handler_close(handler* h);
-void kds_s2000w_handler_get_option(handler* handle, int option, void* value);
+void kds_s2000w_handler_get_option(handler* handle, int option, void* value, int* info);
 void kds_s2000w_handler_set_option(handler* handle, int option, void* value, int* info);
 void kds_s2000w_handler_set_option_auto(int option);
 void kds_s2000w_handler_start_scan(handler* h);
index 43d9e5a66b398a4f0157064d062e1187f7d345a7..a2dc3cc92ad074494314248835e821a1f3f9d232 100644 (file)
@@ -117,7 +117,7 @@ void init_gamma_table()
        }
 }
 
-void kds_s2000w_handler_get_option(handler* h, int option, void* value)
+void kds_s2000w_handler_get_option(handler* h, int option, void* value, int* info)
 {
        config = json_object_object_get(resp_config, "Configuration");
        json_object* value_object = NULL;
index 2fdbfd8d795ddd5048aca92087380d4e3454670e..0bdf7d6a3356e358db6336e81ddd19e9ffdea13b 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef KDS_S2000W_HANDLER_OPTS_H
 #define KDS_S2000W_HANDLER_OPTS_H
 void init_gamma_table();
-void kds_s2000w_handler_get_option(handler* h, int option, void* value);
+void kds_s2000w_handler_get_option(handler* h, int option, void* value, int* info);
 void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* info);
 void kds_s2000w_handler_set_option_auto(int option);
 #endif
\ No newline at end of file
index 9d230b154225d0479507c98037bcf14098756f5c..f7fe53f50b1bf810ba29de844b15339a8ae47338 100644 (file)
@@ -100,7 +100,7 @@ SANE_Status _sane_kds_s2000w_net_control_option(SANE_Handle handle,
        debug_printf(ALL, "sane_kds_s2000w_net_control_option");
        handler* h = (handler*) handle;
        if (action == SANE_ACTION_GET_VALUE)
-               kds_s2000w_handler_get_option(h, option, value);
+               kds_s2000w_handler_get_option(h, option, value, info);
 
        if (action == SANE_ACTION_SET_VALUE)
                kds_s2000w_handler_set_option(h, option, value, info);