20#ifndef PROTOCORE_LINK_MANAGER_H
21#define PROTOCORE_LINK_MANAGER_H
25#if PROTOCORE_ENABLE_LINK_MANAGER
31#define LINK_KIND_ETH 0
32#define LINK_KIND_WIFI_STA 1
33#define LINK_KIND_WIFI_AP 2
34#define LINK_KIND_OTHER 3
56 const LinkManager *m_ro;
97 void (*
const init)(uint8_t *work);
98 void (*
const select)(uint8_t *work);
99 void (*
const active)(uint8_t *work);
100 void (*
const set)(uint8_t *work);
105void protocore_link_init(uint8_t *work);
106void protocore_link_select(uint8_t *work);
107void protocore_link_active(uint8_t *work);
108void protocore_link_set(uint8_t *work);
114static const LinkManagerNs Link __attribute__((unused)) = {
115 .init = protocore_link_init,
116 .select = protocore_link_select,
117 .active = protocore_link_active,
118 .set = protocore_link_set,
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS