mgmt: send FACE_EVENT_UP and FACE_EVENT_DOWN notifications
refs #3794
Change-Id: I98cc9db2652454d8fd09975b619433046e9bc7ca
diff --git a/daemon/mgmt/face-manager.hpp b/daemon/mgmt/face-manager.hpp
index 3a20dbd..c4a2c48 100644
--- a/daemon/mgmt/face-manager.hpp
+++ b/daemon/mgmt/face-manager.hpp
@@ -29,6 +29,7 @@
#include "nfd-manager-base.hpp"
#include <ndn-cxx/mgmt/nfd/face-status.hpp>
#include <ndn-cxx/mgmt/nfd/face-query-filter.hpp>
+#include <ndn-cxx/mgmt/nfd/face-event-notification.hpp>
#include "face/face.hpp"
namespace nfd {
@@ -138,10 +139,10 @@
private: // NotificationStream
void
- notifyAddFace(const Face& face);
+ notifyFaceEvent(const Face& face, ndn::nfd::FaceEventKind kind);
void
- notifyRemoveFace(const Face& face);
+ connectFaceStateChangeSignal(const Face& face);
private: // configuration
void
@@ -168,6 +169,7 @@
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
std::map<std::string /*protocol*/, shared_ptr<ProtocolFactory>> m_factories;
FaceTable& m_faceTable;
+ std::map<FaceId, signal::ScopedConnection> m_faceStateChangeConn;
private:
ndn::mgmt::PostNotification m_postNotification;