From 18e1510ee2f423ae635b9f7ddd7b2f0ede40929a Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Thu, 18 Jan 2024 20:31:30 +0100 Subject: [PATCH] add init and exit method --- src/kds_s2000w_net.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.39.5