hal -> udev migration for libgphoto2

David Zeuthen david at fubar.dk
Wed Jun 3 09:03:54 PDT 2009


Hi,

On Wed, 2009-06-03 at 12:47 +0200, Martin Pitt wrote:
> Martin Pitt [2009-06-03 12:39 +0200]:
> >   ENV{ID_CLASS}="camera"
> 
> Oops, that won't work well; my mobile phone is a camera, a music
> player, and a modem all at the same time. So this should perhaps be
> 
>   ENV{ID_CAMERA}="1"

I would suggest to use

 ENV{ID_GPHOTO2}="1"

and also use GPHOTO2 as a namespace, e.g.

 ENV{GPHOTO2_DRIVER}="PTP"

or something. Just makes it easier and more future-proof if there will
be a libgphoto3 or other usermode libraries providing access to cameras.

     David




More information about the devkit-devel mailing list