]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove state size length type
authorBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 10:03:23 +0000 (11:03 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 10:03:23 +0000 (11:03 +0100)
src/kds_s2000w_handler.c
src/kds_s2000w_handler.h
src/kds_s2000w_net.c

index b861c17ff2a732f178d38a091c6e870ae49d08f7..7b1704dbfc4b5cbdf6aa22ea072aafc77cd69283 100644 (file)
@@ -14,9 +14,6 @@ current_state* kds_s2000w_handler_open()
        state = malloc(sizeof(current_state));
        state->sessionid = 0;
        state->state = NOTCONNECTED;
-       state->size = 0;
-       state->length = 0;
-       state->type = INT;
 
        state->state = NOTCONNECTED;
        CURL *curl = curl_easy_init();
index 3d36b16092888fd59430ea0a300d80b5df6bb55f..172e27d7f4b7e15c3984aebd491c59a276b1a680 100644 (file)
@@ -5,21 +5,9 @@ typedef enum {
        BUSY
 } device_state;
 
-typedef enum {
-       BOOL,
-       INT,
-       FIXED,
-       STRING,
-       BUTTON,
-       GROUP
-} type;
-
 typedef struct {
        int64_t sessionid;
        device_state state;
-       size_t size;
-       size_t length;
-       type type;
 } current_state;
 
 current_state* kds_s2000w_handler_open();
index e6208decb868145c010e9ca352b773e4d9aaa21e..1a5ac1dfe664a783002625c4c1e9cf3202cc07b7 100644 (file)
@@ -98,7 +98,6 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor(
                option_descriptor_array.length++;
        }
 
-       current_state* state = kds_s2000w_handler_current_state();
        switch (option) {
                case 0:
                        free(option_descriptor_array.option_descriptors[option]);