mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-14 16:07:27 +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)
|
||||
|
||||
# libwaku setup
|
||||
libwaku.waku_setup()
|
||||
|
||||
# Node creation
|
||||
libwaku.waku_new.restype = ctypes.c_void_p
|
||||
libwaku.waku_new.argtypes = [ctypes.c_char_p,
|
||||
|
Loading…
x
Reference in New Issue
Block a user