]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add blob for output
authorBastian Dehn <hhaalo@arcor.de>
Mon, 5 Feb 2024 20:33:26 +0000 (21:33 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 5 Feb 2024 20:33:26 +0000 (21:33 +0100)
src/kds_s2000w_handler.c

index 1e2d5282ad18d163bdc824a9d53e8a6d8af51550..3b5188aff45986e5d9be63ce942b6b11fcb97846 100644 (file)
@@ -12,6 +12,7 @@ current_state* state = NULL;
 json_object* resp_config = NULL;
 json_object* config = NULL;
 blobdata image;
+blobdata pnm_image;
 
 typedef struct {
        int current_image_number;
@@ -26,6 +27,8 @@ current_state* kds_s2000w_handler_open()
 {
        image.size = 0;
        image.data = NULL;
+       pnm_image.size = 0;
+       pnm_image.data = NULL;
        state = malloc(sizeof(current_state));
        state->sessionid = 0;
        state->state = NOTCONNECTED;