89 while (!ctx->kill_handler_thread)
91 if (ctx->usb_ctx) libusb_handle_events(ctx->usb_ctx);
112 if (usb_ctx == NULL) {
113 ret = libusb_init(&ctx->usb_ctx);
114 ctx->own_usb_ctx = 1;
120 ctx->own_usb_ctx = 0;
121 ctx->usb_ctx = usb_ctx;
149 if (ctx->own_usb_ctx)
150 libusb_exit(ctx->usb_ctx);
164 if (ctx->own_usb_ctx)
uvc_error_t uvc_init(uvc_context_t **pctx, struct libusb_context *usb_ctx)
Initializes the UVC context.
enum uvc_error uvc_error_t
#define DL_FOREACH(head, el)
void * _uvc_handle_events(void *arg)
Implementation-specific UVC constants and structures.
void uvc_close(uvc_device_handle_t *devh)
Close a device.
void uvc_start_handler_thread(uvc_context_t *ctx)
struct uvc_context uvc_context_t
void uvc_exit(uvc_context_t *ctx)
Closes the UVC context, shutting down any active cameras.
struct uvc_device_handle uvc_device_handle_t