MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / generic_callback

Function generic_callback

TransceiverRAD1/fusb.cpp:39–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 */
38
39static void
40generic_callback(struct libusb_transfer *lut)
41{
42
43 // Fish out devhandle from endpoint
44 fusb_devhandle* dev_handle =
45 (fusb_devhandle *) ((fusb_ephandle *) lut->user_data)->get_fusb_devhandle();
46
47 dev_handle->pending_remove(lut);
48
49 if (lut->status == LIBUSB_TRANSFER_CANCELLED && dev_handle->_teardown() == 1)
50 {
51 free_lut (lut);
52 return;
53 }
54
55 ((fusb_ephandle *) lut->user_data)->completed_list_add(lut);
56
57}
58
59static libusb_transfer*
60alloc_lut (fusb_ephandle *self, int buffer_length, int endpoint,

Callers

nothing calls this directly

Calls 5

free_lutFunction · 0.85
get_fusb_devhandleMethod · 0.80
pending_removeMethod · 0.80
_teardownMethod · 0.80
completed_list_addMethod · 0.80

Tested by

no test coverage detected