Add accesible version numbers for C++ libcapnp

This commit is contained in:
Jason Paryani
2014-02-18 17:33:17 -08:00
parent c3e34969ad
commit 110b454e2c
3 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,12 @@ cdef extern from "capnp/common.h" namespace " ::capnp":
enum Void:
VOID " ::capnp::VOID"
cdef extern from "capnp/common.h":
int CAPNP_VERSION_MAJOR
int CAPNP_VERSION_MINOR
int CAPNP_VERSION_MICRO
int CAPNP_VERSION
cdef extern from "kj/string.h" namespace " ::kj":
cdef cppclass StringPtr:
StringPtr()