ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/hook.h
Revision: 1.4
Committed: Sun Sep 16 18:54:42 2007 UTC (16 years, 8 months ago) by pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
State: FILE REMOVED
Log Message:
#defines to enum

File Contents

# Content
1 /*
2 * Copyright © 2005 William Pitcock, et al.
3 * Rights to this code are as documented in doc/pod/license.pod.
4 *
5 * A hook system.
6 *
7 * $Id: hook.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $
8 */
9 #ifndef HOOK_H
10 #define HOOK_H
11
12 struct hook_t : zero_initialised
13 {
14 char *name;
15 list_t hooks;
16 };
17
18 E void hook_add_event (const char *);
19 E void hook_del_event (const char *);
20 E void hook_del_hook (const char *, void (*)(void *));
21 E void hook_add_hook (const char *, void (*)(void *));
22 E void hook_add_hook_first (const char *, void (*)(void *));
23 E void hook_call_event (const char *, void *);
24
25 #endif