diff options
author | imarom <imarom@cisco.com> | 2015-08-18 10:49:59 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-08-18 10:49:59 +0300 |
commit | f88f9364a3a608bd60cf797e36b371cbc217336e (patch) | |
tree | b461e52bb1647dc19fc7e450f033a4f670ecb506 /src/rpc-server/include | |
parent | cbc645cba025f2098031350fc1323e6ffff33633 (diff) |
some minor fixes
Diffstat (limited to 'src/rpc-server/include')
-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(); |