From 29c98daf9d09d3ad592cc1cde82f7a019dda0737 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Fri, 19 Jan 2024 18:50:47 +0100 Subject: [PATCH] fix method signature --- src/kds_s2000w_net.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 1ebd621..b22c215 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -15,7 +15,7 @@ SANE_Status _sane_kds_s2000w_net_init(SANE_Int* version_code, SANE_Auth_Callback } *version_code = SANE_VERSION_CODE(1, 0, 0); - printf("init: version_code %ui", version_code); + printf("init: version_code %ui\n", version_code); printf("init: kds_s2000w_net init\n"); return SANE_STATUS_GOOD; @@ -26,19 +26,9 @@ void _sane_kds_s2000w_net_exit(void) printf("kds_s2000w_net exit\n"); } -SANE_Status _sane_kds_s2000w_net_get_devices(SANE_String_Const devicename, - SANE_Handle* handle) +SANE_Status _sane_kds_s2000w_net_get_devices(SANE_Device*** device_list, + SANE_Bool local_only) { - if (devicename == NULL) { - printf("get devices: devicename is null\n"); - return SANE_STATUS_INVAL; - } - - if (handle == NULL) { - printf("get devices: handle is null\n"); - return SANE_STATUS_INVAL; - } - printf("kds_s2000w_net get devices\n"); return SANE_STATUS_GOOD; -- 2.39.5