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