release 0.1.13
[liba.git] / python / src / a / version.pxd
blob1ba19d6f158a2989e3fa518a5885f9507050690f
1 from a cimport *
3 cdef extern from "a/version.h":
4     const unsigned int A_VERSION_MAJOR
5     const unsigned int A_VERSION_MINOR
6     const unsigned int A_VERSION_PATCH
7     const a_u32 A_VERSION_TWEAK
8     const char *const A_VERSION
9     ctypedef struct a_version:
10         unsigned int major
11         unsigned int minor
12         unsigned int third
13         unsigned int extra
14         char[4] alpha
15     int a_version_check(unsigned int major, unsigned int minor, unsigned int patch)
16     unsigned int a_version_tostr(const a_version *ctx, void *pdata, a_size nbyte)
17     unsigned int a_version_parse(a_version *ctx, const char *ver)
18     int a_version_cmp(const a_version *lhs, const a_version *rhs)
19     bint a_version_lt(const a_version *lhs, const a_version *rhs)
20     bint a_version_gt(const a_version *lhs, const a_version *rhs)
21     bint a_version_le(const a_version *lhs, const a_version *rhs)
22     bint a_version_ge(const a_version *lhs, const a_version *rhs)
23     bint a_version_eq(const a_version *lhs, const a_version *rhs)
24     bint a_version_ne(const a_version *lhs, const a_version *rhs)
25     void a_version_set_alpha(a_version *ctx, const char *alpha)
26     void a_version_alpha(const a_version *ctx, char[5] alpha)