cheliequan
2023-01-12 f80951fdc3f37653fca8e0c9a21cb53b4397039b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "sysset.h"
#include "util.h"
 
using namespace protomsg;
 
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);
}