python example: call waku_setup to initialize libwaku properly (#3179)

This commit is contained in:
Ivan FB 2024-11-20 18:35:23 +01:00 committed by GitHub
parent 8368ff006d
commit 38fcf35cdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,