From 19364a2cc1bdba9c8e8296df0d06cee336d187e6 Mon Sep 17 00:00:00 2001 From: cheliequan <liequanche@126.com> Date: 星期四, 12 一月 2023 21:08:50 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/valib/c_bhomedbapi --- rule.cpp | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rule.cpp b/rule.cpp index 5d23f2c..04cf8e5 100644 --- a/rule.cpp +++ b/rule.cpp @@ -1,10 +1,10 @@ -#include "rule.h" +#include "dbapi.h" #include "util.h" #include "3rdparty/yyjson/yyjson.h" using namespace protomsg; -bool dbapi_get_time_rules(void *handle, vector<protomsg::CameraTimerule> & list) { +bool dbapi_get_time_rules(void *handle, std::vector<protomsg::CameraTimerule> & list) { const char *topic = DATA_URL_PREFIX("/cameraTimerule/findAll"); char * ptr_value = NULL; @@ -76,3 +76,10 @@ return true; } + +bool dbapi_get_camera_rules(void *handle, std::vector<protomsg::CameraAndRules> & list) { + const char *topic = DATA_URL_PREFIX("/camera/rule/findAll"); + + return true;; +} + -- Gitblit v1.8.0