ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/hook.h
(Generate patch)

Comparing ircd-hybrid/trunk/include/hook.h (file contents):
Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC vs.
Revision 2846 by michael, Fri Jan 17 16:58:36 2014 UTC

# Line 1 | Line 1
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
# Line 18 | Line 18
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  
# Line 47 | Line 50 | extern dlink_node *install_hook(struct C
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

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)