lichao
2021-04-25 d48b866f555e21b127acdc40c6f466ba9a609d62
api/bhsgo/bhome_node.go
@@ -61,12 +61,13 @@
   return bhApiIn1Out1(C.FBHApiIn1Out1(C.BHUnregister), data, reply, timeout_ms)
}
func QueryTopicAddress(topic *bh.MsgQueryTopic, reply *bh.MsgQueryTopicReply, timeout_ms int) bool {
func QueryTopicAddress(dest_addr *bh.BHAddress, topic *bh.MsgQueryTopic, reply *bh.MsgQueryTopicReply, timeout_ms int) bool {
   dest, _ := dest_addr.Marshal()
   data, _ := topic.Marshal()
   creply := unsafe.Pointer(nil)
   creply_len := C.int(0)
   defer C.BHFree(creply, creply_len)
   r := C.BHQueryTopicAddress(getPtr(&data), C.int(len(data)), &creply, &creply_len, C.int(timeout_ms)) > 0
   r := C.BHQueryTopicAddress(getPtr(&dest), C.int(len(dest)), getPtr(&data), C.int(len(data)), &creply, &creply_len, C.int(timeout_ms)) > 0
   if r {
      reply.Unmarshal(C.GoBytes(creply, creply_len))
   }