summaryrefslogtreecommitdiff
path: root/streamdeck.h
diff options
context:
space:
mode:
authorJoshua Liu <joshua.liu@sourceobby.com>2025-04-30 16:29:48 -0400
committerJoshua Liu <joshua.liu@sourceobby.com>2025-04-30 16:29:48 -0400
commitdd58ddd94dfecbe378f3a0fc190a5f219321acc1 (patch)
tree81e6907aa0d24ce92fccc6a9ee9c180d72d9d260 /streamdeck.h
feat: inital commit, mostly moving files from old repository. streamdeck.c now contains basic HIDAPI implementations, util library is still mostly empty
Diffstat (limited to 'streamdeck.h')
-rw-r--r--streamdeck.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/streamdeck.h b/streamdeck.h
new file mode 100644
index 0000000..150623b
--- /dev/null
+++ b/streamdeck.h
@@ -0,0 +1,18 @@
+#include <assert.h>
+#include <string.h>
+#include <stdbool.h>
+#include <libusb-1.0/libusb.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <hidapi/hidapi.h>
+#define IMAGE_REPORT_LENGTH 8191
+
+typedef struct Image image;
+typedef struct Key key;
+typedef struct Screen screen;
+typedef struct Streamdeck streamdeck;
+typedef struct Handler handler;
+
+int connect();
+int close();
+handler* create_hid_handler();