cheliequan
2023-01-13 946823215bac2c859df843f7b01636f5fda34ed4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef C_BHOME_BUS_DBAPIS_H
#define C_BHOME_BUS_DBAPIS_H
 
#include <vector>
 
#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_dayctls(char *timeRules, std::vector<protomsg::DayCtl> & list);
bool dbapi_get_timeranges(char *datactls, std::vector<protomsg::TimeRange> & 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_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