mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 03:07:47 +00:00
[core] replace uses of OT_ERROR_{} with kError{} in core modules (#7919)
This commit is contained in:
@@ -1163,7 +1163,7 @@ bool RoutingManager::NetworkDataContainsOmrPrefix(const Ip6::Prefix &aPrefix) co
|
||||
NetworkData::OnMeshPrefixConfig onMeshPrefixConfig;
|
||||
bool contain = false;
|
||||
|
||||
while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, onMeshPrefixConfig) == OT_ERROR_NONE)
|
||||
while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, onMeshPrefixConfig) == kErrorNone)
|
||||
{
|
||||
if (IsValidOmrPrefix(onMeshPrefixConfig) && onMeshPrefixConfig.GetPrefix() == aPrefix)
|
||||
{
|
||||
|
||||
@@ -243,8 +243,8 @@ public:
|
||||
* @param[in,out] aIterator An iterator.
|
||||
* @param[out] aEntry A reference to the entry to populate.
|
||||
*
|
||||
* @retval OT_ERROR_NONE Got the next entry, @p aEntry is updated and @p aIterator is advanced.
|
||||
* @retval OT_ERROR_NOT_FOUND No more entries in the table.
|
||||
* @retval kErrorNone Got the next entry, @p aEntry is updated and @p aIterator is advanced.
|
||||
* @retval kErrorNotFound No more entries in the table.
|
||||
*
|
||||
*/
|
||||
Error GetNextPrefixTableEntry(PrefixTableIterator &aIterator, PrefixTableEntry &aEntry) const
|
||||
|
||||
@@ -194,8 +194,8 @@ public:
|
||||
* @param[in] aCallback A pointer to a function that is called upon finishing detaching.
|
||||
* @param[in] aContext A pointer to callback application-specific context.
|
||||
*
|
||||
* @retval OT_ERROR_NONE Successfully started detaching.
|
||||
* @retval OT_ERROR_BUSY Detaching is already in progress.
|
||||
* @retval kErrorNone Successfully started detaching.
|
||||
* @retval kErrorBusy Detaching is already in progress.
|
||||
*
|
||||
*/
|
||||
Error DetachGracefully(otDetachGracefullyCallback aCallback, void *aContext);
|
||||
|
||||
Reference in New Issue
Block a user