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

index 768d700c82c1f9cfb875b91899c45e196c0ae7f8..44d1bac2d036634a4ace3e5156cb3074d4e5b2b8 100644 (file)
@@ -35,7 +35,7 @@ uint32_t _kds_s2000w_handler_find_first_data_byte(imagedata* image)
        return byte_count;
 }
 
-void _kds_s2000w_handler_load_config()
+void _kds_s2000w_handler_load_config(handler* h)
 {
        kds_s2000w_debug_printf(ALL, "kds_s2000w_handler_load_config");
 
@@ -47,6 +47,7 @@ void _kds_s2000w_handler_load_config()
                config->ssl_verify,
                config->heartbeat);
        kds_s2000w_debug_set_default_log_level(config->log_level);
+       h->profile = config->profile;
 
        free(config_stream);
        config_stream = NULL;
@@ -136,7 +137,7 @@ void kds_s2000w_handler_open(const char* devicename, void** handle)
        handler* h = kds_s2000w_handler_init();
        *handle = h;
 
-       _kds_s2000w_handler_load_config();
+       _kds_s2000w_handler_load_config(h);
 
        // status code 408 waking up repeat open session
        response* resp = NULL;