summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/trex_rpc_cmd_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc-server/trex_rpc_cmd_api.h')
-rw-r--r--src/rpc-server/trex_rpc_cmd_api.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rpc-server/trex_rpc_cmd_api.h b/src/rpc-server/trex_rpc_cmd_api.h
index 7cbdf4ff..675d2900 100644
--- a/src/rpc-server/trex_rpc_cmd_api.h
+++ b/src/rpc-server/trex_rpc_cmd_api.h
@@ -89,6 +89,16 @@ public:
return m_name;
}
+ /**
+ * on test we enable this override
+ *
+ *
+ * @param enable
+ */
+ static void test_set_override_ownership(bool enable) {
+ g_test_override_ownership = enable;
+ }
+
virtual ~TrexRpcCommand() {}
protected:
@@ -241,6 +251,8 @@ protected:
std::string m_name;
int m_param_count;
bool m_needs_ownership;
+
+ static bool g_test_override_ownership;
};
#endif /* __TREX_RPC_CMD_API_H__ */