13 * the vector. Use a format string and extra parameters as with printf. |
13 * the vector. Use a format string and extra parameters as with printf. |
14 * |
14 * |
15 * Returns nonzero if something goes wrong. In that case the buffer |
15 * Returns nonzero if something goes wrong. In that case the buffer |
16 * contents are unaffected. |
16 * contents are unaffected. |
17 */ |
17 */ |
18 int flib_ipc_append_message(flib_vector vec, const char *fmt, ...); |
18 int flib_ipc_append_message(flib_vector *vec, const char *fmt, ...); |
19 |
19 |
20 /** |
20 /** |
21 * Append IPC messages to the buffer that configure the engine for |
21 * Append IPC messages to the buffer that configure the engine for |
22 * this map. |
22 * this map. |
23 * |
23 * |
25 * for generating a map preview. |
25 * for generating a map preview. |
26 * |
26 * |
27 * Returns nonzero if something goes wrong. In that case the buffer |
27 * Returns nonzero if something goes wrong. In that case the buffer |
28 * contents are unaffected. |
28 * contents are unaffected. |
29 */ |
29 */ |
30 int flib_ipc_append_mapconf(flib_vector vec, flib_map *map, bool mappreview); |
30 int flib_ipc_append_mapconf(flib_vector *vec, flib_map *map, bool mappreview); |
31 |
31 |
32 /** |
32 /** |
33 * Append a seed message to the buffer. |
33 * Append a seed message to the buffer. |
34 * |
34 * |
35 * Returns nonzero if something goes wrong. In that case the buffer |
35 * Returns nonzero if something goes wrong. In that case the buffer |
36 * contents are unaffected. |
36 * contents are unaffected. |
37 */ |
37 */ |
38 int flib_ipc_append_seed(flib_vector vec, const char *seed); |
38 int flib_ipc_append_seed(flib_vector *vec, const char *seed); |
39 |
39 |
40 /** |
40 /** |
41 * Append the game scheme to the buffer. |
41 * Append the game scheme to the buffer. |
42 * |
42 * |
43 * Returns nonzero if something goes wrong. In that case the buffer |
43 * Returns nonzero if something goes wrong. In that case the buffer |
44 * contents are unaffected. |
44 * contents are unaffected. |
45 */ |
45 */ |
46 int flib_ipc_append_gamescheme(flib_vector vec, flib_cfg *seed, flib_cfg_meta *meta); |
46 int flib_ipc_append_gamescheme(flib_vector *vec, flib_cfg *seed, flib_cfg_meta *meta); |
47 |
47 |
48 int flib_ipc_append_addteam(flib_vector vec, flib_team *team, bool perHogAmmo, bool sharedAmmo); |
48 int flib_ipc_append_addteam(flib_vector *vec, flib_team *team, bool perHogAmmo, bool sharedAmmo); |
49 |
49 |
50 #endif /* IPCPROTOCOL_H_ */ |
50 #endif /* IPCPROTOCOL_H_ */ |