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

# User Rev Content
1 pippijn 1.1 /*
2 pippijn 1.3 * Copyright © 2005 William Pitcock, et al.
3 pippijn 1.2 * Rights to this code are as documented in doc/pod/license.pod.
4 pippijn 1.1 *
5     * A hook system.
6     *
7 pippijn 1.4 * $Id: hook.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $
8 pippijn 1.1 */
9     #ifndef HOOK_H
10     #define HOOK_H
11    
12 pippijn 1.3 struct hook_t : zero_initialised
13 pippijn 1.1 {
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