summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/include
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-08-18 10:49:59 +0300
committerimarom <imarom@cisco.com>2015-08-18 10:49:59 +0300
commitf88f9364a3a608bd60cf797e36b371cbc217336e (patch)
treeb461e52bb1647dc19fc7e450f033a4f670ecb506 /src/rpc-server/include
parentcbc645cba025f2098031350fc1323e6ffff33633 (diff)
some minor fixes
Diffstat (limited to 'src/rpc-server/include')
-rw-r--r--src/rpc-server/include/trex_rpc_cmds_table.h14
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();