aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2011-12-09 00:48:29 +0200
committerGravatar David Bremner <bremner@debian.org>2011-12-11 13:57:31 -0400
commitd399b6b909fe6e2c6073464006061382c8bb31d5 (patch)
tree3cfadc14d05d5ef57e3c32d3568c4b0eaf91a433 /notmuch-client.h
parentae13d612c14f654d4bc12c93481227e4d24fda82 (diff)
cli: introduce the concept of user defined hooks
Add mechanism for running user defined hooks. Hooks are executables or symlinks to executables stored under the new notmuch hooks directory, <database-path>/.notmuch/hooks. No hooks are introduced here, but adding support for a hook is now a simple matter of calling the new notmuch_run_hook() function at an appropriate location with the hook name. Signed-off-by: Jani Nikula <jani@nikula.org>
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 703f8561..c602e2e0 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -235,6 +235,9 @@ void
notmuch_config_set_maildir_synchronize_flags (notmuch_config_t *config,
notmuch_bool_t synchronize_flags);
+int
+notmuch_run_hook (const char *db_path, const char *hook);
+
notmuch_bool_t
debugger_is_active (void);