[PATCH] libhal_ctx_get_dbus_connection method
David Zeuthen
david at fubar.dk
Sun Jan 22 19:45:36 PST 2006
On Jan 22, 2006, at 4:58 PM, Christopher Santero wrote:
> This is just an accessor method for LibHalContext. It would be useful
> in such cases where the application programmer would rather be passing
> a LibHalContext * around, but has to access the DBusConnection to send
> messages directly, because no equivalent function for those messages
> exists in libhal (e.g. libhal_volume_format).
Hmm, I'd rather we not do this.. it conflicts when you use libhal for
direct
connections I think. It seems you should rather change your program to
pass around a structure with both the LibHalContext* and the
DBusConnection* pointers...
Btw, D-BUS connection is shared within a process so you get the same
one with dbus_bus_get() (unless you use a direct connection but only
hal helpers would do that).
David
p.s. : I'm not ignoring the Format() methods patch, I just want to
land the
privilege stuff first...
More information about the hal
mailing list