comparison 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
comparison
equal deleted inserted replaced
66:9435a53adab4 67:7187c0d9b9c0
24 * \brief Message dialog. 24 * \brief Message dialog.
25 */ 25 */
26 26
27 #include <stdbool.h> 27 #include <stdbool.h>
28 28
29 struct action;
30 struct font;
29 struct texture; 31 struct texture;
30 struct font;
31 32
32 union event; 33 union event;
33 34
34 /** 35 /**
35 * \brief Message flags. 36 * \brief Message flags.
136 * \param msg the message 137 * \param msg the message
137 */ 138 */
138 void 139 void
139 message_finish(struct message *msg); 140 message_finish(struct message *msg);
140 141
142 /**
143 * Convert message into an action.
144 *
145 * \pre msg != NULL
146 * \pre action != NULL
147 * \param msg the message to copy from
148 * \param action the action to fill
149 */
150 void
151 message_action(const struct message *msg, struct action *action);
152
141 #endif /* !MOLKO_MESSAGE_H */ 153 #endif /* !MOLKO_MESSAGE_H */