diff options
author | Robert McQueen <robot101@debian.org> | 2005-11-15 19:34:33 +0000 |
---|---|---|
committer | Robert McQueen <robot101@debian.org> | 2005-11-15 19:34:33 +0000 |
commit | c33af17b934fcc8528b393ed2dca603e4940e6b3 (patch) | |
tree | 1fba4fb19f6768a0b42f317628d34b9bcf771ee8 /dbus/dbus-glib-lowlevel.h | |
parent | b5e4d26adec0a9ec37a1bae7aeb5a68344b78ebf (diff) |
2005-11-15 Robert McQueen <robot101@debian.org>
* dbus/dbus-glib-lowlevel.h, glib/dbus-gobject.c: Patch from Rob
Taylor to add two methods, dbus_g_method_return_get_reply and
dbus_g_method_return_send_reply, to allow you to get the reply
message from a DBusGMethodInvocation, append arbitrary stuff to it,
and send it. The GLib bindings can't marshal a return value of
something like a(s) if the array is empty - ultimately they should be
made to heed the signature of the out arguments as the Python bindings
now can, but this is a workable interim solution which might have
other applications.
Diffstat (limited to 'dbus/dbus-glib-lowlevel.h')
-rw-r--r-- | dbus/dbus-glib-lowlevel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dbus/dbus-glib-lowlevel.h b/dbus/dbus-glib-lowlevel.h index 94132151..9f6fc84e 100644 --- a/dbus/dbus-glib-lowlevel.h +++ b/dbus/dbus-glib-lowlevel.h @@ -57,6 +57,10 @@ DBusMessage* dbus_g_message_get_message (DBusGMessage *gmessage); * g-functions anyhow) */ +DBusMessage * dbus_g_method_return_get_reply (DBusGMethodInvocation *context); + +void dbus_g_method_return_send_reply (DBusGMethodInvocation *context, DBusMessage *reply); + G_END_DECLS #endif /* DBUS_GLIB_LOWLEVEL_H */ |