]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add handler file
authorBastian Dehn <hhaalo@arcor.de>
Sat, 20 Jan 2024 18:37:30 +0000 (19:37 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 20 Jan 2024 18:39:37 +0000 (19:39 +0100)
CMakeLists.txt
src/kds_s2000w_handler.c [new file with mode: 0644]
src/kds_s2000w_handler.h [new file with mode: 0644]
src/kds_s2000w_net.c

index 116890b6a9694e282bee9d2cfe437bbc1fb7d190..04b2c39cb7908ef66635ff4a8876b5d4686fecff 100644 (file)
@@ -6,7 +6,9 @@ find_library(SANE NAMES sane REQUIRED)
 find_package(CURL REQUIRED)
 
 add_library("sane-kds_s2000w_net"
-       SHARED "src/kds_s2000w_net.c")
+       SHARED
+       "src/kds_s2000w_net.c"
+       "src/kds_s2000w_handler.c")
 set_target_properties("sane-kds_s2000w_net" PROPERTIES VERSION 1)
 
 install(TARGETS "sane-kds_s2000w_net"
diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c
new file mode 100644 (file)
index 0000000..b9d66cc
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stddef.h>
+#include "kds_s2000w_handler.h"
+
+void* kds_s2000w_handler_open()
+{
+       return NULL;
+}
\ No newline at end of file
diff --git a/src/kds_s2000w_handler.h b/src/kds_s2000w_handler.h
new file mode 100644 (file)
index 0000000..a12477c
--- /dev/null
@@ -0,0 +1,3 @@
+#ifndef KDS_S2000W_HANDLER_H
+void* kds_s2000w_handler_open();
+#endif
\ No newline at end of file
index f786ea522c37d2bd5616b3dd1fe6f4fa98fc6d36..f7b21f583e2744612450a64914d7cde75b574888 100644 (file)
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sane/sane.h>
+#include "kds_s2000w_handler.h"
 
 SANE_Status _sane_kds_s2000w_net_init(SANE_Int* version_code, SANE_Auth_Callback authorize)
 {