diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-17 16:58:47 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-17 16:58:47 +0000 |
commit | 15969d8cd46d4cd4239a6bbe31658e5318d14404 (patch) | |
tree | 4cbcb243db7dfc1653cd70e6fb9c4e34187e0780 /include | |
parent | 64f565644d878c0a16498d9b29dbebf93b0972d2 (diff) |
- hook.h, hook.c: fixed indentation, removed whitespaces/tabs
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2847 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r-- | include/hook.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/hook.h b/include/hook.h index 93ecfb6..945db6b 100644 --- a/include/hook.h +++ b/include/hook.h @@ -1,8 +1,8 @@ /* - * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). - * hook.h: A header for the hooks into parts of ircd. + * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) * - * Copyright (C) 2002 by the past and present ircd coders, and others. + * Copyright (c) 2003 Piotr Nizynski, Advanced IRC Services Project Team + * Copyright (c) 2005-2014 ircd-hybrid development team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,14 +18,17 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA - * - * $Id$ + */ + +/*! \file hook.h + * \brief Provides a generic event hooking interface. + * \version $Id$ */ #ifndef __HOOK_H_INCLUDED #define __HOOK_H_INCLUDED -#define HOOK_V2 +#define is_callback_present(c) (!!dlink_list_length(&c->chain)) typedef void *CBFUNC(va_list); @@ -47,7 +50,4 @@ extern dlink_node *install_hook(struct Callback *, CBFUNC *); extern void uninstall_hook(struct Callback *, CBFUNC *); extern void *pass_callback(dlink_node *, ...); extern void stats_hooks(struct Client *); - -#define is_callback_present(c) (!!dlink_list_length(&c->chain)) - #endif |