summaryrefslogtreecommitdiff
path: root/gio/src/dbusconnection.ccg
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2011-01-10 02:27:31 -0500
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2011-01-10 02:27:31 -0500
commitd36542c993bf2abaeef926f31b5736856c413f79 (patch)
tree3975da8b82bef81d822d1dace1e7b97d8a3d675f /gio/src/dbusconnection.ccg
parentf23cecd5a7a242688abf36b433ae8c4c099f06c5 (diff)
downloadglibmm-d36542c993bf2abaeef926f31b5736856c413f79.tar.gz
DBus: Add a peer example to test the DBusServer class.
* gio/src/dbusconnection.{ccg,hg}: Reorder the VariantBase 'parameters' parameter in the call*() methods to come after the method_name parameter. * gio/src/dbusintrospection.hg: Use refreturn for methods where the C API does not automatically reference the return. * gio/src/dbusserver.{ccg,hg}: Add non-observable constructors and create() methods. * glib/src/variant.{ccg,hg} (create_tuple): Renamed from create(). Write this method to be more specific for tuples (it's probably the only case where this method might be used). Dealing with tuples still feels awkward with the method. Maybe there's a better way. * examples/Makefile.am: * examples/dbus/peer.cc: * examples/dbus/userbus.cc: * examples/dbus/well-known-address-client.cc: Add the new server/client peer example (named peer). The example crashes because the C API seems to not deal with empty strings "" well, but at least there is now an example. Making sure it runs well is necessary. Also rename the previous example to userbus.cc.
Diffstat (limited to 'gio/src/dbusconnection.ccg')
-rw-r--r--gio/src/dbusconnection.ccg8
1 files changed, 4 insertions, 4 deletions
diff --git a/gio/src/dbusconnection.ccg b/gio/src/dbusconnection.ccg
index 039a0b8b..c467501e 100644
--- a/gio/src/dbusconnection.ccg
+++ b/gio/src/dbusconnection.ccg
@@ -822,12 +822,12 @@ void DBusConnection::call(
const Glib::ustring& object_path,
const Glib::ustring& interface_name,
const Glib::ustring& method_name,
+ const Glib::VariantBase& parameters,
const SlotAsyncReady& slot,
const Glib::RefPtr<Cancellable>& cancellable,
int timeout_msec,
const Glib::ustring& bus_name,
DBusCallFlags flags,
- const Glib::VariantBase& parameters,
const Glib::VariantType& reply_type
)
{
@@ -848,11 +848,11 @@ void DBusConnection::call(
const Glib::ustring& object_path,
const Glib::ustring& interface_name,
const Glib::ustring& method_name,
+ const Glib::VariantBase& parameters,
const SlotAsyncReady& slot,
int timeout_msec,
const Glib::ustring& bus_name,
DBusCallFlags flags,
- const Glib::VariantBase& parameters,
const Glib::VariantType& reply_type
)
{
@@ -886,11 +886,11 @@ void DBusConnection::call_sync(
const Glib::ustring& object_path,
const Glib::ustring& interface_name,
const Glib::ustring& method_name,
+ const Glib::VariantBase& parameters,
const Glib::RefPtr<Cancellable>& cancellable,
int timeout_msec,
const Glib::ustring& bus_name,
DBusCallFlags flags,
- const Glib::VariantBase& parameters,
const Glib::VariantType& reply_type
)
{
@@ -915,10 +915,10 @@ void DBusConnection::call_sync(
const Glib::ustring& object_path,
const Glib::ustring& interface_name,
const Glib::ustring& method_name,
+ const Glib::VariantBase& parameters,
int timeout_msec,
const Glib::ustring& bus_name,
DBusCallFlags flags,
- const Glib::VariantBase& parameters,
const Glib::VariantType& reply_type
)
{