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();
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();
option_descriptor_array.length++;
}
- current_state* state = kds_s2000w_handler_current_state();
switch (option) {
case 0:
free(option_descriptor_array.option_descriptors[option]);