summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Volz <andreas@er00923n.(none)>2011-02-14 23:33:31 +0100
committerAndreas Volz <andreas@er00923n.(none)>2011-02-14 23:33:31 +0100
commit466931e52791521eb648ae21c614105e913270d4 (patch)
tree324950f3b7b8b3548317f4259d464da564790ab6
parentf9e5171acefec586412f99bfad5896078feec59c (diff)
downloaddbus-c++-466931e52791521eb648ae21c614105e913270d4.tar.gz
and one more example
-rw-r--r--examples/echo/echo-introspect.xml6
-rw-r--r--examples/echo/echo-server.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/echo/echo-introspect.xml b/examples/echo/echo-introspect.xml
index 8a4ded5..c276eb9 100644
--- a/examples/echo/echo-introspect.xml
+++ b/examples/echo/echo-introspect.xml
@@ -31,5 +31,11 @@
<arg type="a(a(uu)s)" name="array" direction="out" />
</method>
+ <method name="Foo2">
+ <arg type="i" name="result" direction="out" />
+ <arg type="i" name="direction" direction="in" />
+ <arg type="a(a(uu)s)" name="array" direction="out" />
+ </method>
+
</interface>
</node>
diff --git a/examples/echo/echo-server.h b/examples/echo/echo-server.h
index d0a3a0a..491a7d8 100644
--- a/examples/echo/echo-server.h
+++ b/examples/echo/echo-server.h
@@ -26,6 +26,8 @@ public:
std::map< std::string, std::string > Info();
std::vector< ::DBus::Struct< std::vector< ::DBus::Struct< uint32_t, uint32_t > >, std::string > > Foo() {};
+
+ void Foo2(const int32_t& direction, int32_t& result, std::vector< ::DBus::Struct< std::vector< ::DBus::Struct< uint32_t, uint32_t > >, std::string > >& array) {};
};
#endif//__DEMO_ECHO_SERVER_H