diff options
author | Jani Nikula <jani@nikula.org> | 2011-12-09 00:48:29 +0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-11 13:57:31 -0400 |
commit | d399b6b909fe6e2c6073464006061382c8bb31d5 (patch) | |
tree | 3cfadc14d05d5ef57e3c32d3568c4b0eaf91a433 /notmuch-client.h | |
parent | ae13d612c14f654d4bc12c93481227e4d24fda82 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 703f856..c602e2e 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); |