From: Bastian Dehn Date: Thu, 18 Jan 2024 19:31:30 +0000 (+0100) Subject: add init and exit method X-Git-Tag: v1.0.0^2~528 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=18e1510ee2f423ae635b9f7ddd7b2f0ede40929a;p=sane-kds-s2000w-net.git add init and exit method --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 0d9185c..aa7d7a2 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -1,2 +1,17 @@ +#include #include +SANE_Status _sane_kds_s2000w_net_init(SANE_Int * version_code, SANE_Auth_Callback authorize) +{ + SANE_String_Const resource = "kds_s2000w_net"; + SANE_Char* user = ""; + SANE_Char* pass = ""; + + printf("Hello sane init\n"); + authorize(resource, user, pass); +} + +void _sane_kds_s2000w_net_exit(void) +{ + printf("Bye sane exit\n"); +} \ No newline at end of file