On Mon, May 18, 2009 at 11:29 AM, Paulo Assis <[email protected]> wrote:
> Roberto,
> You can use udev to start a small application and use v4l2_capability struct
> to determine the device driver, if it is uvcvideo then it's a uvc device
> (just check libwebcam, it uses the same aproach).
>
> Best regards,
> Paulo

I think you should consider using directly libudev in your
application. You can add a monitor for the video4linux system and
filter devices that match a particular property (like ID_MODEL_ID,
ID_VENDOR_ID, ID_USB_DRIVER), with latest udev-extras you can even get
capabilities through udev with no extra ioctl.

See http://marc.info/?l=linux-hotplug&m=124196393502336&w=2 for some
sample code.

Ciao,
Filippo
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to