summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-04-23 11:48:32 +0000
committerAlan Conway <aconway@apache.org>2009-04-23 11:48:32 +0000
commit98d144892f4214117881f5130e172a1ac74b03d5 (patch)
treed912907994bcc9cc2628e65402773cb8ec88f27e /qpid/cpp/rubygen
parentb2d4fade0cea9f415ffaed115c5fb9be5e78ff44 (diff)
downloadqpid-python-98d144892f4214117881f5130e172a1ac74b03d5.tar.gz
Apply PIMPL pattern to client::Completion and client::Future.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@767896 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen')
-rw-r--r--qpid/cpp/rubygen/framing.0-10/Session.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/rubygen/framing.0-10/Session.rb b/qpid/cpp/rubygen/framing.0-10/Session.rb
index 5abed07150..48a1608af0 100644
--- a/qpid/cpp/rubygen/framing.0-10/Session.rb
+++ b/qpid/cpp/rubygen/framing.0-10/Session.rb
@@ -163,6 +163,7 @@ class SessionNoKeywordGen < CppGen
include "qpid/client/SessionImpl.h"
include "qpid/client/MessageImpl.h"
include "qpid/client/PrivateImplPrivate.h"
+ include "qpid/client/CompletionImpl.h"
namespace(@namespace) {
genl "using namespace framing;"
session_methods(sync_default).each { |m|
@@ -175,7 +176,7 @@ class SessionNoKeywordGen < CppGen
genl "body.setSync(sync);"
sendargs="body"
sendargs << ", *privateImplGetPtr(content)" if m.content
- async_retval="#{m.return_type(true)}(impl->send(#{sendargs}), impl)"
+ async_retval="#{m.return_type(true)}(new CompletionImpl(impl->send(#{sendargs}), impl))"
if @async then
genl "return #{async_retval};"
else