[patch] gobject sender and pid

Ross Burton ross at burtonini.com
Mon Mar 13 00:26:43 PST 2006

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. 

If you server-side methods are async, then you can call:

gchar* dbus_g_method_get_sender (DBusGMethodInvocation *context);

Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

More information about the dbus mailing list