mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 14:20:29 +00:00
Reduce MTD code size by removing some unused MeshCoP features (#1361)
* Seperate FTD-only dataset APIs; * Remove some unused MeshCoP functions from MTD build; * Remove some unused CLI functions from MTD build.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This file implements the OpenThread Thread API.
|
||||
* This file implements the OpenThread Thread API (for both FTD and MTD).
|
||||
*/
|
||||
|
||||
#define WPP_NAME "thread_api.tmh"
|
||||
@@ -258,16 +258,6 @@ void otThreadSetLocalLeaderPartitionId(otInstance *aInstance, uint32_t aPartitio
|
||||
return aInstance->mThreadNetif.GetMle().SetLeaderPartitionId(aPartitionId);
|
||||
}
|
||||
|
||||
uint16_t otThreadGetJoinerUdpPort(otInstance *aInstance)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetJoinerRouter().GetJoinerUdpPort();
|
||||
}
|
||||
|
||||
ThreadError otThreadSetJoinerUdpPort(otInstance *aInstance, uint16_t aJoinerUdpPort)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetJoinerRouter().SetJoinerUdpPort(aJoinerUdpPort);
|
||||
}
|
||||
|
||||
uint32_t otThreadGetContextIdReuseDelay(otInstance *aInstance)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetNetworkDataLeader().GetContextIdReuseDelay();
|
||||
|
||||
Reference in New Issue
Block a user