diff options
Diffstat (limited to 'src/rpc-server/include/trex_rpc_cmds_table.h')
-rw-r--r-- | src/rpc-server/include/trex_rpc_cmds_table.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rpc-server/include/trex_rpc_cmds_table.h b/src/rpc-server/include/trex_rpc_cmds_table.h index 3cf67669..a41944f1 100644 --- a/src/rpc-server/include/trex_rpc_cmds_table.h +++ b/src/rpc-server/include/trex_rpc_cmds_table.h @@ -43,10 +43,24 @@ public: return instance; } + /** + * register a new command + * + */ void register_command(TrexRpcCommand *command); + /** + * lookup for a command + * + */ TrexRpcCommand * lookup(const std::string &method_name); + /** + * query all commands registered + * + */ + void query(std::vector<std::string> &cmds); + private: TrexRpcCommandsTable(); ~TrexRpcCommandsTable(); |