aboutsummaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 1045153..abc7c7f 100644
--- a/src/system.h
+++ b/src/system.h
@@ -31,4 +31,12 @@ void copy_file_with_encryption(const char *in, const char *out, enum encrypt enc
* is non-zero, exit, else return -1. Return 0 on success. */
int ftag_execvp(char *const *cmd, int can_exit);
+/* Create a temporary file containing INITIAL_CONTENT and open the editor to
+ * edit it, then return the edited string. */
+char *edit(const char *initial_content);
+
+/* Get the content of the open file FD as a heap-allocated string. The offset of
+ * FD is set to zero as a side effect. */
+char *file_to_string(int fd);
+
#endif