mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-01 10:45:56 +08:00
Merge pull request #1091 from ajbeamon/fix-python-onready
Python: _CBFUNC should be defined outside init_c_api
This commit is contained in:
commit
093f4d9b83
@ -1284,6 +1284,7 @@ def optionalParamToBytes(v):
|
||||
|
||||
|
||||
_FDBBase.capi = _capi
|
||||
_CBFUNC = ctypes.CFUNCTYPE(None, ctypes.c_void_p)
|
||||
|
||||
def init_c_api():
|
||||
_capi.fdb_select_api_version_impl.argtypes = [ctypes.c_int, ctypes.c_int]
|
||||
@ -1327,8 +1328,6 @@ def init_c_api():
|
||||
_capi.fdb_future_is_ready.argtypes = [ctypes.c_void_p]
|
||||
_capi.fdb_future_is_ready.restype = ctypes.c_int
|
||||
|
||||
_CBFUNC = ctypes.CFUNCTYPE(None, ctypes.c_void_p)
|
||||
|
||||
_capi.fdb_future_set_callback.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p]
|
||||
_capi.fdb_future_set_callback.restype = int
|
||||
_capi.fdb_future_set_callback.errcheck = check_error_code
|
||||
|
Loading…
x
Reference in New Issue
Block a user