mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-27 09:53:09 +00:00
fix linking error
This commit is contained in:
parent
2fc438055a
commit
311f397b3a
12
nwaku.go
12
nwaku.go
@ -4,8 +4,8 @@
|
||||
package wakuv2
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -L../third_party/nwaku/build/ -lnegentropy -lwaku
|
||||
#cgo LDFLAGS: -L../third_party/nwaku -Wl,-rpath,../third_party/nwaku/build/
|
||||
#cgo LDFLAGS: -L./third_party/nwaku/build/ -lnegentropy -lwaku
|
||||
#cgo LDFLAGS: -L./third_party/nwaku -Wl,-rpath,../third_party/nwaku/build/
|
||||
|
||||
#include "./third_party/nwaku/library/libwaku.h"
|
||||
#include <stdio.h>
|
||||
@ -543,6 +543,14 @@ func (n *WakuNode) postTask(reqType requestType, input any) (any, error) {
|
||||
return response.value, nil
|
||||
}
|
||||
|
||||
//export globalEventCallback
|
||||
func globalEventCallback(callerRet C.int, msg *C.char, len C.size_t, userData unsafe.Pointer) {
|
||||
// This is shared among all Golang instances
|
||||
// TODO-nwaku
|
||||
// self := Waku{wakuCtx: userData}
|
||||
// self.MyEventCallback(callerRet, msg, len)
|
||||
}
|
||||
|
||||
func (n *WakuNode) processLoop(ctx context.Context) {
|
||||
for req := range n.requestCh {
|
||||
switch req.reqType {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user