aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/connection.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom/connection.hpp')
-rw-r--r--src/vpp-api/vom/connection.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vpp-api/vom/connection.hpp b/src/vpp-api/vom/connection.hpp
index 0dc01845eb8..c8acf78cca5 100644
--- a/src/vpp-api/vom/connection.hpp
+++ b/src/vpp-api/vom/connection.hpp
@@ -16,9 +16,15 @@
#ifndef __VOM_CONNECTION_H__
#define __VOM_CONNECTION_H__
+#include <memory>
#include <string>
-#include <vapi/vapi.hpp>
+/**
+ * Forward declarations
+ */
+namespace vapi {
+class Connection;
+};
namespace VOM {
/**
@@ -56,7 +62,7 @@ private:
/**
* The VAPI connection context
*/
- vapi::Connection m_vapi_conn;
+ std::unique_ptr<vapi::Connection> m_vapi_conn;
/**
* The name of this application