MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / new_hid_device

Function new_hid_device

dependencies/hidapi/hidapi.c:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114static int return_data(hid_device *dev, unsigned char *data, size_t length);
115
116static 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
128static void free_hid_device(hid_device *dev)
129{

Callers 1

hidapi.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected