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:
Shu Chen
2017-04-26 02:51:12 +08:00
committed by Jonathan Hui
parent 6043cd8f1b
commit 0a830ecefe
32 changed files with 846 additions and 735 deletions
+1 -11
View File
@@ -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();