summaryrefslogtreecommitdiff
path: root/hook.h
blob: 6aa36fc7ff9b07e9a97cbfccaa53b81452fe5b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef HOOK_H
#define HOOK_H

/*
 * Returns the path to the hook file, or NULL if the hook is missing
 * or disabled. Note that this points to static storage that will be
 * overwritten by further calls to find_hook and run_hook_*.
 */
const char *find_hook(const char *name);

/**
 * A boolean version of find_hook()
 */
int hook_exists(const char *hookname);

#endif