summaryrefslogtreecommitdiffstats
path: root/extras/vom/vom/hw.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'extras/vom/vom/hw.hpp')
-rw-r--r--extras/vom/vom/hw.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/extras/vom/vom/hw.hpp b/extras/vom/vom/hw.hpp
index 9ba47505619..d10a93aa59b 100644
--- a/extras/vom/vom/hw.hpp
+++ b/extras/vom/vom/hw.hpp
@@ -29,6 +29,7 @@
namespace VOM {
+class stat_reader;
class cmd;
class HW
{
@@ -287,6 +288,12 @@ public:
static void init(cmd_q* f);
/**
+ * Initialise the HW connection to VPP - the UT version passing
+ * a mock Q.
+ */
+ static void init(cmd_q* f, stat_reader* s);
+
+ /**
* Initialise the HW
*/
static void init();
@@ -326,6 +333,11 @@ public:
*/
static bool poll();
+ /**
+ * read stats from stat segment
+ */
+ static void read_stats();
+
private:
/**
* The command Q toward HW
@@ -333,6 +345,11 @@ private:
static cmd_q* m_cmdQ;
/**
+ * The stat reader toward HW
+ */
+ static stat_reader* m_statReader;
+
+ /**
* HW::item representing the connection state as determined by polling
*/
static HW::item<bool> m_poll_state;