Mercurial > molko
diff src/core/message.h @ 67:7187c0d9b9c0
core: implement message action, closes #2467
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Jan 2020 13:04:19 +0100 |
parents | da9b7462ab92 |
children | 53b217afe122 |
line wrap: on
line diff
--- a/src/core/message.h Mon Jan 27 13:03:39 2020 +0100 +++ b/src/core/message.h Mon Jan 27 13:04:19 2020 +0100 @@ -26,8 +26,9 @@ #include <stdbool.h> +struct action; +struct font; struct texture; -struct font; union event; @@ -138,4 +139,15 @@ void message_finish(struct message *msg); +/** + * Convert message into an action. + * + * \pre msg != NULL + * \pre action != NULL + * \param msg the message to copy from + * \param action the action to fill + */ +void +message_action(const struct message *msg, struct action *action); + #endif /* !MOLKO_MESSAGE_H */