List supported burn speeds for CD writers

Danny Kukawka danny.kukawka at web.de
Fri Jan 13 02:34:47 PST 2006


On Friday 13 January 2006 07:16, Ryan Lortie wrote:
> I've written a patch that publishes the list of burn speeds that a drive
> supports as the 'write_speeds' property attached to CD burners.  It
> lists the (unique) supported speeds as a descending comma-separated
> list.  For example:
>
>   storage.cdrom.write_speeds = '7056,5645,4234,2822,2117'  (string)
>
> I had to do it this way since hal doesn't support the concept of lists
> of integers and the libhal interface doesn't even allow you to use lists
> of strings (in any case, I believe a comma-separated string to be better
> than a list of strings - far less overhead).

This is not right. We have already list of strings: strlist. You can use them 
instead of a comma.seperated string.

Cheers,

Danny


More information about the hal mailing list