summaryrefslogtreecommitdiffstats
path: root/src/publisher
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-25 07:39:39 -0500
committerimarom <imarom@cisco.com>2015-11-25 07:39:39 -0500
commitb6ec2066653319b60385de1d4117165eb88890a1 (patch)
tree582bda39a6d04641b3fd9481ca23d6ede53e5a17 /src/publisher
parent92dea3787ab7b2c9877af9cd539d42a6957f7da6 (diff)
fixed a bug with default start command in the console
also added clear events and more types of events
Diffstat (limited to 'src/publisher')
-rw-r--r--src/publisher/trex_publisher.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/publisher/trex_publisher.h b/src/publisher/trex_publisher.h
index 89336735..8d1be064 100644
--- a/src/publisher/trex_publisher.h
+++ b/src/publisher/trex_publisher.h
@@ -39,8 +39,10 @@ public:
void publish_json(const std::string &s);
enum event_type_e {
- EVENT_PORT_STOPPED = 0,
- EVENT_SERVER_STOPPED = 1
+ EVENT_PORT_STARTED = 0,
+ EVENT_PORT_STOPPED = 1,
+ EVENT_SERVER_STOPPED = 2,
+ EVENT_PORT_FINISHED_TX = 3,
};
void publish_event(event_type_e type, const Json::Value &data = Json::nullValue);