ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/hook.h
Revision: 1.2
Committed: Sat Jul 21 01:29:07 2007 UTC (16 years, 10 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.1: +2 -2 lines
Log Message:
- moved to new documentation system
- fixed small build error

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.1 2007-07-19 08:24:50 pippijn Exp $
8 */
9 #ifndef HOOK_H
10 #define HOOK_H
11
12 struct hook_t
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