integrate with my own mainloop

Tom Flynn flynnt at acm.org
Thu Sep 29 16:26:20 PDT 2005


just took a look at gnome-volume-manager...unfortunately, they call
dbus_connection_setup_with_g_main() like lshal.c does (g-v-m uses gtk which
uses glib if i understand correctly). I have a command-line app and I wish
to be able to run outside of X and with the minimum number of libraries
possible.

Hal/DBus looks to be perfect for what I want, if only I can figure out how
to integrate it with my own mainloop.

any ideas?
-tom

On 9/29/05, Richard Hughes <hughsient at gmail.com> wrote:
>
> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20050929/6d972aa6/attachment.html


More information about the hal mailing list