summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Init.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2008-01-31 15:58:05 -0800
committerMark Spruiell <mes@zeroc.com>2008-01-31 15:58:05 -0800
commitfa41f0057235e0b7434d224f3f794166d24ccd23 (patch)
treea47724b73b79a821e37adaf36c87f0fdfca074a6 /py/modules/IcePy/Init.cpp
parentbug 2335 - updating docu for db.jar (diff)
downloadice-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.cpp2
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,