Instance API cleanup.

This commit is contained in:
Jonathan Hui
2017-03-02 10:24:55 -08:00
parent da9b2978ad
commit 52497fa45c
16 changed files with 511 additions and 375 deletions
+2 -2
View File
@@ -2907,7 +2907,7 @@ otLinkSetAssignLinkQuality(
OTAPI
void
OTCALL
otPlatformReset(
otInstanceReset(
_In_ otInstance *aInstance
)
{
@@ -2917,7 +2917,7 @@ otPlatformReset(
OTAPI
void
OTCALL
otFactoryReset(
otInstanceFactoryReset(
_In_ otInstance *aInstance
)
{
+2 -2
View File
@@ -4864,7 +4864,7 @@ otLwfIoCtl_otPlatformReset(
UNREFERENCED_PARAMETER(OutBuffer);
*OutBufferLength = 0;
otPlatformReset(pFilter->otCtx);
otInstanceReset(pFilter->otCtx);
return status;
}
@@ -4888,7 +4888,7 @@ otLwfIoCtl_otFactoryReset(
UNREFERENCED_PARAMETER(OutBuffer);
*OutBufferLength = 0;
otFactoryReset(pFilter->otCtx);
otInstanceFactoryReset(pFilter->otCtx);
return status;
}
@@ -844,7 +844,7 @@ OTNODEAPI otNode* OTCALL otNodeInit(uint32_t id)
InitializeCriticalSection(&node->mCS);
// Reset any previously saved settings
otFactoryReset(instance);
otInstanceFactoryReset(instance);
otSetStateChangedCallback(instance, otNodeStateChangedCallback, node);