aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'text.h')
-rw-r--r--text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.h b/text.h
index b3fd997..0dadbb6 100644
--- a/text.h
+++ b/text.h
@@ -29,6 +29,8 @@ typedef struct {
Text *text_load(const char *file);
/* the filename from which this text was loaded or first saved to */
const char *text_filename_get(Text*);
+/* associate a filename with the yet unnamed buffer */
+void text_filename_set(Text*, const char *filename);
bool text_insert(Text*, size_t pos, const char *data);
bool text_insert_raw(Text*, size_t pos, const char *data, size_t len);
bool text_delete(Text*, size_t pos, size_t len);