diff options
author | Joshua Liu <joshua.liu@sourceobby.com> | 2025-04-30 16:29:48 -0400 |
---|---|---|
committer | Joshua Liu <joshua.liu@sourceobby.com> | 2025-04-30 16:29:48 -0400 |
commit | dd58ddd94dfecbe378f3a0fc190a5f219321acc1 (patch) | |
tree | 81e6907aa0d24ce92fccc6a9ee9c180d72d9d260 /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.h | 18 |
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(); |