started with python binding

This commit is contained in:
TLINDEN
2014-12-14 14:38:30 +01:00
parent 6f47b86f98
commit 9e71b84c85
9 changed files with 886 additions and 0 deletions

10
bindings/py/pypcp/dll.py Normal file
View File

@@ -0,0 +1,10 @@
from raw import *
from static import *
from cffi import FFI
ffi = FFI()
libpcp = ffi.dlopen('libpcp1.so.0')
ffi.cdef("%s\n%s\n" % (STATIC, PCP_RAW_CODE))