VOM: mroutes
[vpp.git] / extras / vom / vom / hw.hpp
index 9ba4750..d10a93a 100644 (file)
@@ -29,6 +29,7 @@
 
 namespace VOM {
 
+class stat_reader;
 class cmd;
 class HW
 {
@@ -286,6 +287,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
    */
@@ -326,12 +333,22 @@ public:
    */
   static bool poll();
 
+  /**
+   * read stats from stat segment
+   */
+  static void read_stats();
+
 private:
   /**
    * The command Q toward HW
    */
   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
    */