[patch] gobject sender and pid

David Zeuthen david at fubar.dk
Mon Mar 13 12:15:17 PST 2006


On Mon, 2006-03-13 at 08:26 +0000, Ross Burton wrote:
> 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);

Oh, do I just have to put some magic in my hand-written XML or how is
this supposed to work? Please don't tell me that I have to write it by
hand; it's so nice with the auto-generated glue.

The docs are a bit sparse so if anyone got a pointer, please tell me.

Thanks,
David




More information about the dbus mailing list