zhangzengfei
2023-01-13 e783dc858cbf3370c80a46b6bfef6d14580b6764
camera.cpp
@@ -54,19 +54,21 @@
#include "dbapi.h"
#include "util.h"
using namespace protomsg;
// 加get参数 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;
}
// 加get参数 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;
}