#include "kds_s2000w_debug.h"
#define SPACE 0x0a
+#define DEVICE_NAME "kds_s2000w_net"
uint32_t _kds_s2000w_handler_find_first_data_byte(imagedata* image)
{
{
kds_s2000w_debug_printf(ALL, "kds_s2000w_handler_open");
- if (strcmp(devicename, "kds_s2000w_net") != 0)
+ if (strcmp(devicename, DEVICE_NAME) != 0)
return;
handler* h = kds_s2000w_handler_init();
*handle = h;
_kds_s2000w_handler_load_config(h);
+ kds_s2000w_debug_printf_version(INFO, DEVICE_NAME, MAJOR, MINOR, PATCH);
// status code 408 waking up repeat open session
response* resp = NULL;
{
kds_s2000w_debug_printf(ALL, "sane_kds_s2000w_net_open");
- if (strcmp(devicename, "kds_s2000w_net") != 0)
+ if (strcmp(devicename, NAME) != 0)
return SANE_STATUS_INVAL;
kds_s2000w_handler_open(devicename, handle);
+
handler* h = (handler*) *handle;
if (h->state == NOTCONNECTED) {