[PATCH] pnp.ids

Sjoerd Simons sjoerd at luon.net
Mon Feb 7 14:05:45 PST 2005


On Mon, Feb 07, 2005 at 04:45:14PM -0500, David Zeuthen wrote:
> Sjoerd Simons wrote:
> >What's wrong with using files with fdi-like format for this.. Hal already 
> >has a
> >parser for those and it's so much more flexible..
> 
> Exactly - and one day we can download .fdi files on demand which is 
> helluva lot more flexible that getting some /usr/share/hwdata/pci.ids 
> file updated.

For now i would just generate them from the pci.ids (and usb ids file) and ask
the respective maintainers for a way to hook updating those files to updating
the fdi's..
> 
> Woow - Sjoerds view is even a bit more extreme than mine!

Heh
  
> >But then again, i've got a dislike for data build into binaries :)
> 
> These data represent facts; they only *change* if there is a bug. 
> Consider it an optimization - parsing XML is much slower than using an 
> O(log n) algorithm to look a PCI id table. And there are plenty PCI and 
> USB id's :-).

Maybe, but if your going into the fdi's view some cache might be nice anyway..
And you take the hit only when a new device appears.

PCI and USB ids keep being added.. Currently this means that when sarge 
releases and new hardware appears on the market, people can just run
update-{pci,usb}ids and hal will get the info it needs about new stuff. This
flexibility worth a lot imho. (And while i'm always debian-minded the same goes
for other distro's obviously)

  Sjoerd
-- 
Anyone who imagines that all fruits ripen at the same time
as the strawberries, knows nothing about grapes.
		-- Philippus Paracelsus
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list