]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add init and exit method
authorBastian Dehn <hhaalo@arcor.de>
Thu, 18 Jan 2024 19:31:30 +0000 (20:31 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 18 Jan 2024 19:31:30 +0000 (20:31 +0100)
src/kds_s2000w_net.c

index 0d9185c0504dd94f822632a504ddc1730331f818..aa7d7a22a0fdcb61adb9831e0a51d592f3545c1c 100644 (file)
@@ -1,2 +1,17 @@
+#include <stdio.h>
 #include <sane/sane.h>
 
+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