| | |
| | | #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; |
| | | } |
| | | |