2 * Copyright (C) 2004-2005 Lee Hardy <lee -at- leeh.co.uk>
3 * Copyright (C) 2004-2005 ircd-ratbox development team
5 * $Id: hook.h 906 2006-02-21 02:25:43Z nenolod $
7 #ifndef INCLUDED_HOOK_H
8 #define INCLUDED_HOOK_H
16 typedef void (*hookfn
) (void *data
);
25 int h_server_introduced
;
30 int h_new_remote_user
;
31 int h_introduce_client
;
34 int register_hook(const char *name
);
35 void add_hook(const char *name
, hookfn fn
);
36 void remove_hook(const char *name
, hookfn fn
);
37 void call_hook(int id
, void *arg
);
41 struct Client
*client
;
48 struct Client
*client
;
55 struct Client
*client
;
56 struct Client
*target
;
61 struct Client
*client
;
62 struct Channel
*chptr
;
68 struct Client
*client
;
69 struct Channel
*chptr
;
71 } hook_data_channel_activity
;
75 struct Client
*client
;
77 } hook_data_client_approval
;
81 struct Client
*local_link
; /* local client originating this, or NULL */
82 struct Client
*target
; /* dying client */
83 struct Client
*from
; /* causing client (could be &me or target) */
85 } hook_data_client_exit
;
89 struct Client
*client
;
90 unsigned int oldumodes
;
91 unsigned int oldsnomask
;
92 } hook_data_umode_changed
;