Lines Matching defs:list
12 * notice, this list of conditions and the following disclaimer.
14 * notice, this list of conditions and the following disclaimer in the
275 libusb_get_device_list(libusb_context *ctx, libusb_device ***list)
287 if (list == NULL)
300 /* allocate device pointer list */
301 *list = malloc((i + 1) * sizeof(void *));
302 if (*list == NULL) {
313 libusb_unref_device((*list)[i - 1]);
316 free(*list);
317 *list = NULL;
321 /* get device into libUSB v1.0 list */
336 (*list)[i] = libusb_ref_device(dev);
339 (*list)[i] = NULL;
346 libusb_free_device_list(libusb_device **list, int unref_devices)
350 if (list == NULL)
354 for (i = 0; list[i] != NULL; i++)
355 libusb_unref_device(list[i]);
357 free(list);
1482 /* insert transfer into transfer head list */