cheliequan
2023-01-29 dccc1ca1304dc1fcb86c8e24edd491509269b3e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "dbapi.h"
#include "util.h"
 
using namespace protomsg;
 
bool dbapi_get_polygons(void *handle, std::vector<protomsg::CameraPolygon> &list) {
    const char *topic = DATA_URL_PREFIX("/polygon/findAll");
 
    bool ret = bus_dbapi_get_list(handle, topic, list);
 
    return ret;
}
 
bool dbapi_get_polygon_relations(void *handle, std::vector<protomsg::CameraPolygonRelation> &list) {
    const char *topic = DATA_URL_PREFIX("/polygon/relation/findAll");
 
    bool ret = bus_dbapi_get_list(handle, topic, list);
 
    return ret;
}