MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / new_hid_device

Function new_hid_device

lib/hidapi/linux/hid.c:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87static hid_device *new_hid_device(void)
88{
89 hid_device *dev = (hid_device*) calloc(1, sizeof(hid_device));
90 if (dev == NULL) {
91 return NULL;
92 }
93
94 dev->device_handle = -1;
95 dev->blocking = 1;
96 dev->last_error_str = NULL;
97 dev->device_info = NULL;
98
99 return dev;
100}
101
102
103/* The caller must free the returned string with free(). */

Callers 1

hid.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected