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> &lt;<a href="mailto:hughsient@gmail.com">hughsient@gmail.com</a>&gt; 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>&gt; hi there,<br>&gt;<br>&gt; As a start, I'd like to take something like lshal.c and integrate it<br>&gt; with my own mainloop that I already have (not use glib's main loop).
<br>&gt; Is there an example somewhere like that?&nbsp;&nbsp;Is there simply a function I<br>&gt; can call from my mainloop that'll perform all the necessary<br>&gt; hal/dbus-related stuff.&nbsp;&nbsp;I've tried calling dbus_connection_dispatch()
<br>&gt; in my mainloop, but either that isn't the call i'm looking for or<br>&gt; 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>