From f80951fdc3f37653fca8e0c9a21cb53b4397039b Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期四, 12 一月 2023 21:08:35 +0800
Subject: [PATCH] 增加返回protobuf结构体是vector类型处理方法,还需要封装优化

---
 util.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/util.h b/util.h
index 85a077c..77298c1 100644
--- a/util.h
+++ b/util.h
@@ -2,9 +2,13 @@
 #define C_BHOMEBUS_API_UTIL_H
 
 #define DATA_URL_PREFIX(x) "/data/api-v" x
+#include "3rdparty/bus_client/message.h"
+#include <vector>
 
 bool json_to_proto(const std::string &json, google::protobuf::Message& message);
 bool proto_to_json(const google::protobuf::Message& message, std::string& json);
 char *make_get_request(const char *topic);
 bool bus_dbapi_get(void *handle, const char* topic, google::protobuf::Message& message);
+bool bus_dbapi_get_topic_data(void *handle, const char* topic, crepmsg **pptr_repmsg, size_t len);
+extern "C" int bus_dbapi_get_json_data(const char * json, char ** pptr_data, uint8_t *ptr_type);
 #endif
\ No newline at end of file

--
Gitblit v1.8.0