locate_root.h 554 Bytes
#ifndef LOCATE_ROOT_H_
#define LOCATE_ROOT_H_

extern types_t *messages_id_enum;
extern types_t *origin_task_id_type;
extern types_t *destination_task_id_type;

int locate_root(const char *root_name, types_t *head, types_t **root);

int locate_type(const char *type_name, types_t *head, types_t **type);

int get_message_id(types_t *head, buffer_t *buffer, uint32_t *message_id);

char *message_id_to_string(uint32_t message_id);

char *get_origin_task_id(buffer_t *buffer);

char *get_destination_task_id(buffer_t *buffer);

#endif /* LOCATE_ROOT_H_ */