From 43179f56c32c07d8f107b5f022ae608463817eac Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期五, 13 一月 2023 09:49:41 +0800
Subject: [PATCH] 使用模板处理protobuf数组转换

---
 rule.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/rule.cpp b/rule.cpp
index 04cf8e5..50f8f6e 100644
--- a/rule.cpp
+++ b/rule.cpp
@@ -4,7 +4,14 @@
 
 using namespace protomsg;
 
-bool dbapi_get_time_rules(void *handle, std::vector<protomsg::CameraTimerule> & list) {
+bool dbapi_get_time_rules(void *handle, std::vector<protomsg::CameraTimerule> & list){
+    const char *topic = DATA_URL_PREFIX("/cameraTimerule/findAll");	
+
+	bool ret = bus_dbapi_get_list(handle, topic, list);
+	return true;
+}
+
+bool dbapi_get_time_rules1(void *handle, std::vector<protomsg::CameraTimerule> & list) {
     const char *topic = DATA_URL_PREFIX("/cameraTimerule/findAll");
 
 	char * ptr_value = NULL;

--
Gitblit v1.8.0