cheliequan
2023-01-13 43179f56c32c07d8f107b5f022ae608463817eac
rule.cpp
@@ -1,10 +1,17 @@
#include "rule.h"
#include "dbapi.h"
#include "util.h"
#include "3rdparty/yyjson/yyjson.h"
using namespace protomsg;
bool dbapi_get_time_rules(void *handle, vector<protomsg::CameraTimerule> & list) {
bool dbapi_get_time_rules(void *handle, std::vector<protomsg::CameraTimerule> & list){
    const char *topic = DATA_URL_PREFIX("/cameraTimerule/findAll");
   bool ret = bus_dbapi_get_list(handle, topic, list);
   return true;
}
bool dbapi_get_time_rules1(void *handle, std::vector<protomsg::CameraTimerule> & list) {
    const char *topic = DATA_URL_PREFIX("/cameraTimerule/findAll");
   char * ptr_value = NULL;
@@ -76,3 +83,10 @@
    return true;
}
bool dbapi_get_camera_rules(void *handle, std::vector<protomsg::CameraAndRules> & list) {
    const char *topic = DATA_URL_PREFIX("/camera/rule/findAll");
     return true;;
}