From: Bastian Dehn Date: Sat, 20 Jan 2024 17:58:40 +0000 (+0100) Subject: save condition for open X-Git-Tag: v1.0.0^2~508 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=b445f2ef0590ff109f91cd5d82a478f2559f3e31;p=sane-kds-s2000w-net.git save condition for open --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index f57a591..6130f89 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -1,5 +1,6 @@ #include #include +#include #include SANE_Option_Descriptor* optionDescripor = NULL; @@ -38,7 +39,9 @@ SANE_Status _sane_kds_s2000w_net_get_devices(SANE_Device*** device_list, SANE_Status _sane_kds_s2000w_net_open(SANE_String_Const devicename, SANE_Handle handle) { - printf("kds_s2000w_net open\n"); + if (strcmp(devicename, "kds_s2000w_net") != 0) { + return SANE_STATUS_INVAL; + } return SANE_STATUS_GOOD; }