aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkangping <wgtdkp@google.com>2021-08-13 11:57:14 +0800
committerGitHub <noreply@github.com>2021-08-12 20:57:14 -0700
commit6045047789c400b36398bf3e42f726e102194e1c (patch)
tree1ba9bf862a04d5c0c2218b84ac78ffa92f50ac70 /src
parentbbb40c820930b80731576ddb6eae83a67272f2e2 (diff)
downloadot-br-posix-6045047789c400b36398bf3e42f726e102194e1c.tar.gz
[mdns] rename "MDNS" to "mDNS" (#960)
Per RFC 6762, the name should be "mDNS".
Diffstat (limited to 'src')
-rw-r--r--src/agent/border_agent.cpp2
-rw-r--r--src/common/types.hpp2
-rw-r--r--src/mdns/mdns.hpp22
-rw-r--r--src/mdns/mdns_avahi.cpp2
-rw-r--r--src/mdns/mdns_avahi.hpp14
-rw-r--r--src/mdns/mdns_mdnssd.hpp12
6 files changed, 27 insertions, 27 deletions
diff --git a/src/agent/border_agent.cpp b/src/agent/border_agent.cpp
index 915ccef1..00dae386 100644
--- a/src/agent/border_agent.cpp
+++ b/src/agent/border_agent.cpp
@@ -197,7 +197,7 @@ void BorderAgent::HandleMdnsState(Mdns::Publisher::State aState)
#endif
break;
default:
- otbrLogWarning("MDNS service not available!");
+ otbrLogWarning("mDNS service not available!");
break;
}
}
diff --git a/src/common/types.hpp b/src/common/types.hpp
index 0fa8ef2c..f7085ade 100644
--- a/src/common/types.hpp
+++ b/src/common/types.hpp
@@ -72,7 +72,7 @@ enum otbrError
OTBR_ERROR_ERRNO = -1, ///< Error defined by errno.
OTBR_ERROR_DBUS = -2, ///< DBus error.
- OTBR_ERROR_MDNS = -3, ///< MDNS error.
+ OTBR_ERROR_MDNS = -3, ///< mDNS error.
OTBR_ERROR_OPENTHREAD = -4, ///< OpenThread error.
OTBR_ERROR_REST = -5, ///< Rest Server error.
OTBR_ERROR_SMCROUTE = -6, ///< SMCRoute error.
diff --git a/src/mdns/mdns.hpp b/src/mdns/mdns.hpp
index d5fda5bd..0275f5dc 100644
--- a/src/mdns/mdns.hpp
+++ b/src/mdns/mdns.hpp
@@ -51,13 +51,13 @@ namespace Mdns {
* @addtogroup border-router-mdns
*
* @brief
- * This module includes definition for MDNS service.
+ * This module includes definition for mDNS service.
*
* @{
*/
/**
- * This interface defines the functionality of MDNS service.
+ * This interface defines the functionality of mDNS service.
*
*/
class Publisher : public MainloopProcessor
@@ -155,7 +155,7 @@ public:
std::function<void(const std::string &aHostName, const DiscoveredHostInfo &aHostInfo)>;
/**
- * MDNS state values.
+ * mDNS state values.
*
*/
enum class State
@@ -165,7 +165,7 @@ public:
};
/**
- * This function pointer is called when MDNS service state changed.
+ * This function pointer is called when mDNS service state changed.
*
* @param[in] aContext A pointer to application-specific context.
* @param[in] aState The new state.
@@ -221,16 +221,16 @@ public:
}
/**
- * This method starts the MDNS service.
+ * This method starts the mDNS service.
*
- * @retval OTBR_ERROR_NONE Successfully started MDNS service;
- * @retval OTBR_ERROR_MDNS Failed to start MDNS service.
+ * @retval OTBR_ERROR_NONE Successfully started mDNS service;
+ * @retval OTBR_ERROR_MDNS Failed to start mDNS service.
*
*/
virtual otbrError Start(void) = 0;
/**
- * This method stops the MDNS service.
+ * This method stops the mDNS service.
*
*/
virtual void Stop(void) = 0;
@@ -377,20 +377,20 @@ public:
virtual ~Publisher(void) = default;
/**
- * This function creates a MDNS publisher.
+ * This function creates a mDNS publisher.
*
* @param[in] aProtocol Protocol to use for publishing. AF_INET6, AF_INET or AF_UNSPEC.
* @param[in] aDomain The domain to register in. Set nullptr to use default mDNS domain ("local.").
* @param[in] aHandler The function to be called when this service state changed.
* @param[in] aContext A pointer to application-specific context.
*
- * @returns A pointer to the newly created MDNS publisher.
+ * @returns A pointer to the newly created mDNS publisher.
*
*/
static Publisher *Create(int aProtocol, const char *aDomain, StateHandler aHandler, void *aContext);
/**
- * This function destroys the MDNS publisher.
+ * This function destroys the mDNS publisher.
*
* @param[in] aPublisher A pointer to the publisher.
*
diff --git a/src/mdns/mdns_avahi.cpp b/src/mdns/mdns_avahi.cpp
index 23137e59..bee60cc1 100644
--- a/src/mdns/mdns_avahi.cpp
+++ b/src/mdns/mdns_avahi.cpp
@@ -28,7 +28,7 @@
/**
* @file
- * This file implements MDNS service based on avahi.
+ * This file implements mDNS service based on avahi.
*/
#define OTBR_LOG_TAG "MDNS"
diff --git a/src/mdns/mdns_avahi.hpp b/src/mdns/mdns_avahi.hpp
index 23c563e9..1ae3fc4f 100644
--- a/src/mdns/mdns_avahi.hpp
+++ b/src/mdns/mdns_avahi.hpp
@@ -28,7 +28,7 @@
/**
* @file
- * This file includes definition for MDNS service based on avahi.
+ * This file includes definition for mDNS service based on avahi.
*/
#ifndef OTBR_AGENT_MDNS_AVAHI_HPP_
@@ -50,7 +50,7 @@
* @addtogroup border-router-mdns
*
* @brief
- * This module includes definition for avahi-based MDNS service.
+ * This module includes definition for avahi-based mDNS service.
*
* @{
*/
@@ -181,7 +181,7 @@ private:
};
/**
- * This class implements MDNS service with avahi.
+ * This class implements mDNS service with avahi.
*
*/
class PublisherAvahi : public Publisher
@@ -316,10 +316,10 @@ public:
void UnsubscribeHost(const std::string &aHostName) override;
/**
- * This method starts the MDNS service.
+ * This method starts the mDNS service.
*
- * @retval OTBR_ERROR_NONE Successfully started MDNS service;
- * @retval OTBR_ERROR_MDNS Failed to start MDNS service.
+ * @retval OTBR_ERROR_NONE Successfully started mDNS service;
+ * @retval OTBR_ERROR_MDNS Failed to start mDNS service.
*
*/
otbrError Start(void) override;
@@ -334,7 +334,7 @@ public:
bool IsStarted(void) const override;
/**
- * This method stops the MDNS service.
+ * This method stops the mDNS service.
*
*/
void Stop(void) override;
diff --git a/src/mdns/mdns_mdnssd.hpp b/src/mdns/mdns_mdnssd.hpp
index e783cd6e..9e088538 100644
--- a/src/mdns/mdns_mdnssd.hpp
+++ b/src/mdns/mdns_mdnssd.hpp
@@ -28,7 +28,7 @@
/**
* @file
- * This file includes definition for MDNS service.
+ * This file includes definition for mDNS service.
*/
#ifndef OTBR_AGENT_MDNS_MDNSSD_HPP_
@@ -51,7 +51,7 @@ namespace otbr {
namespace Mdns {
/**
- * This class implements MDNS service with mDNSResponder.
+ * This class implements mDNS service with mDNSResponder.
*
*/
class PublisherMDnsSd : public Publisher
@@ -186,10 +186,10 @@ public:
void UnsubscribeHost(const std::string &aHostName) override;
/**
- * This method starts the MDNS service.
+ * This method starts the mDNS service.
*
- * @retval OTBR_ERROR_NONE Successfully started MDNS service;
- * @retval OTBR_ERROR_MDNS Failed to start MDNS service.
+ * @retval OTBR_ERROR_NONE Successfully started mDNS service;
+ * @retval OTBR_ERROR_MDNS Failed to start mDNS service.
*
*/
otbrError Start(void) override;
@@ -204,7 +204,7 @@ public:
bool IsStarted(void) const override;
/**
- * This method stops the MDNS service.
+ * This method stops the mDNS service.
*
*/
void Stop(void) override;