diff options
| author | Alan Conway <aconway@apache.org> | 2009-04-21 14:26:54 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-04-21 14:26:54 +0000 |
| commit | 330a880e9d396815a51d70768a5d2cd12aacbca9 (patch) | |
| tree | 9f7360b7016dde67865fb02440b8c82b2b254d95 /cpp/rubygen | |
| parent | 97737547c7016dde844329ba79c3c84b2564268b (diff) | |
| download | qpid-python-330a880e9d396815a51d70768a5d2cd12aacbca9.tar.gz | |
File missed in previous commit.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@767158 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen')
| -rw-r--r-- | cpp/rubygen/framing.0-10/Session.rb | 10 |
1 files changed, 6 insertions, 4 deletions
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};" |
