Refactor OpenThread Global Variables into a Single Context Structure (#357)

* Refactor OpenThread to contain all global/static variables in a single context structure.
This commit is contained in:
Nick Banks
2016-10-04 15:23:25 -07:00
committed by Jonathan Hui
parent 671964c2d4
commit 79d99e7a91
27 changed files with 619 additions and 460 deletions
+6
View File
@@ -43,6 +43,7 @@
#include <net/netif.hpp>
#include <net/udp6.hpp>
#include <thread/mle.hpp>
#include <openthread-instance.h>
namespace Thread {
namespace Ip6 {
@@ -831,5 +832,10 @@ exit:
return rval;
}
otInstance *Ip6::GetInstance()
{
return otInstanceFromIp6(this);
}
} // namespace Ip6
} // namespace Thread