/* 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.
*/
extern int try_fgetc(FILE * file, const char * f);
extern char * try_fgets(char * line, int size, FILE * file, const char * f);
+/* Return "path" + suffix "_tmp". Value is malloc'd, must be freed externally.*/
+extern char * build_temp_path(char * path);
+
/* Write to "path_tmp" "path" + "_tmp" and return a new file at that "path_tmp"
* open for writing. "path_tmp" is malloc()'d, must be freed externally.
*/
/* 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