diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-12 17:32:00 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-12 17:32:00 +0000 |
commit | b764fe6ce04b1367522a20a518933cca3ae54c66 (patch) | |
tree | 9334709074a791244c90a5ea78240ba930a93524 /py/modules/IcePy/ObjectAdapter.cpp | |
parent | Fix (diff) | |
download | ice-b764fe6ce04b1367522a20a518933cca3ae54c66.tar.bz2 ice-b764fe6ce04b1367522a20a518933cca3ae54c66.tar.xz ice-b764fe6ce04b1367522a20a518933cca3ae54c66.zip |
Added createObjectAdapterWithRouter
Diffstat (limited to 'py/modules/IcePy/ObjectAdapter.cpp')
-rw-r--r-- | py/modules/IcePy/ObjectAdapter.cpp | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/py/modules/IcePy/ObjectAdapter.cpp b/py/modules/IcePy/ObjectAdapter.cpp index 9ade400daf8..3d28edd272a 100644 --- a/py/modules/IcePy/ObjectAdapter.cpp +++ b/py/modules/IcePy/ObjectAdapter.cpp @@ -1269,68 +1269,6 @@ adapterCreateReverseProxy(ObjectAdapterObject* self, PyObject* args) extern "C" #endif static PyObject* -adapterAddRouter(ObjectAdapterObject* self, PyObject* args) -{ - PyObject* proxyType = lookupType("Ice.RouterPrx"); - PyObject* proxy; - if(!PyArg_ParseTuple(args, STRCAST("O!"), proxyType, &proxy)) - { - return NULL; - } - - Ice::RouterPrx router = Ice::RouterPrx::uncheckedCast(getProxy(proxy)); - - assert(self->adapter); - try - { - AllowThreads allowThreads; // Release Python's global interpreter lock during blocking calls. - (*self->adapter)->addRouter(router); - } - catch(const Ice::Exception& ex) - { - setPythonException(ex); - return NULL; - } - - Py_INCREF(Py_None); - return Py_None; -} - -#ifdef WIN32 -extern "C" -#endif -static PyObject* -adapterRemoveRouter(ObjectAdapterObject* self, PyObject* args) -{ - PyObject* proxyType = lookupType("Ice.RouterPrx"); - PyObject* proxy; - if(!PyArg_ParseTuple(args, STRCAST("O!"), proxyType, &proxy)) - { - return NULL; - } - - Ice::RouterPrx router = Ice::RouterPrx::uncheckedCast(getProxy(proxy)); - - assert(self->adapter); - try - { - AllowThreads allowThreads; // Release Python's global interpreter lock during blocking calls. - (*self->adapter)->removeRouter(router); - } - catch(const Ice::Exception& ex) - { - setPythonException(ex); - return NULL; - } - - Py_INCREF(Py_None); - return Py_None; -} - -#ifdef WIN32 -extern "C" -#endif -static PyObject* adapterSetLocator(ObjectAdapterObject* self, PyObject* args) { PyObject* proxyType = lookupType("Ice.LocatorPrx"); @@ -1406,10 +1344,6 @@ static PyMethodDef AdapterMethods[] = PyDoc_STR(STRCAST("createDirectProxy(identity) -> Ice.ObjectPrx")) }, { STRCAST("createReverseProxy"), (PyCFunction)adapterCreateReverseProxy, METH_VARARGS, PyDoc_STR(STRCAST("createReverseProxy(identity) -> Ice.ObjectPrx")) }, - { STRCAST("addRouter"), (PyCFunction)adapterAddRouter, METH_VARARGS, - PyDoc_STR(STRCAST("addRouter(proxy) -> None")) }, - { STRCAST("removeRouter"), (PyCFunction)adapterRemoveRouter, METH_VARARGS, - PyDoc_STR(STRCAST("removeRouter(proxy) -> None")) }, { STRCAST("setLocator"), (PyCFunction)adapterSetLocator, METH_VARARGS, PyDoc_STR(STRCAST("setLocator(proxy) -> None")) }, { NULL, NULL} /* sentinel */ |