[tmf] rename TMF agent class to Tmf::Agent (#6502)

This commit renames the TMF agent class from `Tmf::TmfAgent` to
`Tmf::Agent` (to follow style used by other modules).
This commit is contained in:
Abtin Keshavarzian
2021-04-23 07:50:38 -07:00
committed by GitHub
parent c8902e9419
commit 524da6d2c4
28 changed files with 165 additions and 166 deletions
+4 -4
View File
@@ -38,19 +38,19 @@
namespace ot {
namespace Tmf {
Error TmfAgent::Start(void)
Error Agent::Start(void)
{
return Coap::Start(kUdpPort, OT_NETIF_THREAD);
}
Error TmfAgent::Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext)
Error Agent::Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext)
{
OT_UNUSED_VARIABLE(aMessage);
return static_cast<TmfAgent *>(aContext)->IsTmfMessage(aMessageInfo) ? kErrorNone : kErrorNotTmf;
return static_cast<Agent *>(aContext)->IsTmfMessage(aMessageInfo) ? kErrorNone : kErrorNotTmf;
}
bool TmfAgent::IsTmfMessage(const Ip6::MessageInfo &aMessageInfo) const
bool Agent::IsTmfMessage(const Ip6::MessageInfo &aMessageInfo) const
{
bool rval = true;