aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-07 18:23:09 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-07 19:09:46 +0100
commit767214e4f157ae4a74be0b557bd49e24d972970b (patch)
tree46ee50d0e2c729e2892db8c96abc61294980a5fe /src/vars.c
parentddfe49d9feeba0d280e501f67cda64646e79d901 (diff)
downloadcalcurse-767214e4f157ae4a74be0b557bd49e24d972970b.tar.gz
calcurse-767214e4f157ae4a74be0b557bd49e24d972970b.zip
Add pre-save and post-save hooks
This adds support for hooks which are executed before/after saving calcurse data. Hooks can be placed under hooks/pre-save and hooks/post-save in the data directory and need to be executable. Potential use cases include: * Automatically commit any changes to the data files using a VCS. * Automatically sync with some sever component on data file changes. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/vars.c')
-rw-r--r--src/vars.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vars.c b/src/vars.c
index f6fd685..d674393 100644
--- a/src/vars.c
+++ b/src/vars.c
@@ -111,6 +111,7 @@ char path_keys[] = "";
char path_cpid[] = "";
char path_dpid[] = "";
char path_dmon_log[] = "";
+char path_hooks[] = "";
/* Variable to store global configuration. */
struct conf conf;