face: Fixing bug with InternalFace considered not local and changing "isLocal" method to be pure virtual
This way the decision about the face locality has to be done explicitly
inside specific face implementation and potentially avoids problems.
Change-Id: I5219cce87385313546453d14a5a7ca4542893911
diff --git a/daemon/face/face.hpp b/daemon/face/face.hpp
index d4e4578..924b4fa 100644
--- a/daemon/face/face.hpp
+++ b/daemon/face/face.hpp
@@ -84,6 +84,13 @@
virtual void
close() = 0;
+ /** \brief Get whether face is connected to a local app
+ *
+ * In this base class this property is always false.
+ */
+ virtual bool
+ isLocal() const = 0;
+
/** \brief Get whether underlying communication is up
*
* In this base class this property is always true.
@@ -102,13 +109,6 @@
virtual const std::string&
getDescription() const;
- /** \brief Get whether face is connected to a local app
- *
- * In this base class this property is always false.
- */
- virtual bool
- isLocal() const;
-
/** \brief Get whether packets sent this Face may reach multiple peers
*
* In this base class this property is always false.