diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-01-08 12:58:32 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-01-22 20:15:36 +0000 |
commit | 18e955ea8a90b691294d71c0772770c88fadc062 (patch) | |
tree | f3213078f721af7881c979b0d296d63e792c841f /src/vpp-api/vom/hw.hpp | |
parent | 3fca567ff438145e28dd1318ad5b1734c1091257 (diff) |
vom: Fix connection to VAPI and add disconnect function
Change-Id: I2dd5dbafe36e5ae536b3e600beb6920a71238b7a
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/hw.hpp')
-rw-r--r-- | src/vpp-api/vom/hw.hpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/vpp-api/vom/hw.hpp b/src/vpp-api/vom/hw.hpp index 903aa78fb25..9ba47505619 100644 --- a/src/vpp-api/vom/hw.hpp +++ b/src/vpp-api/vom/hw.hpp @@ -222,7 +222,12 @@ public: /** * Blocking Connect to VPP - call once at bootup */ - virtual void connect(); + virtual bool connect(); + + /** + * Disconnect to VPP + */ + virtual void disconnect(); /** * Disable the passing of commands to VPP. Whilst disabled all @@ -309,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 |