initial support for video devices and printer ports
Kay Sievers
kay.sievers at vrfy.org
Tue Aug 31 14:46:53 PDT 2004
On Tue, 2004-08-31 at 21:01 +0200, Kay Sievers wrote:
> Attached is a patch to add:
>
> Support for v4l devices:
> http://vrfy.org/projects/hal/v4l.png
> o it supports v4l and v4l2
> (the v4l2 headers are missing on Fedora, so I copied the one struct in)
> o we need to define the capabilities ,it's just "video.FIXME" now
Here are basic properties instead of FIXME:
/* set defaults */
hal_device_property_set_bool (d, "video.can_capture", FALSE);
hal_device_property_set_bool (d, "video.can_output", FALSE);
hal_device_property_set_bool (d, "video.has_tuner", FALSE);
hal_device_property_set_bool (d, "video.has_audio", FALSE);
hal_device_property_set_int (d, "video.video_channel_count", 0);
hal_device_property_set_int (d, "video.audio_channel_count", 0);
hal_device_property_set_string (d, "video.version", "");
Thanks,
Kay
> Support for printer ports
> http://vrfy.org/projects/hal/Legacy_Parallel_Port.png
> o h-d-m got a new pict for the screenshots :)
> o changed the classdevice dispatcher to accept "usb|printer" as a filter,
> cause "printer" class can be both
> o we need to compute a udi, if we merge into the Computer
> o if we can't find a printer responding, we set the name to "Parallel Port"
> o printer_class_device accepts now devices without a sysdevice
> (coldplug probe needs support for this, now only working on reconnect)
>
> I used C99 initializers for the ClassDeviceHandler,
> if nobody objects, it I will change it all, after this is in.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-video-02.patch
Type: text/x-patch
Size: 15214 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20040831/184fb3b5/hal-video-02.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list