From 22a2a75146214b245fa2bfeacfd998539a8779fa Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 12 一月 2023 19:36:22 +0800
Subject: [PATCH] 添加pollcontrol所需接口定义.调整结构

---
 main.cpp |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/main.cpp b/main.cpp
index bdc8578..e63170f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -9,8 +9,7 @@
 #include "3rdparty/bus_client/cbhomeclient.h"
 #include "3rdparty/bus_client/message.h"
 
-#include "sysset.h"
-#include "rule.h"
+#include "dbapi.h"
 #include "proto/x86_64/sysset.pb.h"
 #include "proto/x86_64/fileanalysis.pb.h"
 #include "proto/x86_64/protomsg.pb.h"
@@ -42,9 +41,15 @@
     // }
 
     // 鏁版嵁鏍堥厤缃� fileanalysis.pb.h
-    protomsg::FileAnalysisSetting node;
-    if (dbapi_get_stack_config(handle, node)) {
-        printf("StackConfig: %s\n", node.filedirectory().c_str());
+    // protomsg::FileAnalysisSetting node;
+    // if (dbapi_get_stack_config(handle, node)) {
+    //     printf("StackConfig: %s\n", node.filedirectory().c_str());
+    // }
+
+    // 鏃堕棿瑙勫垯
+    std::vector<protomsg::CameraTimerule> list;
+    if (dbapi_get_time_rules(handle, list)) {
+        printf("CameraTimerule:\n");
     }
 
     return 0;

--
Gitblit v1.8.0