project_files/frontlib/ipc/ipcprotocol.h
changeset 7179 f84805e6df03
parent 7177 bf6cf4dd847a
child 7224 5143861c83bd
--- a/project_files/frontlib/ipc/ipcprotocol.h	Fri Jun 08 19:52:24 2012 +0200
+++ b/project_files/frontlib/ipc/ipcprotocol.h	Sat Jun 09 03:28:38 2012 +0200
@@ -1,8 +1,10 @@
 #ifndef IPCPROTOCOL_H_
 #define IPCPROTOCOL_H_
 
-#include "../buffer.h"
+#include "../util/buffer.h"
 #include "../model/map.h"
+#include "../model/team.h"
+#include "../model/cfg.h"
 
 #include <stdbool.h>
 
@@ -35,4 +37,14 @@
  */
 int flib_ipc_append_seed(flib_vector vec, const char *seed);
 
+/**
+ * Append the game scheme to the buffer.
+ *
+ * Returns nonzero if something goes wrong. In that case the buffer
+ * contents are unaffected.
+ */
+int flib_ipc_append_gamescheme(flib_vector vec, flib_cfg *seed, flib_cfg_meta *meta);
+
+int flib_ipc_append_addteam(flib_vector vec, flib_team *team, bool perHogAmmo, bool sharedAmmo);
+
 #endif /* IPCPROTOCOL_H_ */