summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8116c40)
This will be used to retrieve the context in functions operating on
devices, in order to use the log calls which are going to be added.
struct _am7xxx_device {
libusb_device_handle *usb_device;
uint8_t buffer[AM7XXX_HEADER_WIRE_SIZE];
struct _am7xxx_device {
libusb_device_handle *usb_device;
uint8_t buffer[AM7XXX_HEADER_WIRE_SIZE];
}
memset(new_device, 0, sizeof(*new_device));
}
memset(new_device, 0, sizeof(*new_device));
+ new_device->ctx = ctx;
+
if (*devices_list == NULL) {
*devices_list = new_device;
} else {
if (*devices_list == NULL) {
*devices_list = new_device;
} else {