From: Bastian Dehn Date: Fri, 17 Oct 2025 16:49:58 +0000 (+0200) Subject: change rename imagedata type X-Git-Tag: v1.1.14^2~16 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=ba310237e07c21c6812dab47d91403104a44ced4;p=sane-kds-s2000w-net.git change rename imagedata type --- diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c index 92e8d71..73a9ae6 100644 --- a/src/kds_s2000w_handler.c +++ b/src/kds_s2000w_handler.c @@ -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; diff --git a/src/kds_s2000w_handler.h b/src/kds_s2000w_handler.h index dc12fb2..92d4020 100644 --- a/src/kds_s2000w_handler.h +++ b/src/kds_s2000w_handler.h @@ -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;