[patch] gobject sender and pid

David Zeuthen david at fubar.dk
Sun Mar 12 21:03:49 PST 2006


Attached is a patch that enables the method handler on a GObject to
figure out who the sender is. I'm not sure this is the best way to do
this but I thought I'd send the patch anyway. I'd like to see this fixed
as I really need to know the sender. Without this patch the glib
bindings are not very useful for system bus stuff since you more often
than not needs to know who you are talking to. 

I've also added dbus_bus_get_unix_process_id() as a convenience
function.. note that the bus have exported this method for ages now;
this is only convenience.

OK to commit?


 $ diffstat dbus-gobject-sender-and-bus-get-pid-1.patch
 ChangeLog           |   14 +++++++++
 dbus/dbus-bus.c     |   74 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 dbus/dbus-bus.h     |    3 ++
 glib/dbus-gobject.c |    3 ++
 4 files changed, 94 insertions(+)

More information about the dbus mailing list