1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
33
34
35
36
37
38
39
40
41
42
43
44
45
46
49
50
51
59
60
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
86
87
88
93
94
95
100
101
102
115
116
117
120
121
122
123
124
125
126
/* ... */
/* ... */
#ifndef EXTENSION_HPP_
#define EXTENSION_HPP_
#include "openthread-core-config.h"
#if OPENTHREAD_ENABLE_VENDOR_EXTENSION
#include "common/locator.hpp"
#include "common/non_copyable.hpp"
#include "common/notifier.hpp"
namespace ot {
namespace Ncp {
class NcpBase;
}{...}
namespace Extension {
/* ... */
/* ... */
class ExtensionBase : public InstanceLocator, private NonCopyable
{
public:
/* ... */
static ExtensionBase &Init(Instance &aInstance);
/* ... */
void SignalInstanceInit(void);
/* ... */
void SignalNcpInit(Ncp::NcpBase &aNcpInstance);
/* ... */
void HandleNotifierEvents(Events aEvents);
...
protected:
/* ... */
explicit ExtensionBase(Instance &aInstance)
: InstanceLocator(aInstance)
, mIsInitialized(true)
{
}{...}
bool mIsInitialized;...
}{...};
/* ... */
}{...}
}{...}
/* ... */
#endif
/* ... */
#endif