🌐 AI搜索 & 代理 主页
blob: 6aa36fc7ff9b07e9a97cbfccaa53b81452fe5b37 [file] [log] [blame]
Ævar Arnfjörð Bjarmason5e3aba32021-09-26 19:03:261#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 */
9const char *find_hook(const char *name);
10
Emily Shaffer330155e2021-09-26 19:03:2711/**
12 * A boolean version of find_hook()
13 */
14int hook_exists(const char *hookname);
15
Ævar Arnfjörð Bjarmason5e3aba32021-09-26 19:03:2616#endif