[patch] gobject sender and pid
david at fubar.dk
Sun Mar 12 21:04:32 PST 2006
This time with the patch applied.
On Mon, 2006-03-13 at 00:03 -0500, David Zeuthen wrote:
> 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(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5277 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060313/8bb3773d/dbus-gobject-sender-and-bus-get-pid-1.bin
More information about the dbus