aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */