zhangzengfei
2023-01-16 71156fd4aaa5f18ba9f95f9f08bc930a321e257c
polygon.cpp
@@ -3,17 +3,18 @@
using namespace protomsg;
bool dbapi_get_polygons(void *handle, std::vector<protomsg::CameraPolygon> & list) {
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);
    bool ret = bus_dbapi_get_list(handle, topic, list);
    return ret;
}
bool dbapi_get_polygon_relations(void *handle, std::vector<protomsg::CameraPolygonRelation> & list) {
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);
    bool ret = bus_dbapi_get_list(handle, topic, list);
    return ret;
}