| | |
| | | #include "bh_api_go.h" |
| | | |
| | | */ |
| | | // #cgo LDFLAGS: -L/home/lichao/code/shmsg/build/lib -L/usr/local/lib -lbhome_shmq -lbhome_msg -lprotobuf-lite -lstdc++ -lpthread -lrt |
| | | // #cgo LDFLAGS: -L/home/lichao/code/shmsg/build/lib -L/usr/local/lib -lbhome_shmq -lstdc++ -lpthread -lrt |
| | | import "C" |
| | | |
| | | import ( |
| | |
| | | |
| | | } |
| | | |
| | | func Cleanup() { |
| | | C.BHCleanup() |
| | | } |
| | | |
| | | type ServerCB func(src unsafe.Pointer, proc_id *string, req *bh.MsgRequestTopic) |
| | | type ClientCB func(proc_id *string, msg_id *[]byte, reply *bh.MsgRequestTopicReply) |
| | | type SubDataCB func(proc_id *string, pub *bh.MsgPublish) |