X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fcommon%2Freadwrite.h;h=ce7b749bc251c9ebea8f6be257b230b74ca0cb35;hb=09cbdd6f34e2f578bc52880ef28d5fc53ac4a025;hp=b5b2f1c2d68643226f8589764662c63fed069bee;hpb=c31d3a8d3f993a2cfcc8c5e438283e3a693d5b27;p=plomrogue
diff --git a/src/common/readwrite.h b/src/common/readwrite.h
index b5b2f1c..ce7b749 100644
--- a/src/common/readwrite.h
+++ b/src/common/readwrite.h
@@ -1,4 +1,8 @@
/* src/common/readwrite.h:
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Routines for reading and writing files.
*/
@@ -49,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