| 114 | static int return_data(hid_device *dev, unsigned char *data, size_t length); |
| 115 | |
| 116 | static hid_device *new_hid_device(void) |
| 117 | { |
| 118 | hid_device *dev = calloc(1, sizeof(hid_device)); |
| 119 | dev->blocking = 1; |
| 120 | |
| 121 | //pthread_mutex_init(&dev->mutex, NULL); |
| 122 | //pthread_cond_init(&dev->condition, NULL); |
| 123 | //pthread_barrier_init(&dev->barrier, NULL, 2); |
| 124 | |
| 125 | return dev; |
| 126 | } |
| 127 | |
| 128 | static void free_hid_device(hid_device *dev) |
| 129 | { |