From 767214e4f157ae4a74be0b557bd49e24d972970b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 7 Jan 2016 18:23:09 +0100 Subject: 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 --- src/vars.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vars.c') 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; -- cgit v1.2.3-54-g00ecf