cheliequan
2023-01-29 dccc1ca1304dc1fcb86c8e24edd491509269b3e7
rule.cpp
@@ -12,6 +12,28 @@
    return ret;
}
bool dbapi_get_dayctls(char *timeRules, std::vector<protomsg::DayCtl> & list)
{
    bool is_array = true;
   bool ret = bus_dbapi_get_list(timeRules, is_array, list);
    return ret;
}
bool dbapi_get_timeranges(char *datactls, std::vector<protomsg::TimeRange> & list)
{
    const char * flag_key = NULL;
    const char * data_key = NULL;
   bool ret = bus_dbapi_get_list(datactls, flag_key, data_key, list);
    return ret;
}
bool dbapi_get_camera_rules(void *handle, std::vector<protomsg::CameraAndRules> &list) {
    const char *topic = DATA_URL_PREFIX("/camera/rule/findAll");