X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp-api%2Fvom%2Fhw.hpp;h=9ba4750561926c684b6be2af2bfdfaeabacb7015;hb=aa682a39b76ee043f65313f23e134bf18fe7a47e;hp=eaa7cf09afb763d7d70f4e4a375c207b755aaf34;hpb=9ef1c0adbf9399c55deeede3cf629dd4e8c20304;p=vpp.git diff --git a/src/vpp-api/vom/hw.hpp b/src/vpp-api/vom/hw.hpp index eaa7cf09afb..9ba47505619 100644 --- a/src/vpp-api/vom/hw.hpp +++ b/src/vpp-api/vom/hw.hpp @@ -18,10 +18,12 @@ #include #include +#include #include #include #include +#include "vom/cmd.hpp" #include "vom/connection.hpp" #include "vom/types.hpp" @@ -76,6 +78,11 @@ public: { } + /** + * Destructor + */ + ~item() = default; + /** * Comparison operator */ @@ -207,16 +214,6 @@ public: */ virtual void enqueue(std::queue& c); - /** - * dequeue a command from the Q. - */ - virtual void dequeue(cmd* c); - - /** - * dequeue a command from the Q. - */ - virtual void dequeue(std::shared_ptr c); - /** * Write all the commands to HW */ @@ -225,7 +222,12 @@ public: /** * Blocking Connect to VPP - call once at bootup */ - void connect(); + virtual bool connect(); + + /** + * Disconnect to VPP + */ + virtual void disconnect(); /** * Disable the passing of commands to VPP. Whilst disabled all @@ -304,16 +306,6 @@ public: */ static void enqueue(std::queue& c); - /** - * dequeue A command for execution - */ - static void dequeue(cmd* f); - - /** - * dequeue A command for execution - */ - static void dequeue(std::shared_ptr c); - /** * Write/Execute all commands hitherto enqueued. */ @@ -322,7 +314,12 @@ public: /** * Blocking Connect to VPP */ - static void connect(); + static bool connect(); + + /** + * Disconnect to VPP + */ + static void disconnect(); /** * Blocking pool of the HW connection