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 --- camera.cpp | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/camera.cpp b/camera.cpp index 771ebbb..56e85ce 100644 --- a/camera.cpp +++ b/camera.cpp @@ -54,19 +54,21 @@ #include "dbapi.h" #include "util.h" using namespace protomsg; + // 鍔爂et鍙傛暟 runType 1: 瀹炴椂 0 杞 -bool dbapi_get_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> & list) { +bool dbapi_get_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> &list) { const char *topic = DATA_URL_PREFIX("/camera/getCamerasByRunType"); - bool ret = bus_dbapi_get_list(handle, topic, list); + bool ret = bus_dbapi_get_list(handle, topic, list); + return ret; } // 鍔爂et鍙傛暟 runType 1: 瀹炴椂 0 杞 -bool dbapi_get_gb28181_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> & list) { +bool dbapi_get_gb28181_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> &list) { const char *topic = DATA_URL_PREFIX("/gb28181/camera/getCamerasByRunType"); - bool ret = bus_dbapi_get_list(handle, topic, list); + bool ret = bus_dbapi_get_list(handle, topic, list); + return ret; } - -- Gitblit v1.8.0