cheliequan
2023-01-12 76466170ab6f057e220d031031860dfffac218f8
sysset.cpp
@@ -1,16 +1,22 @@
#include <stdio.h>
#include <string.h>
#include "cbhomeclient.h"
#include "sysset.h"
#include "util.h"
#include "3rdparty/yyjson/yyjson.h"
using namespace protomsg;
using namespace std;
bool dbapi_get_server_info(void *handle, protomsg::LocalConfig & message) {
    const char *topic = DATA_URL_PREFIX("/sysset/getServerInfo");
    return bus_dbapi_get(handle, topic, message);
}
bool dbapi_get_poll_config(void *handle, protomsg::PollConfig & message) {
    const char *topic = DATA_URL_PREFIX("/pollConfig/getPollConfig");
    return bus_dbapi_get(handle, topic, message);
}
bool dbapi_get_stack_config(void *handle, protomsg::FileAnalysisSetting & message) {
    const char *topic = DATA_URL_PREFIX("/fileSetting/show");
    return bus_dbapi_get(handle, topic, message);
}