go-waku/library/c/cgo_utils.c

10 lines
288 B
C
Raw Normal View History

2023-08-10 13:30:38 +00:00
#include <stdlib.h>
#include <stddef.h>
#include <cgo_utils.h>
// This is a bridge function to execute C callbacks.
// It's used internally in go-waku. Do not call directly
2023-10-28 23:37:53 +00:00
void _waku_execCB(WakuCallBack op, int retCode, char* msg, void * user_data) {
op(retCode, msg, user_data);
2023-08-10 13:30:38 +00:00
}