mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user