summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Util.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/Util.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/Util.cpp')
-rw-r--r--py/modules/IcePy/Util.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/py/modules/IcePy/Util.cpp b/py/modules/IcePy/Util.cpp
index ec835c0a1ec..c55c4a20928 100644
--- a/py/modules/IcePy/Util.cpp
+++ b/py/modules/IcePy/Util.cpp
@@ -877,6 +877,14 @@ IcePy::getIdentity(PyObject* p, Ice::Identity& ident)
extern "C"
PyObject*
+IcePy_version(PyObject* /*self*/)
+{
+ string s = ICE_STRING_VERSION;
+ return IcePy::createString(s);
+}
+
+extern "C"
+PyObject*
IcePy_identityToString(PyObject* /*self*/, PyObject* args)
{
PyObject* identityType = IcePy::lookupType("Ice.Identity");