face: refactor handling of LinkType face trait
This commit also includes some cleanups, fixes EthernetFace to report
the correct LinkType, and makes (get|set)Description non-virtual.
Change-Id: I53909d7bfa02a92641b523a766359413c966aae6
Refs: #2563
diff --git a/daemon/face/protocol-factory.hpp b/daemon/face/protocol-factory.hpp
index 0542017..1c12cc0 100644
--- a/daemon/face/protocol-factory.hpp
+++ b/daemon/face/protocol-factory.hpp
@@ -26,11 +26,12 @@
#ifndef NFD_DAEMON_FACE_PROTOCOL_FACTORY_HPP
#define NFD_DAEMON_FACE_PROTOCOL_FACTORY_HPP
-#include "face.hpp"
+#include "common.hpp"
namespace nfd {
class Channel;
+class Face;
/**
* \brief Prototype for the callback called when face is created
@@ -69,9 +70,8 @@
const FaceCreatedCallback& onCreated,
const FaceConnectFailedCallback& onConnectFailed) = 0;
- virtual std::list<shared_ptr<const Channel> >
+ virtual std::list<shared_ptr<const Channel>>
getChannels() const = 0;
-
};
} // namespace nfd