summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/src/commands/trex_rpc_cmds.h
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/src/commands/trex_rpc_cmds.h
parentcbc645cba025f2098031350fc1323e6ffff33633 (diff)
some minor fixes
Diffstat (limited to 'src/rpc-server/src/commands/trex_rpc_cmds.h')
-rw-r--r--src/rpc-server/src/commands/trex_rpc_cmds.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/rpc-server/src/commands/trex_rpc_cmds.h b/src/rpc-server/src/commands/trex_rpc_cmds.h
index ea6e1081..44b72c4c 100644
--- a/src/rpc-server/src/commands/trex_rpc_cmds.h
+++ b/src/rpc-server/src/commands/trex_rpc_cmds.h
@@ -28,16 +28,30 @@ limitations under the License.
/* all the RPC commands decl. goes here */
/******************* test section ************/
-class TestRpcAddMethod : public TrexRpcCommand {
+class TrexRpcCmdTestAdd : public TrexRpcCommand {
public:
- TestRpcAddMethod();
+ TrexRpcCmdTestAdd() : TrexRpcCommand("rpc_test_add") {}
protected:
virtual rpc_cmd_rc_e _run(const Json::Value &params, Json::Value &result);
};
-class TestRpcSubMethod : public TrexRpcCommand {
+class TrexRpcCmdTestSub : public TrexRpcCommand {
public:
- TestRpcSubMethod();
+ TrexRpcCmdTestSub() : TrexRpcCommand("rpc_test_sub") {} ;
+protected:
+ virtual rpc_cmd_rc_e _run(const Json::Value &params, Json::Value &result);
+};
+
+class TrexRpcCmdPing : public TrexRpcCommand {
+public:
+ TrexRpcCmdPing() : TrexRpcCommand("rpc_ping") {};
+protected:
+ virtual rpc_cmd_rc_e _run(const Json::Value &params, Json::Value &result);
+};
+
+class TrexRpcCmdGetReg : public TrexRpcCommand {
+public:
+ TrexRpcCmdGetReg() : TrexRpcCommand("rpc_get_reg_cmds") {};
protected:
virtual rpc_cmd_rc_e _run(const Json::Value &params, Json::Value &result);
};