@@ -121,11 +121,18 @@ static PyObject* PyXmlSec_PyShutdown(PyObject* self) {
121
121
122
122
static char PyXmlSec_GetLibXmlSecVersion__doc__ [] = \
123
123
"get_libxmlsec_version() -> tuple\n"
124
- "Returns Version tuple of wrapped libxml library." ;
124
+ "Returns Version tuple of wrapped libxmlsec library." ;
125
125
static PyObject * PyXmlSec_GetLibXmlSecVersion () {
126
126
return Py_BuildValue ("(iii)" , XMLSEC_VERSION_MAJOR , XMLSEC_VERSION_MINOR , XMLSEC_VERSION_SUBMINOR );
127
127
}
128
128
129
+ static char PyXmlSec_GetLibXmlVersion__doc__ [] = \
130
+ "get_libxml_version() -> tuple\n"
131
+ "Returns Version tuple of wrapped libxml library." ;
132
+ static PyObject * PyXmlSec_GetLibXmlVersion () {
133
+ return Py_BuildValue ("(iii)" , XMLSEC_LIBXML_VERSION_MAJOR , XMLSEC_LIBXML_VERSION_MINOR , XMLSEC_LIBXML_VERSION_PATCH );
134
+ }
135
+
129
136
static char PyXmlSec_PyEnableDebugOutput__doc__ [] = \
130
137
"enable_debug_trace(enabled) -> None\n"
131
138
"Enables or disables calling LibXML2 callback from the default errors callback.\n\n"
@@ -399,6 +406,12 @@ static PyMethodDef PyXmlSec_MainMethods[] = {
399
406
METH_NOARGS ,
400
407
PyXmlSec_GetLibXmlSecVersion__doc__
401
408
},
409
+ {
410
+ "get_libxml_version" ,
411
+ (PyCFunction )PyXmlSec_GetLibXmlVersion ,
412
+ METH_NOARGS ,
413
+ PyXmlSec_GetLibXmlVersion__doc__
414
+ },
402
415
{
403
416
"enable_debug_trace" ,
404
417
(PyCFunction )PyXmlSec_PyEnableDebugOutput ,
0 commit comments