Revision cd21e832 inc/urt_core.h
inc/urt_core.h | ||
---|---|---|
46 | 46 |
*/ |
47 | 47 |
typedef struct urt_core |
48 | 48 |
{ |
49 |
urt_node_t* _nodes;
|
|
50 |
urt_osEventSource_t* _evtSource;
|
|
51 |
urt_osMutex_t _lock;
|
|
52 |
urt_status_t _status;
|
|
53 |
#if (URT_CFG_PUBSUB_ENABLED)
|
|
54 |
urt_topic_t* _topics;
|
|
55 |
#endif /* URT_CFG_PUBSUB_ENABLED */
|
|
56 |
#if (URT_CFG_RPC_ENABLED)
|
|
57 |
urt_service_t* _services;
|
|
58 |
#endif /* URT_CFG_RPC_ENABLED */
|
|
49 |
urt_node_t* _nodes; |
|
50 |
urt_osEventSource_t* _evtSource; |
|
51 |
urt_osMutex_t _lock; |
|
52 |
urt_status_t _status; |
|
53 |
#if (URT_CFG_PUBSUB_ENABLED) |
|
54 |
urt_topic_t* _topics; |
|
55 |
#endif /* URT_CFG_PUBSUB_ENABLED */ |
|
56 |
#if (URT_CFG_RPC_ENABLED) |
|
57 |
urt_service_t* _services; |
|
58 |
#endif /* URT_CFG_RPC_ENABLED */ |
|
59 | 59 |
}urt_core_t; |
60 | 60 |
|
61 | 61 |
/******************************************************************************/ |
... | ... | |
70 | 70 |
extern "C" { |
71 | 71 |
#endif /* defined(__cplusplus) */ |
72 | 72 |
|
73 |
void urtCoreInit(void);
|
|
74 |
urt_status_t urtCoreGetStatus(void);
|
|
75 |
void urtCoreStartNodes(void);
|
|
76 |
urt_status_t urtCoreSynchronize(urt_node_t* node);
|
|
77 |
urt_status_t urtCoreStopNodes(urt_status_t reason);
|
|
73 |
void urtCoreInit(void); |
|
74 |
urt_status_t urtCoreGetStatus(void); |
|
75 |
void urtCoreStartNodes(void); |
|
76 |
urt_status_t urtCoreSynchronize(urt_node_t* node); |
|
77 |
urt_status_t urtCoreStopNodes(urt_status_t reason); |
|
78 | 78 |
|
79 | 79 |
#if (URT_CFG_PUBSUB_ENABLED) |
80 |
urt_topic_t* urtCoreGetTopic(urt_topicid_t id);
|
|
80 |
urt_topic_t* urtCoreGetTopic(urt_topicid_t id); |
|
81 | 81 |
#endif /* URT_CFG_PUBSUB_ENABLED */ |
82 | 82 |
|
83 | 83 |
#if (URT_CFG_RPC_ENABLED) |
84 |
urt_service_t urtCoreGetService(urt_serviceid_t id);
|
|
84 |
urt_service_t urtCoreGetService(urt_serviceid_t id); |
|
85 | 85 |
#endif /* URT_CFG_RPC_ENABLED */ |
86 | 86 |
|
87 | 87 |
#if defined(__cplusplus) |
Also available in: Unified diff