summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Util.cpp
diff options
context:
space:
mode:
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");