face: deduplicate callback typedefs between Channel and ProtocolFactory
This should have been part of commit 1d7e7afd381b91b6194d516826294b7f41f78745
Change-Id: I61623152180d4df288fc7dd3c225518e438d2bda
Refs: #3258
diff --git a/daemon/face/unix-stream-channel.cpp b/daemon/face/unix-stream-channel.cpp
index 3de9850..c34ad7b 100644
--- a/daemon/face/unix-stream-channel.cpp
+++ b/daemon/face/unix-stream-channel.cpp
@@ -58,7 +58,7 @@
void
UnixStreamChannel::listen(const FaceCreatedCallback& onFaceCreated,
- const ConnectFailedCallback& onAcceptFailed,
+ const FaceCreationFailedCallback& onAcceptFailed,
int backlog/* = acceptor::max_connections*/)
{
if (isListening()) {
@@ -109,7 +109,7 @@
void
UnixStreamChannel::accept(const FaceCreatedCallback& onFaceCreated,
- const ConnectFailedCallback& onAcceptFailed)
+ const FaceCreationFailedCallback& onAcceptFailed)
{
m_acceptor.async_accept(m_socket, bind(&UnixStreamChannel::handleAccept, this,
boost::asio::placeholders::error,
@@ -119,7 +119,7 @@
void
UnixStreamChannel::handleAccept(const boost::system::error_code& error,
const FaceCreatedCallback& onFaceCreated,
- const ConnectFailedCallback& onAcceptFailed)
+ const FaceCreationFailedCallback& onAcceptFailed)
{
if (error) {
if (error == boost::asio::error::operation_aborted) // when the socket is closed by someone