aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-22 00:15:32 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-22 14:59:05 +0100
commit0791cac97ee689195e593cfca89c0b63fb721479 (patch)
tree57166b070b0f7a23ea2a8a1d223136801c0e99c8 /vis-lua.h
parentf555c00e0b0be14cd553c7c803d6136b86f2012b (diff)
downloadvis-0791cac97ee689195e593cfca89c0b63fb721479.tar.gz
vis-0791cac97ee689195e593cfca89c0b63fb721479.tar.xz
vis-lua: introduce pre-save hook
The first argument is the file object while the second argument denotes the full path to which it will be written. Path might be `nil` if the file is going to be written to stdout. The Lua function is expected to return a boolean value indicating whether the write operation should proceed or be aborted.
Diffstat (limited to 'vis-lua.h')
-rw-r--r--vis-lua.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-lua.h b/vis-lua.h
index 7dab14e..71e30fc 100644
--- a/vis-lua.h
+++ b/vis-lua.h
@@ -23,6 +23,7 @@ void vis_lua_init(Vis*);
void vis_lua_start(Vis*);
void vis_lua_quit(Vis*);
void vis_lua_file_open(Vis*, File*);
+bool vis_lua_file_save_pre(Vis*, File*, const char *path);
void vis_lua_file_save_post(Vis*, File*, const char *path);
void vis_lua_file_close(Vis*, File*);
void vis_lua_win_open(Vis*, Win*);