summaryrefslogtreecommitdiff
path: root/streamdeck.h
diff options
context:
space:
mode:
authorJoshua Liu <joshua.liu@sourceobby.com>2025-05-18 22:59:36 -0400
committerJoshua Liu <joshua.liu@sourceobby.com>2025-05-18 22:59:36 -0400
commit98d6ca6cf4adc75f3016a7fd4b83950e8f96fdd3 (patch)
tree835e6308e6e49b2f48eb1256e45226e860308df1 /streamdeck.h
parentc56742e26dbf9c0f12fe78e22f551288dbfb5896 (diff)
feat: implemented several of the functions, added some more function declarations
Diffstat (limited to 'streamdeck.h')
-rw-r--r--streamdeck.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/streamdeck.h b/streamdeck.h
index 150623b..34b1e0a 100644
--- a/streamdeck.h
+++ b/streamdeck.h
@@ -1,10 +1,13 @@
#include <assert.h>
-#include <string.h>
+// #include <string.h>
#include <stdbool.h>
#include <libusb-1.0/libusb.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <hidapi/hidapi.h>
+// #include <stdlib.h>
+// #include <stdio.h>
+// #include <hidapi/hidapi.h>
+
+#include "util.h"
+
#define IMAGE_REPORT_LENGTH 8191
typedef struct Image image;
@@ -13,6 +16,8 @@ typedef struct Screen screen;
typedef struct Streamdeck streamdeck;
typedef struct Handler handler;
-int connect();
+streamdeck* connect(handler* deck);
int close();
-handler* create_hid_handler();
+int reset(handler* deck);
+int resetkeystream(handler* deck);
+