From 34cd75f77d0ca94dbdba4e6cc9451fe4d33e78b3 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 19 五月 2021 19:14:13 +0800
Subject: [PATCH] add api BHQueryProcs.

---
 src/bh_api.cc |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/bh_api.cc b/src/bh_api.cc
index b37eaae..ca69b6e 100644
--- a/src/bh_api.cc
+++ b/src/bh_api.cc
@@ -194,6 +194,19 @@
 	    remote, remote_len, topic, topic_len, reply, reply_len, timeout_ms);
 }
 
+int BHQueryProcs(const void *remote,
+                 const int remote_len,
+                 const void *query,
+                 const int query_len,
+                 void **reply,
+                 int *reply_len,
+                 const int timeout_ms)
+{
+	return BHApi_In2_Out1<BHAddress, MsgQueryProc, MsgQueryProcReply>(
+	    &TopicNode::QueryProcs,
+	    remote, remote_len, query, query_len, reply, reply_len, timeout_ms);
+}
+
 int BHSubscribeTopics(const void *topics, const int topics_len, void **reply, int *reply_len, const int timeout_ms)
 {
 	return BHApi_In1_Out1<MsgTopicList>(&TopicNode::Subscribe, topics, topics_len, reply, reply_len, timeout_ms);

--
Gitblit v1.8.0