diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-12 14:18:22 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-12 14:18:22 +0200 |
| commit | 0ca2d7ab6883abadb244a452525d59ce6d324f82 (patch) | |
| tree | a0d12b750566b0c739ede0e6030ef645df574d53 /text.h | |
| parent | 50813b0e99321ba5c60ea4bc8c16d19519801446 (diff) | |
| download | vis-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
