gracefully handle errors on socket-write
[hmcfgusb] / hmcfgusb.h
index e33f6e68fb051c55316d28dd9bf07b5b6c364a71..8a0751a1bcfa7b5b5f11ed555369138abbb6c984 100644 (file)
@@ -21,7 +21,7 @@
  * IN THE SOFTWARE.
  */
 
-typedef void (*hmcfgusb_cb_fn)(uint8_t *buf, int buf_len, void *data);
+typedef int (*hmcfgusb_cb_fn)(uint8_t *buf, int buf_len, void *data);
 
 struct hmcfgusb_dev {
        libusb_device_handle *usb_devh;
Impressum, Datenschutz