MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / new_hid_device

Function new_hid_device

cpp/hidapi/windows/hid.cpp:137–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135};
136
137static hid_device *new_hid_device()
138{
139 hid_device *dev = (hid_device*) calloc(1, sizeof(hid_device));
140 dev->device_handle = INVALID_HANDLE_VALUE;
141 dev->blocking = TRUE;
142 dev->output_report_length = 0;
143 dev->input_report_length = 0;
144 dev->last_error_str = NULL;
145 dev->last_error_num = 0;
146 dev->read_pending = FALSE;
147 dev->read_buf = NULL;
148 memset(&dev->ol, 0, sizeof(dev->ol));
149 dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*inital state f=nonsignaled*/, NULL);
150
151 return dev;
152}
153
154
155static void register_error(hid_device *device, const char *op)

Callers 1

hid_open_pathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected