summaryrefslogtreecommitdiff
path: root/backend/epsonds-net.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:29:05 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:29:05 +0200
commit324a8a71bb7d9e4f8bc49b6bc47efaf9fb58282e (patch)
treebd2d48a139bfbe869f4f49359b63097931a45e7b /backend/epsonds-net.h
parent2ca8a81bd0d99fe4d75c229d0e988d8ef710285f (diff)
parent1edb02101a9306fc711cd422ed507d18165b1691 (diff)
Merge branch 'release/experimental/1.0.27-1_experimental1'experimental/1.0.27-1_experimental1
Diffstat (limited to 'backend/epsonds-net.h')
-rw-r--r--backend/epsonds-net.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/epsonds-net.h b/backend/epsonds-net.h
new file mode 100644
index 0000000..f7b173e
--- /dev/null
+++ b/backend/epsonds-net.h
@@ -0,0 +1,16 @@
+#ifndef _EPSONDS_NET_H_
+#define _EPSONDS_NET_H_
+
+#include <sys/types.h>
+#include "../include/sane/sane.h"
+
+extern int epsonds_net_read(struct epsonds_scanner *s, unsigned char *buf, ssize_t buf_size,
+ SANE_Status *status);
+extern int epsonds_net_write(struct epsonds_scanner *s, unsigned int cmd, const unsigned char *buf,
+ size_t buf_size, size_t reply_len,
+ SANE_Status *status);
+extern SANE_Status epsonds_net_lock(struct epsonds_scanner *s);
+extern SANE_Status epsonds_net_unlock(struct epsonds_scanner *s);
+extern SANE_Status epsonds_net_request_read(epsonds_scanner *s, size_t len);
+
+#endif