1 |
|
/* |
2 |
< |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
3 |
< |
* hook.h: A header for the hooks into parts of ircd. |
2 |
> |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
|
* |
4 |
< |
* Copyright (C) 2002 by the past and present ircd coders, and others. |
4 |
> |
* Copyright (c) 2003 Piotr Nizynski, Advanced IRC Services Project Team |
5 |
> |
* Copyright (c) 2005-2014 ircd-hybrid development team |
6 |
|
* |
7 |
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
* it under the terms of the GNU General Public License as published by |
18 |
|
* along with this program; if not, write to the Free Software |
19 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
20 |
|
* USA |
21 |
< |
* |
22 |
< |
* $Id$ |
21 |
> |
*/ |
22 |
> |
|
23 |
> |
/*! \file hook.h |
24 |
> |
* \brief Provides a generic event hooking interface. |
25 |
> |
* \version $Id$ |
26 |
|
*/ |
27 |
|
|
28 |
|
#ifndef __HOOK_H_INCLUDED |
29 |
|
#define __HOOK_H_INCLUDED |
30 |
|
|
31 |
< |
#define HOOK_V2 |
31 |
> |
#define is_callback_present(c) (!!dlink_list_length(&c->chain)) |
32 |
|
|
33 |
|
typedef void *CBFUNC(va_list); |
34 |
|
|
50 |
|
extern void uninstall_hook(struct Callback *, CBFUNC *); |
51 |
|
extern void *pass_callback(dlink_node *, ...); |
52 |
|
extern void stats_hooks(struct Client *); |
50 |
– |
|
51 |
– |
#define is_callback_present(c) (!!dlink_list_length(&c->chain)) |
52 |
– |
|
53 |
|
#endif |