From 7c37ecd0941426c01b0cf57db89da5943925dbd9 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 29 Oct 2023 20:30:18 +0800 Subject: [PATCH] update --- api/zi_module.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api/zi_module.hpp b/api/zi_module.hpp index 87d578e..ecbc779 100644 --- a/api/zi_module.hpp +++ b/api/zi_module.hpp @@ -8,6 +8,16 @@ namespace iflytop { using namespace std; +#define ACTION_NONE ; +#define PROCESS_REG(param_id, readaction, writeacton) \ + case param_id: { \ + if (read) { \ + readaction; \ + } else { \ + writeacton; \ + } \ + } + class ModuleCMDExecStatus { public: int32_t exec_status = 0; @@ -76,4 +86,4 @@ class ZIModule { virtual int32_t module_flush_cfg() { return err::koperation_not_support; } virtual int32_t module_active_cfg() { return err::koperation_not_support; } }; -} // namespace iflytop \ No newline at end of file +} // namespace iflytop