From 76466170ab6f057e220d031031860dfffac218f8 Mon Sep 17 00:00:00 2001 From: cheliequan <liequanche@126.com> Date: 星期四, 12 一月 2023 11:57:38 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/valib/c_bhomedbapi --- main.cpp | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index 6ac28b1..bdc8578 100644 --- a/main.cpp +++ b/main.cpp @@ -10,7 +10,10 @@ #include "3rdparty/bus_client/message.h" #include "sysset.h" +#include "rule.h" #include "proto/x86_64/sysset.pb.h" +#include "proto/x86_64/fileanalysis.pb.h" +#include "proto/x86_64/protomsg.pb.h" int main(int argc, char const *argv[]) @@ -26,13 +29,23 @@ printf("bus_client_init end\n"); - // 鎺ュ彛娴嬭瘯 - protomsg::LocalConfig node; - if (dbapi_get_server_info(handle, node)) { - printf("LocalConfig: %s\n", node.alarm_ip().c_str()); - } + // 鏈嶅姟鍣ㄩ厤缃� sysset.pb.h + // protomsg::LocalConfig node; + // if (dbapi_get_server_info(handle, node)) { + // printf("LocalConfig: %s\n", node.alarm_ip().c_str()); + // } - printf("bus_dbapi_get_server_info end\n"); + // 杞閰嶇疆 sysset.pb.h + // protomsg::PollConfig node; + // if (dbapi_get_poll_config(handle, node)) { + // printf("PollConfig: %s\n", node1.server_id().c_str()); + // } + + // 鏁版嵁鏍堥厤缃� fileanalysis.pb.h + protomsg::FileAnalysisSetting node; + if (dbapi_get_stack_config(handle, node)) { + printf("StackConfig: %s\n", node.filedirectory().c_str()); + } return 0; } -- Gitblit v1.8.0