aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/openpixelcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/openpixelcontrol.h')
-rw-r--r--backends/openpixelcontrol.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/backends/openpixelcontrol.h b/backends/openpixelcontrol.h
index f1061ea..658bbf0 100644
--- a/backends/openpixelcontrol.h
+++ b/backends/openpixelcontrol.h
@@ -31,6 +31,18 @@ typedef struct /*_openpixel_hdr*/ {
} openpixel_header;
#pragma pack(pop)
+typedef struct /*_openpixel_client*/ {
+ int fd;
+ ssize_t buffer;
+ openpixel_header hdr;
+ size_t offset;
+ size_t left;
+ union {
+ uint8_t u8[2];
+ uint16_t u16;
+ } boundary;
+} openpixel_client;
+
typedef struct {
enum {
rgb8 = 0,
@@ -43,6 +55,5 @@ typedef struct {
int dest_fd;
int listen_fd;
size_t clients;
- int* client_fd;
- size_t* bytes_left;
+ openpixel_client* client;
} openpixel_instance_data;