summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-11-25 15:05:41 +0100
committerBenoit Foucher <benoit@zeroc.com>2009-11-25 15:05:41 +0100
commit2fca2c1309c4991b21ff956709068122f19eef4a (patch)
treeb90e6fe1450508f5ce2962e21627a4535414e1a6 /cpp/src/slice2cpp/Gen.cpp
parentUpdate depends for SQL directories (diff)
downloadice-2fca2c1309c4991b21ff956709068122f19eef4a.tar.bz2
ice-2fca2c1309c4991b21ff956709068122f19eef4a.tar.xz
ice-2fca2c1309c4991b21ff956709068122f19eef4a.zip
- Cleaned up test/Ice/operations test
- Added test/Ice/ami test - sent callback is now always called
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 83198bcdd8e..1b0dd3d0294 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -2563,10 +2563,9 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p)
H << eb;
H << sp << nl << "::Ice::AsyncResultPtr begin_" << name << spar << paramsDeclAMI
- << "const ::Ice::Context& __ctx"
- << "const ::Ice::LocalObjectPtr& __cookie = 0" << epar;
+ << "const ::Ice::Context& __ctx" << epar;
H << sb;
- H << nl << "return begin_" << name << spar << argsAMI << "&__ctx" << "::IceInternal::__dummyCallback" << "__cookie"
+ H << nl << "return begin_" << name << spar << argsAMI << "&__ctx" << "::IceInternal::__dummyCallback" << "0"
<< epar << ';';
H << eb;
@@ -2865,7 +2864,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p)
C << eb;
C << nl << "else";
C << sb;
- C << nl << "__del = ::Ice::newCallback(__cb);";
+ C << nl << "__del = ::Ice::newAMICallback(__cb);";
C << eb;
}
C << nl << "::Ice::AsyncResultPtr __ar = begin_" << name << spar << argsAMI << "0, __del" << epar << ';';
@@ -2906,7 +2905,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p)
C << eb;
C << nl << "else";
C << sb;
- C << nl << "__del = ::Ice::newCallback(__cb);";
+ C << nl << "__del = ::Ice::newAMICallback(__cb);";
C << eb;
}
C << nl << "::Ice::AsyncResultPtr __ar = begin_" << name << spar << argsAMI << "&__ctx" << "__del" << epar
@@ -5374,7 +5373,7 @@ Slice::Gen::AsyncCallbackTemplateVisitor::generateOperation(const OperationPtr&
}
H << sp << nl << "typedef void (T::*Exception)(const ::Ice::Exception&" << comCookieT << ");";
- H << nl << "typedef void (T::*Sent)(" << cookieT << ");";
+ H << nl << "typedef void (T::*Sent)(bool" << comCookieT << ");";
if(p->returnsData())
{
//
@@ -5533,7 +5532,7 @@ Slice::Gen::AsyncCallbackTemplateVisitor::generateOperation(const OperationPtr&
H << "void (T::*cb)(" << cookieT << "),";
}
H << "void (T::*excb)(" << "const ::Ice::Exception&" << comCookieT << ") = 0,";
- H << "void (T::*sentcb)(" << cookieT << ") = 0)";
+ H << "void (T::*sentcb)(bool" << comCookieT << ") = 0)";
H << sb;
if(withCookie)
{
@@ -6337,9 +6336,9 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
H << sb;
H << nl << "ice_exception(ex);";
H << eb;
- H << nl << "void __sent()";
+ H << nl << "void __sent(bool sentSynchronously)";
H << sb;
- H << nl << "AMICallbackBase::__sent();";
+ H << nl << "AMICallbackBase::__sent(sentSynchronously);";
H << eb;
H << eb << ';';
H << sp << nl << "typedef ::IceUtil::Handle< " << classScopedAMI << '_' << name << "> " << classNameAMI