face: replace EventEmitter usage with Signal
refs #2300
Change-Id: I17d0d65d2c474b17dd9f23f271a6144b0b4fbc07
diff --git a/daemon/mgmt/internal-face.cpp b/daemon/mgmt/internal-face.cpp
index 9fad328..d33282e 100644
--- a/daemon/mgmt/internal-face.cpp
+++ b/daemon/mgmt/internal-face.cpp
@@ -39,7 +39,7 @@
void
InternalFace::sendInterest(const Interest& interest)
{
- onSendInterest(interest);
+ this->emitSignal(onSendInterest, interest);
// Invoke .processInterest a bit later,
// to avoid potential problems in forwarding pipelines.
@@ -122,7 +122,7 @@
void
InternalFace::sendData(const Data& data)
{
- onSendData(data);
+ this->emitSignal(onSendData, data);
}
void
@@ -142,7 +142,7 @@
void
InternalFace::put(const Data& data)
{
- onReceiveData(data);
+ this->emitSignal(onReceiveData, data);
}
InternalFace::~InternalFace()