| 37 | */ |
| 38 | |
| 39 | static void |
| 40 | generic_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 | |
| 59 | static libusb_transfer* |
| 60 | alloc_lut (fusb_ephandle *self, int buffer_length, int endpoint, |
nothing calls this directly
no test coverage detected