mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
python example: call waku_setup to initialize libwaku properly (#3179)
This commit is contained in:
parent
8368ff006d
commit
38fcf35cdb
@ -58,6 +58,9 @@ json_config = "{ \
|
|||||||
|
|
||||||
callback_type = ctypes.CFUNCTYPE(None, ctypes.c_int, ctypes.c_char_p, ctypes.c_size_t)
|
callback_type = ctypes.CFUNCTYPE(None, ctypes.c_int, ctypes.c_char_p, ctypes.c_size_t)
|
||||||
|
|
||||||
|
# libwaku setup
|
||||||
|
libwaku.waku_setup()
|
||||||
|
|
||||||
# Node creation
|
# Node creation
|
||||||
libwaku.waku_new.restype = ctypes.c_void_p
|
libwaku.waku_new.restype = ctypes.c_void_p
|
||||||
libwaku.waku_new.argtypes = [ctypes.c_char_p,
|
libwaku.waku_new.argtypes = [ctypes.c_char_p,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user