For DHCP client configuration control the setting of the broadcast flag in the
[vpp.git] / src / vpp-api / vom / connection.hpp
index 0dc0184..06fe840 100644 (file)
 #ifndef __VOM_CONNECTION_H__
 #define __VOM_CONNECTION_H__
 
+#include <memory>
 #include <string>
 
-#include <vapi/vapi.hpp>
+/**
+ * Forward declarations
+ */
+namespace vapi {
+class Connection;
+};
 
 namespace VOM {
 /**
@@ -40,7 +46,7 @@ public:
    * Blocking [re]connect call - always eventually succeeds, or the
    * universe expires. Not much this system can do without one.
    */
-  void connect();
+  int connect();
 
   /**
    * Blocking disconnect
@@ -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