2018-02-24 00:30:44 +01:00
|
|
|
#ifndef __MESSAGE_SET_H
|
|
|
|
#define __MESSAGE_SET_H
|
|
|
|
|
|
|
|
#include "cw.h"
|
|
|
|
|
2018-02-25 19:12:28 +01:00
|
|
|
extern void cw_message_set_destroy(cw_MsgSet_t * set);
|
|
|
|
extern cw_MsgSet_t * cw_message_set_create();
|
|
|
|
extern void cw_msgset_add(cw_MsgSet_t * set,
|
2018-02-24 23:58:31 +01:00
|
|
|
cw_msgdef_t messages[]);
|
2018-02-25 19:12:28 +01:00
|
|
|
mlist_t cw_msgset_get_msg(cw_MsgSet_t * set, int type);
|
2018-02-26 20:18:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct cw_MsgData{
|
|
|
|
int type;
|
|
|
|
const char * name;
|
|
|
|
int * states;
|
2018-02-28 07:38:02 +01:00
|
|
|
int receiver;
|
2018-02-26 20:18:53 +01:00
|
|
|
mavl_t elements_tree;
|
|
|
|
mlist_t elements_list;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct cw_MsgData message2_t;
|
|
|
|
|
|
|
|
|
2018-02-24 00:30:44 +01:00
|
|
|
#endif
|