Simple ACPI/PMU data extraction routine
Sjoerd Simons
sjoerd at luon.net
Tue Jan 18 04:49:48 PST 2005
On Tue, Jan 18, 2005 at 12:05:18PM +0000, Richard Hughes wrote:
> On a similar sort of vein, to do a directory list withing HAL, should we be
> using:
>
> 1. glib g_dir_open and g_dir_read_name?
> I've seen this in the HAL code already, but I thought the concensus was that
> we should move away from glib...
> I myself like the glib bindings (no need to re-invent the wheel), but the
> will the KDE camp complain about the glib dependancy? Does KDE use any
> part of HAL?
> 2. non-glib scandir (and all the ".." and sorting uglyness)
> To keep everything using the standard header <dirent.h>
I'm very very much in favour of using glib funcions where possible. It has got
a lot of very nice utility functions and i don't think it's usefull recreating
several of them in hal.. And above all it's very portable and well-tested.
For what the KDE camp is concerned, they are going to use hal/dbus in KDE 3.4..
Also they seem to be going the gstreamer way, which also drags in glib as a
dependency anyway..
IMHO people should stop thinking about glib as a gnome/gtk thing, but more as a
general utility library..
Sjoerd
--
All science is either physics or stamp collecting.
-- Ernest Rutherford
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list