From e783dc858cbf3370c80a46b6bfef6d14580b6764 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 13 一月 2023 18:07:14 +0800 Subject: [PATCH] code format --- rule.cpp | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/rule.cpp b/rule.cpp index 2c5e94a..23abaff 100644 --- a/rule.cpp +++ b/rule.cpp @@ -1,21 +1,21 @@ +#include "3rdparty/yyjson/yyjson.h" #include "dbapi.h" #include "util.h" -#include "3rdparty/yyjson/yyjson.h" using namespace protomsg; -bool dbapi_get_time_rules(void *handle, std::vector<protomsg::CameraTimerule> & list){ - const char *topic = DATA_URL_PREFIX("/cameraTimerule/findAll"); +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 ret; + bool ret = bus_dbapi_get_list(handle, topic, list); + + return ret; } - -bool dbapi_get_camera_rules(void *handle, std::vector<protomsg::CameraAndRules> & list) { +bool dbapi_get_camera_rules(void *handle, std::vector<protomsg::CameraAndRules> &list) { const char *topic = DATA_URL_PREFIX("/camera/rule/findAll"); - bool ret = bus_dbapi_get_list(handle, topic, list); - return true;; -} + bool ret = bus_dbapi_get_list(handle, topic, list); + return true; +} -- Gitblit v1.8.0