-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathversion.c
36 lines (29 loc) · 981 Bytes
/
version.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* $Id$
*
* PyXMLSec - Python bindings for XML Security library (XMLSec)
*
* Copyright (C) 2003-2013 Easter-eggs, Valery Febvre
* http://pyxmlsec.labs.libre-entreprise.org
*
* Author: Valery Febvre <[email protected]>
*
* This is free software; see COPYING file in the source
* distribution for preciese wording.
*/
#include "xmlsecmod.h"
#include "version.h"
PyObject *xmlsec_xmlsec_version(PyObject *self, PyObject *args) {
return (wrap_charPtrConst(XMLSEC_VERSION));
}
PyObject *xmlsec_xmlsec_version_major(PyObject *self, PyObject *args) {
return (wrap_int(XMLSEC_VERSION_MAJOR));
}
PyObject *xmlsec_xmlsec_version_minor(PyObject *self, PyObject *args) {
return (wrap_int(XMLSEC_VERSION_MINOR));
}
PyObject *xmlsec_xmlsec_version_subminor(PyObject *self, PyObject *args) {
return (wrap_int(XMLSEC_VERSION_SUBMINOR));
}
PyObject *xmlsec_xmlsec_version_info(PyObject *self, PyObject *args) {
return (wrap_charPtrConst(XMLSEC_VERSION_INFO));
}