summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-02-16 20:28:30 +0000
committerMarc Laukien <marc@zeroc.com>2004-02-16 20:28:30 +0000
commit23948cd6e11d1c059cbe2b56bbce49713b01e126 (patch)
treedf0c68781f4d367ed2a7c8326633ed0a81bb927f /cpp/src/slice2cpp/Gen.cpp
parentfile DescriptorVisitor.h was initially added on branch icepack_refactoring. (diff)
downloadice-23948cd6e11d1c059cbe2b56bbce49713b01e126.tar.bz2
ice-23948cd6e11d1c059cbe2b56bbce49713b01e126.tar.xz
ice-23948cd6e11d1c059cbe2b56bbce49713b01e126.zip
more AMI
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 381ec7f2b4e..acb44b529af 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -1245,8 +1245,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p)
C << sb;
// Async requests may only be sent twoway.
C << nl << "__checkTwowayOnly(\"" << p->name() << "\");";
- C << nl << "__cb->__setup(__reference());";
- C << nl << "__cb->__invoke" << spar << argsAMI << "__ctx" << epar << ';';
+ C << nl << "__cb->__invoke" << spar << "__reference()" << argsAMI << "__ctx" << epar << ';';
C << eb;
}
}
@@ -3342,6 +3341,10 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
vector<string> paramsDeclInvoke;
vector<string> argsInvoke;
+ paramsInvoke.push_back("const ::IceInternal::ReferencePtr&");
+ paramsDeclInvoke.push_back("const ::IceInternal::ReferencePtr& __ref");
+ argsInvoke.push_back("__ref");
+
TypePtr ret = p->returnType();
string retS = inputTypeToString(ret);
@@ -3412,7 +3415,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
C << nl << "try";
C << sb;
C << nl << "static const ::std::string __operation(\"" << p->name() << "\");";
- C << nl << "__prepare(__operation, " << "static_cast< ::Ice::OperationMode>(" << p->mode() << "), __ctx);";
+ C << nl << "__prepare(__ref, __operation, static_cast< ::Ice::OperationMode>(" << p->mode() << "), __ctx);";
writeMarshalCode(C, inParams, 0);
if(p->sendsClasses())
{