fw: reorder function params to make the strategy API more uniform
Also add a non-const overload of Face::getCounters to avoid const_cast
Refs: #5173
Change-Id: Iff0bfbdedb90e68a373090cf3f247d9a7501f58d
diff --git a/daemon/face/face.hpp b/daemon/face/face.hpp
index 0076f85..c91e78a 100644
--- a/daemon/face/face.hpp
+++ b/daemon/face/face.hpp
@@ -171,7 +171,16 @@
getExpirationTime() const;
const FaceCounters&
- getCounters() const;
+ getCounters() const
+ {
+ return m_counters;
+ }
+
+ FaceCounters&
+ getCounters()
+ {
+ return m_counters;
+ }
/**
* \brief Get channel on which face was created (unicast) or the associated channel (multicast)
@@ -301,12 +310,6 @@
return m_transport->getExpirationTime();
}
-inline const FaceCounters&
-Face::getCounters() const
-{
- return m_counters;
-}
-
std::ostream&
operator<<(std::ostream& os, const FaceLogHelper<Face>& flh);