From 08505499d1449f53449e119aefc71324376b348b Mon Sep 17 00:00:00 2001
From: shenxin <shenxin@basic.com>
Date: 星期一, 23 八月 2021 19:40:14 +0800
Subject: [PATCH] 增加BHSubscribeNetTopics、BHQueryTopicAddress接口 修改CMakeLists.txt,增加相应文件到编译中。(需要安装protobuf)

---
 src/bh_api.h |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/bh_api.h b/src/bh_api.h
index 3ef07cc..75a9c17 100644
--- a/src/bh_api.h
+++ b/src/bh_api.h
@@ -23,6 +23,11 @@
                      int *reply_len,
                      const int timeout_ms);
 
+int BHQueryTopicAddress(const void *remote, const int remote_len,
+                        const void *topic, const int topic_len,
+                        void **reply, int *reply_len,
+                        const int timeout_ms);
+
 int BHQueryProcs(const void *remote,
                  const int remote_len,
                  const void *query,
@@ -30,6 +35,17 @@
                  void **reply,
                  int *reply_len,
                  const int timeout_ms);
+
+int BHSubscribeTopics(const void *topics,
+                      const int topics_len,
+                      void **reply,
+                      int *reply_len,
+                      const int timeout_ms);
+int BHSubscribeNetTopics(const void *topics,
+                         const int topics_len,
+                         void **reply,
+                         int *reply_len,
+                         const int timeout_ms);
 
 int BHHeartbeatEasy(const int timeout_ms);
 int BHHeartbeat(const void *proc_info,
@@ -79,8 +95,6 @@
 int BHCleanup();
 
 void BHFree(void *buf, int size);
-
-int BHGetLastError(void **msg, int *msg_len);
 
 #ifdef __cplusplus
 }

--
Gitblit v1.8.0