Revision 1f7ffcff src/urt_core.c
src/urt_core.c | ||
---|---|---|
48 | 48 |
/** |
49 | 49 |
* @brief Initialize the Core. |
50 | 50 |
*/ |
51 |
void urtCoreInit(void) {return;} |
|
51 |
void urtCoreInit(void) |
|
52 |
{ |
|
53 |
urt_core_t._nodes = NULL; |
|
54 |
urt_core_t._status = URT_STATUS_OK; |
|
55 |
//add later: mutex and eventsource init |
|
56 |
#if (URT_CFG_PUBSUB_ENABLED) |
|
57 |
urt_core_t._topics = NULL; |
|
58 |
#endif /* URT_CFG_PUBSUB_ENABLED */ |
|
59 |
#if (URT_CFG_RPC_ENABLED) |
|
60 |
urt_core_t.urt_service_t = NULL; |
|
61 |
#endif /* URT_CFG_RPC_ENABLED */ |
|
62 |
return; |
|
63 |
} |
|
52 | 64 |
|
53 | 65 |
/** |
54 | 66 |
* @brief Get Core status. |
Also available in: Unified diff