diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-09-24 16:24:45 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-09-24 16:24:45 +0000 |
commit | 049b30300dc46afd8946de80fb01949cd117ea2f (patch) | |
tree | 9072e4c543166706d306a6fd913e8e0436c1739b /py/modules/IcePy/Util.cpp | |
parent | Changed prefix for inherited .NET framework methods. (diff) | |
download | ice-049b30300dc46afd8946de80fb01949cd117ea2f.tar.bz2 ice-049b30300dc46afd8946de80fb01949cd117ea2f.tar.xz ice-049b30300dc46afd8946de80fb01949cd117ea2f.zip |
adding generateUUID
Diffstat (limited to 'py/modules/IcePy/Util.cpp')
-rw-r--r-- | py/modules/IcePy/Util.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/py/modules/IcePy/Util.cpp b/py/modules/IcePy/Util.cpp index ae88192d3cc..9a94df001a1 100644 --- a/py/modules/IcePy/Util.cpp +++ b/py/modules/IcePy/Util.cpp @@ -10,6 +10,7 @@ #include <Util.h> #include <Ice/IdentityUtil.h> #include <Ice/LocalException.h> +#include <IceUtil/UUID.h> #include <Slice/PythonUtil.h> using namespace std; @@ -756,3 +757,11 @@ IcePy_stringToIdentity(PyObject* /*self*/, PyObject* args) return IcePy::createIdentity(id); } + +extern "C" +PyObject* +IcePy_generateUUID(PyObject* /*self*/) +{ + string uuid = IceUtil::generateUUID(); + return PyString_FromString(const_cast<char*>(uuid.c_str())); +} |