Lines Matching defs:handle
188 libusb_hotplug_callback_handle handle;
199 handle = malloc(sizeof(*handle));
200 if (handle == NULL)
211 handle->events = events;
212 handle->vendor = vendor_id;
213 handle->product = product_id;
214 handle->devclass = dev_class;
215 handle->fn = cb_fn;
216 handle->user_data = user_data;
220 if (libusb_hotplug_filter(ctx, handle, adev,
223 free(handle);
224 handle = NULL;
228 if (handle != NULL)
229 TAILQ_INSERT_TAIL(&ctx->hotplug_cbh, handle, entry);
233 *phandle = handle;
238 libusb_hotplug_callback_handle handle)
242 if (ctx == NULL || handle == NULL)
246 TAILQ_REMOVE(&ctx->hotplug_cbh, handle, entry);
249 free(handle);