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 --- dbapi.h | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dbapi.h b/dbapi.h index adcdbc4..291f1bc 100644 --- a/dbapi.h +++ b/dbapi.h @@ -3,25 +3,25 @@ #include <vector> -#include "proto/x86_64/sysset.pb.h" -#include "proto/x86_64/protomsg.pb.h" #include "proto/x86_64/fileanalysis.pb.h" +#include "proto/x86_64/protomsg.pb.h" +#include "proto/x86_64/sysset.pb.h" using namespace std; -bool dbapi_get_server_info(void *handle, protomsg::LocalConfig & message); -bool dbapi_get_poll_config(void *handle, protomsg::PollConfig & message); -bool dbapi_get_stack_config(void *handle, protomsg::FileAnalysisSetting & message); -bool dbapi_get_time_rules(void *handle, std::vector<protomsg::CameraTimerule> & list); -bool dbapi_get_camera_rules(void *handle, std::vector<protomsg::CameraAndRules> & list); +bool dbapi_get_server_info(void *handle, protomsg::LocalConfig &message); +bool dbapi_get_poll_config(void *handle, protomsg::PollConfig &message); +bool dbapi_get_stack_config(void *handle, protomsg::FileAnalysisSetting &message); +bool dbapi_get_time_rules(void *handle, std::vector<protomsg::CameraTimerule> &list); +bool dbapi_get_camera_rules(void *handle, std::vector<protomsg::CameraAndRules> &list); -bool dbapi_get_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> & list); -bool dbapi_get_gb28181_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> & list); -bool dbapi_get_sdk_channel_set(void *handle, std::vector<protomsg::SdkChanSet> & list); -bool dbapi_get_sdks(void *handle, std::vector<protomsg::Sdk> & list); +bool dbapi_get_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> &list); +bool dbapi_get_gb28181_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> &list); +bool dbapi_get_sdk_channel_set(void *handle, std::vector<protomsg::SdkChanSet> &list); +bool dbapi_get_sdks(void *handle, std::vector<protomsg::Sdk> &list); -bool dbapi_get_doing_stacks(void *handle, std::vector<protomsg::FileStack> & list); -bool dbapi_get_polygons(void *handle, std::vector<protomsg::CameraPolygon> & list); -bool dbapi_get_polygon_relations(void *handle, std::vector<protomsg::CameraPolygonRelation> & list); +bool dbapi_get_doing_stacks(void *handle, std::vector<protomsg::FileStack> &list); +bool dbapi_get_polygons(void *handle, std::vector<protomsg::CameraPolygon> &list); +bool dbapi_get_polygon_relations(void *handle, std::vector<protomsg::CameraPolygonRelation> &list); bool dbapi_get_server_get_is_sys_expired(void *handle); #endif \ No newline at end of file -- Gitblit v1.8.0