diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-04-30 11:57:21 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-04-30 11:57:21 +0200 |
commit | 06024a6fc1ceb70d70e41f93ba0016edefe36289 (patch) | |
tree | 40f4bdf32862e466d059bbf0dd1a7293aa522604 /py/modules/IcePy/Util.h | |
parent | Win32 fixes, C# port (diff) | |
download | ice-06024a6fc1ceb70d70e41f93ba0016edefe36289.tar.bz2 ice-06024a6fc1ceb70d70e41f93ba0016edefe36289.tar.xz ice-06024a6fc1ceb70d70e41f93ba0016edefe36289.zip |
Python port, added tests to Ice/info
Diffstat (limited to 'py/modules/IcePy/Util.h')
-rw-r--r-- | py/modules/IcePy/Util.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/py/modules/IcePy/Util.h b/py/modules/IcePy/Util.h index eff5d97f902..fdbef73b5c8 100644 --- a/py/modules/IcePy/Util.h +++ b/py/modules/IcePy/Util.h @@ -233,12 +233,32 @@ bool setIdentity(PyObject*, const Ice::Identity&); // bool getIdentity(PyObject*, Ice::Identity&); +// +// Create a Python instance of Ice.ProtocolVersion. +// +PyObject* createProtocolVersion(const Ice::ProtocolVersion&); + +// +// Create a Python instance of Ice.EncodingVersion. +// +PyObject* createEncodingVersion(const Ice::EncodingVersion&); + +// +// Extracts the members of an encoding version +// +bool getEncodingVersion(PyObject*, Ice::EncodingVersion&); + } extern "C" PyObject* IcePy_stringVersion(PyObject*); extern "C" PyObject* IcePy_intVersion(PyObject*); -extern "C" PyObject* IcePy_identityToString(PyObject*, PyObject*); -extern "C" PyObject* IcePy_stringToIdentity(PyObject*, PyObject*); +extern "C" PyObject* IcePy_currentProtocol(PyObject*); +extern "C" PyObject* IcePy_currentProtocolEncoding(PyObject*); +extern "C" PyObject* IcePy_currentEncoding(PyObject*); +extern "C" PyObject* IcePy_protocolVersionToString(PyObject*, PyObject*); +extern "C" PyObject* IcePy_stringToProtocolVersion(PyObject*, PyObject*); +extern "C" PyObject* IcePy_encodingVersionToString(PyObject*, PyObject*); +extern "C" PyObject* IcePy_stringToEncodingVersion(PyObject*, PyObject*); extern "C" PyObject* IcePy_generateUUID(PyObject*); #endif |