[patch] first pass at "Computer"
David Zeuthen
david at fubar.dk
Wed Jul 21 14:36:01 PDT 2004
On Wed, 2004-07-21 at 17:16 -0400, Joe Shaw wrote:
> Hi,
>
> Attached is a pretty lame patch which changes the uber-cool "City of
> Lost Devices" to the much more white-bread "Computer" device. It
> changes a little bit of nomenclature and removes some dead code, but the
> only really interesting part to it is that it uses the tdl_to_gdl
> functions to set info.parent to the computer device if it isn't already
> set. I'm not totally sure this is the best way to go about it, although
> it seems to be the easiest.
>
Looks good and makes pretty good sense to use the tdl_to_gdl functions
in my opinion.
One thing we probably want for the computer HalDevice would be callouts;
I suspect external things to HAL like xorg.version, os.name, os.release
etc. may be set there (by just checking/reading e.g. /etc/fedora-release
on Fedora and so on). We might want to set stuff on the HalDevice like
kernel.name, kernel.version in hal using uname(2), I suppose?
We could also, in the future, go crazy and define other properties on
computer like whether it's a laptop etc. and use dmidecode on x86
platforms to probe for that (and override using .fdi files or callout
since dmi data is unreliable) but perhaps we should wait a bit with
that; heh :-)
Btw, I'm just making these property names up, haven't given it much
thought what to include and how to name it :-). I think that the goal of
having such properties would be to have more information when merging
from device information files; secondary goals (crackful?) could be use
of the icon for "Computer" in Nautilus - huhhoh, /me hides ;-)
Cheers,
David
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list