aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-12 14:18:22 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-12 14:18:22 +0200
commit0ca2d7ab6883abadb244a452525d59ce6d324f82 (patch)
treea0d12b750566b0c739ede0e6030ef645df574d53 /text.h
parent50813b0e99321ba5c60ea4bc8c16d19519801446 (diff)
downloadvis-0ca2d7ab6883abadb244a452525d59ce6d324f82.tar.gz
vis-0ca2d7ab6883abadb244a452525d59ce6d324f82.tar.xz
Introduce text_filename_set
This can be used to associate a given filename to a currently unnamed text.
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);