]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add profile in handler
authorBastian Dehn <hhaalo@arcor.de>
Tue, 23 Sep 2025 07:23:16 +0000 (09:23 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 23 Sep 2025 07:23:16 +0000 (09:23 +0200)
src/kds_s2000w_handler.c
src/kds_s2000w_handler.h

index d082cc121a4a111278f01545353d399fb284dd9f..768d700c82c1f9cfb875b91899c45e196c0ae7f8 100644 (file)
@@ -64,6 +64,7 @@ handler* kds_s2000w_handler_init()
        h->read_info = malloc(sizeof(readinfo));
        h->image = malloc(sizeof(imagedata));
 
+       h->profile = 0;
        h->sessionid = 0;
        h->state = NOTCONNECTED;
        h->current_scan_status->current_image_number = 1;
index 67e3312642022bf539232166a1cb4e60980a7e11..9a155bfea32739f57fab5be98ff80e240d01e290 100644 (file)
@@ -50,6 +50,7 @@ typedef struct {
 } readinfo;
 
 typedef struct {
+       uint8_t profile;
        uint64_t sessionid;
        uint8_t state;
        json_object* current_scanner_config;