From 330a880e9d396815a51d70768a5d2cd12aacbca9 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 21 Apr 2009 14:26:54 +0000 Subject: File missed in previous commit. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@767158 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/rubygen/framing.0-10/Session.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cpp/rubygen') diff --git a/cpp/rubygen/framing.0-10/Session.rb b/cpp/rubygen/framing.0-10/Session.rb index e495f8adb7..5abed07150 100644 --- a/cpp/rubygen/framing.0-10/Session.rb +++ b/cpp/rubygen/framing.0-10/Session.rb @@ -77,9 +77,9 @@ end class ContentField # For extra content parameters def cppname() "content" end - def signature() "const MethodContent& content" end - def sig_default() signature+"="+"DefaultContent(std::string())" end - def unpack() "p[arg::content|DefaultContent(std::string())]"; end + def signature() "const Message& content" end + def sig_default() signature+"="+"Message(std::string())" end + def unpack() "p[arg::content|Message(std::string())]"; end def doc() "Message content"; end end @@ -161,6 +161,8 @@ class SessionNoKeywordGen < CppGen include @classname include "qpid/framing/all_method_bodies.h" include "qpid/client/SessionImpl.h" + include "qpid/client/MessageImpl.h" + include "qpid/client/PrivateImplPrivate.h" namespace(@namespace) { genl "using namespace framing;" session_methods(sync_default).each { |m| @@ -172,7 +174,7 @@ class SessionNoKeywordGen < CppGen genl "#{m.body_name} body(#{args});"; genl "body.setSync(sync);" sendargs="body" - sendargs << ", content" if m.content + sendargs << ", *privateImplGetPtr(content)" if m.content async_retval="#{m.return_type(true)}(impl->send(#{sendargs}), impl)" if @async then genl "return #{async_retval};" -- cgit v1.2.1