zhangzengfei
2023-01-13 2383d444ae162f3071f6240bfaa9b15569906cc3
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;
}