The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/opengloves: Communication api change

authored by

Daniel Willmott and committed by
Moses Turner
74f14f24 0bed5850

+4 -6
+1 -1
src/xrt/drivers/opengloves/communication/bluetooth/opengloves_bt_serial.c
··· 41 41 } 42 42 43 43 static int 44 - opengloves_bt_write(struct opengloves_communication_device *ocdev, const uint8_t *data, size_t length) 44 + opengloves_bt_write(struct opengloves_communication_device *ocdev, const char *data, size_t length) 45 45 { 46 46 struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)ocdev; 47 47
+2 -4
src/xrt/drivers/opengloves/communication/opengloves_communication.h
··· 26 26 { 27 27 int (*read)(struct opengloves_communication_device *comm_dev, char *data, size_t size); 28 28 29 - int (*write)(struct opengloves_communication_device *comm_dev, const uint8_t *data, size_t size); 29 + int (*write)(struct opengloves_communication_device *comm_dev, const char *data, size_t size); 30 30 31 31 void (*destroy)(struct opengloves_communication_device *comm_dev); 32 32 }; ··· 38 38 } 39 39 40 40 static inline int 41 - opengloves_communication_device_write(struct opengloves_communication_device *comm_dev, 42 - const uint8_t *data, 43 - size_t size) 41 + opengloves_communication_device_write(struct opengloves_communication_device *comm_dev, const char *data, size_t size) 44 42 { 45 43 return comm_dev->write(comm_dev, data, size); 46 44 }
+1 -1
src/xrt/drivers/opengloves/communication/serial/opengloves_serial.c
··· 31 31 } 32 32 33 33 static int 34 - opengloves_serial_write(struct opengloves_communication_device *ocdev, const uint8_t *data, size_t length) 34 + opengloves_serial_write(struct opengloves_communication_device *ocdev, const char *data, size_t length) 35 35 { 36 36 struct opengloves_serial_device *osdev = (struct opengloves_serial_device *)ocdev; 37 37