chelper: Use standard C type definition for pyhelper_logging_callback

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-04-21 12:24:06 -04:00
parent 73b78af6b2
commit 04b822c3aa
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ def get_ffi():
def logging_callback(msg): def logging_callback(msg):
logging.error(FFI_main.string(msg)) logging.error(FFI_main.string(msg))
pyhelper_logging_callback = FFI_main.callback( pyhelper_logging_callback = FFI_main.callback(
"void(const char *)", logging_callback) "void func(const char *)", logging_callback)
FFI_lib.set_python_logging_callback(pyhelper_logging_callback) FFI_lib.set_python_logging_callback(pyhelper_logging_callback)
return FFI_main, FFI_lib return FFI_main, FFI_lib