diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-01-31 15:58:05 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-01-31 15:58:05 -0800 |
commit | fa41f0057235e0b7434d224f3f794166d24ccd23 (patch) | |
tree | a47724b73b79a821e37adaf36c87f0fdfca074a6 /py/modules/IcePy/Init.cpp | |
parent | bug 2335 - updating docu for db.jar (diff) | |
download | ice-fa41f0057235e0b7434d224f3f794166d24ccd23.tar.bz2 ice-fa41f0057235e0b7434d224f3f794166d24ccd23.tar.xz ice-fa41f0057235e0b7434d224f3f794166d24ccd23.zip |
bug 2421 - add method to get Ice version in scripting languages
Diffstat (limited to 'py/modules/IcePy/Init.cpp')
-rw-r--r-- | py/modules/IcePy/Init.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/Init.cpp b/py/modules/IcePy/Init.cpp index fa7ead886c9..a162930ea13 100644 --- a/py/modules/IcePy/Init.cpp +++ b/py/modules/IcePy/Init.cpp @@ -29,6 +29,8 @@ extern "C" PyObject* Ice_registerTypes(PyObject*, PyObject*); static PyMethodDef methods[] = { + { STRCAST("version"), reinterpret_cast<PyCFunction>(IcePy_version), METH_NOARGS, + PyDoc_STR(STRCAST("version() -> string")) }, { STRCAST("identityToString"), reinterpret_cast<PyCFunction>(IcePy_identityToString), METH_VARARGS, PyDoc_STR(STRCAST("identityToString(id) -> string")) }, { STRCAST("stringToIdentity"), reinterpret_cast<PyCFunction>(IcePy_stringToIdentity), METH_VARARGS, |