integrate with my own mainloop

Richard Hughes hughsient at gmail.com
Thu Sep 29 15:54:33 PDT 2005


On Thu, 2005-09-29 at 15:49 -0700, Tom Flynn wrote:
> hi there,
> 
> As a start, I'd like to take something like lshal.c and integrate it
> with my own mainloop that I already have (not use glib's main loop).
> Is there an example somewhere like that?  Is there simply a function I
> can call from my mainloop that'll perform all the necessary
> hal/dbus-related stuff.  I've tried calling dbus_connection_dispatch()
> in my mainloop, but either that isn't the call i'm looking for or
> there's other calls I need to make.

Have you tried looking at the gnome-volume-manager and
gnome-power-manager source codes?

I've used a pure glib dbus hal interface, but I think g-v-m uses libhal.

Hope this helps,

Richard.



More information about the hal mailing list