diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-07-20 18:46:57 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-07-20 18:46:57 +0000 |
commit | 8e0054b0ec16e0312ae4c5471ed95a210dacbde4 (patch) | |
tree | 7c947fef0038dca7b5e47185ef0d84c943c0910b /py/modules/IcePy/Proxy.cpp | |
parent | ice_communicator changes (diff) | |
download | ice-8e0054b0ec16e0312ae4c5471ed95a210dacbde4.tar.bz2 ice-8e0054b0ec16e0312ae4c5471ed95a210dacbde4.tar.xz ice-8e0054b0ec16e0312ae4c5471ed95a210dacbde4.zip |
implementing ice_communicator in proxy
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r-- | py/modules/IcePy/Proxy.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp index 7516e2bbe39..400dc2d5db3 100644 --- a/py/modules/IcePy/Proxy.cpp +++ b/py/modules/IcePy/Proxy.cpp @@ -12,6 +12,7 @@ #endif #include <Proxy.h> #include <structmember.h> +#include <Communicator.h> #include <Connection.h> #include <Util.h> #include <Ice/Communicator.h> @@ -111,16 +112,14 @@ proxyRepr(ProxyObject* self) return PyString_FromString(const_cast<char*>(str.c_str())); } -#if 0 #ifdef WIN32 extern "C" #endif static PyObject* proxyIceCommunicator(ProxyObject* self) { - return; + return getCommunicatorWrapper(*self->communicator); } -#endif #ifdef WIN32 extern "C" @@ -1184,10 +1183,8 @@ proxyUncheckedCast(PyObject* /*self*/, PyObject* args) static PyMethodDef ProxyMethods[] = { -#if 0 { STRCAST("ice_communicator"), (PyCFunction)proxyIceCommunicator, METH_NOARGS, - PyDoc_STR(STRCAST("ice_communicator() -> Ice.CommunicatorPrx")) }, -#endif + PyDoc_STR(STRCAST("ice_communicator() -> Ice.Communicator")) }, { STRCAST("ice_toString"), (PyCFunction)proxyRepr, METH_NOARGS, PyDoc_STR(STRCAST("ice_toString() -> string")) }, { STRCAST("ice_isA"), (PyCFunction)proxyIceIsA, METH_VARARGS, |