From 22a2a75146214b245fa2bfeacfd998539a8779fa Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 12 一月 2023 19:36:22 +0800 Subject: [PATCH] 添加pollcontrol所需接口定义.调整结构 --- rule.cpp | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rule.cpp b/rule.cpp index df571c1..5335884 100644 --- a/rule.cpp +++ b/rule.cpp @@ -1,10 +1,17 @@ -#include "rule.h" +#include "dbapi.h" #include "util.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"); 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