summaryrefslogtreecommitdiff
path: root/src/hooks.hpp
blob: b6124e6afe9de7abb26a998ca47ddd62f1187bd6 (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once

#include "h-basic.h"

typedef bool_ (*hook_func_t)(void *, void *, void *);

extern void add_hook_new(int h_idx, hook_func_t hook_func, cptr name, void *data);
extern void del_hook_new(int h_idx, hook_func_t hook_func);
extern int process_hooks_restart;
extern bool_ process_hooks_new(int h_idx, void *in, void *out);