From ae841b3c44bb40be11ad505e1a51f490362d56fc Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 12 一月 2023 11:14:21 +0800 Subject: [PATCH] 添加全部proto文件, 添加轮询配置接口 --- sysset.cpp | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sysset.cpp b/sysset.cpp index e2e3e3e..a308f21 100644 --- a/sysset.cpp +++ b/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); +} \ No newline at end of file -- Gitblit v1.8.0