/*
* Copyright (C) 2004-2005 Lee Hardy <lee -at- leeh.co.uk>
* Copyright (C) 2004-2005 ircd-ratbox development team
- *
- * $Id: hook.h 906 2006-02-21 02:25:43Z nenolod $
*/
#ifndef INCLUDED_HOOK_H
#define INCLUDED_HOOK_H
extern int h_conf_read_start;
extern int h_conf_read_end;
extern int h_outbound_msgbuf;
+extern int h_rehash;
void init_hook(void);
int register_hook(const char *name);
void remove_hook(const char *name, hookfn fn);
void call_hook(int id, void *arg);
+typedef struct
+{
+ struct Client *client;
+ void *arg1;
+ void *arg2;
+} hook_data;
+
typedef struct
{
struct Client *client;
const void *arg1;
const void *arg2;
-} hook_data;
+} hook_cdata;
typedef struct
{
{
struct Client *client;
struct Channel *chptr;
- char *key;
+ const char *key;
} hook_data_channel_activity;
typedef struct
int approved;
} hook_data_privmsg_user;
+typedef struct
+{
+ bool signal;
+} hook_data_rehash;
+
#endif