]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change rename imagedata type
authorBastian Dehn <hhaalo@arcor.de>
Fri, 17 Oct 2025 16:49:58 +0000 (18:49 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 17 Oct 2025 16:49:58 +0000 (18:49 +0200)
src/kds_s2000w_handler.c
src/kds_s2000w_handler.h

index 92e8d717f6e56bf6c7b45b220564cd78a6d7078d..73a9ae6d5235edaf111a4803b91ffafb9fd81fff 100644 (file)
@@ -13,7 +13,7 @@
 #define DEVICE_NAME "kds_s2000w_net"
 #define ATTEMPT 30
 
-uint32_t _kds_s2000w_handler_find_first_data_byte(const imagedata* image)
+uint32_t _kds_s2000w_handler_find_first_data_byte(const imagedata_t* image)
 {
        kds_s2000w_debug_printf(ALL, "sane_kds_s2000w_net_find_first_data_byte");
 
@@ -101,7 +101,7 @@ handler* kds_s2000w_handler_init()
 
        h->scanner_config = NULL;
        h->scan_status = malloc(sizeof(scan_status_t));
-       h->image = malloc(sizeof(imagedata));
+       h->image = malloc(sizeof(imagedata_t));
        h->coord = malloc(sizeof(coord_t));
 
        h->profile = 0;
index dc12fb27c70a0d0995e7fc9beb136cead1528eb5..92d4020cf195d33ca57b8bfcf99e74a331922794 100644 (file)
@@ -31,7 +31,7 @@ enum {
 typedef struct {
        size_t size;
        void* data;
-} imagedata;
+} imagedata_t;
 
 typedef struct {
        uint32_t format;
@@ -63,7 +63,7 @@ typedef struct {
        uint8_t state;
        json_object* scanner_config;
        scan_status_t* scan_status;
-       imagedata* image;
+       imagedata_t* image;
        coord_t* coord;
 } handler;