aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-05-20 20:44:37 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-05-20 20:44:37 +0000
commit4c931544631a8968cd44030940cbae071bed0e61 (patch)
treefa6a44df3508ac5522ecaaf5b276b2a1f830028c
parentfccb2308e4d0cce01f2f949256aa3d880fd945c9 (diff)
created header so that [linuxhid] can share code
svn path=/trunk/externals/hcs/hid/; revision=3044
-rw-r--r--hid_linux.c1
-rw-r--r--hid_linux.h14
2 files changed, 15 insertions, 0 deletions
diff --git a/hid_linux.c b/hid_linux.c
index aa22425..92b589c 100644
--- a/hid_linux.c
+++ b/hid_linux.c
@@ -1,3 +1,4 @@
+/* this code only works for Linux kernels */
#ifdef __linux__
diff --git a/hid_linux.h b/hid_linux.h
new file mode 100644
index 0000000..a5d978e
--- /dev/null
+++ b/hid_linux.h
@@ -0,0 +1,14 @@
+#ifndef _HID_LINUX_H
+#define _HID_LINUX_H
+
+
+/*
+ * these are exported so they can be used in the implementation of [linuxhid]
+ */
+void hid_print(t_hid* x);
+t_int hid_open_device(t_hid *x, t_int device_number);
+t_int hid_close_device(t_hid *x);
+t_int hid_build_device_list(t_hid *x);
+
+
+#endif /* ! _HID_LINUX_H */