Revision: | 1.1 |
Committed: | Thu Jul 19 08:24:50 2007 UTC (16 years, 10 months ago) by pippijn |
Content type: | text/plain |
Branch: | MAIN |
Log Message: | initial import. the most important changes since Atheme are: - fixed many memory leaks - fixed many bugs - converted to C++ and use more STL containers - added a (not very enhanced yet) perl module - greatly improved XML-RPC speed - added a JSON-RPC module with code from json-cpp - added a valgrind memcheck module to operserv - added a more object oriented base64 implementation - added a specialised unit test framework - improved stability - use gettimeofday() if available - reworked adding/removing commands - MemoServ IGNORE DEL can now remove indices |
# | User | Rev | Content |
---|---|---|---|
1 | pippijn | 1.1 | /* |
2 | * Copyright © 2005 William Pitcock, et al. | ||
3 | * Rights to this code are as documented in doc/LICENSE. | ||
4 | * | ||
5 | * A hook system. | ||
6 | * | ||
7 | * $Id: hook.h 7779 2007-03-03 13:55:42Z pippijn $ | ||
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 |