| Ævar Arnfjörð Bjarmason | 5e3aba3 | 2021-09-26 19:03:26 | [diff] [blame] | 1 | #ifndef HOOK_H |
| 2 | #define HOOK_H |
| 3 | |
| 4 | /* |
| 5 | * Returns the path to the hook file, or NULL if the hook is missing |
| 6 | * or disabled. Note that this points to static storage that will be |
| 7 | * overwritten by further calls to find_hook and run_hook_*. |
| 8 | */ |
| 9 | const char *find_hook(const char *name); |
| 10 | |
| Emily Shaffer | 330155e | 2021-09-26 19:03:27 | [diff] [blame] | 11 | /** |
| 12 | * A boolean version of find_hook() |
| 13 | */ |
| 14 | int hook_exists(const char *hookname); |
| 15 | |
| Ævar Arnfjörð Bjarmason | 5e3aba3 | 2021-09-26 19:03:26 | [diff] [blame] | 16 | #endif |