diff options
-rw-r--r-- | examples/echo/echo-introspect.xml | 6 | ||||
-rw-r--r-- | examples/echo/echo-server.h | 2 |
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 |