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.<br>
<br>
Hal/DBus looks to be perfect for what I want, if only I can figure out how to integrate it with my own mainloop.<br>
<br>
any ideas?<br>
-tom<br><br><div><span class="gmail_quote">On 9/29/05, <b class="gmail_sendername">Richard Hughes</b> <<a href="mailto:hughsient@gmail.com">hughsient@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 2005-09-29 at 15:49 -0700, Tom Flynn wrote:<br>> hi there,<br>><br>> As a start, I'd like to take something like lshal.c and integrate it<br>> with my own mainloop that I already have (not use glib's main loop).
<br>> Is there an example somewhere like that? Is there simply a function I<br>> can call from my mainloop that'll perform all the necessary<br>> hal/dbus-related stuff. I've tried calling dbus_connection_dispatch()
<br>> in my mainloop, but either that isn't the call i'm looking for or<br>> there's other calls I need to make.<br><br>Have you tried looking at the gnome-volume-manager and<br>gnome-power-manager source codes?<br>
<br>I've used a pure glib dbus hal interface, but I think g-v-m uses libhal.<br><br>Hope this helps,<br><br>Richard.<br><br></blockquote></div><br>