home · contact · privacy
Server/py: Add random positioning of new Things on world creation.
[plomrogue] / src / common / readwrite.h
index c5f0ccc2a5af72589685a5c867e45c01901daf11..ce7b749bc251c9ebea8f6be257b230b74ca0cb35 100644 (file)
@@ -53,6 +53,14 @@ extern void detect_atomic_leftover(char * path);
 /* Return largest line length from "file" (including  newline chars). */
 extern uint32_t textfile_width(FILE * file);
 
+/* Read "file" for load of non-zero bytes to put onto "queue" string. */
+extern uint8_t read_file_into_queue(FILE * file, char ** queue);
+
+/* Return message from "queue" (identified as \n-delimited string, with \n as
+ * \0 in the returned message; return nothing if no \n delimiter found).
+ */
+extern char * get_message_from_queue(char ** queue);
+
 
 
 #endif