| 1 |
/* Declarations of IRC message structures, variables, and functions. |
| 2 |
* |
| 3 |
* IRC Services is copyright (c) 1996-2009 Andrew Church. |
| 4 |
* E-mail: <achurch@achurch.org> |
| 5 |
* Parts written by Andrew Kempe and others. |
| 6 |
* This program is free but copyrighted software; see the file GPL.txt for |
| 7 |
* details. |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef MESSAGES_H |
| 11 |
#define MESSAGES_H |
| 12 |
|
| 13 |
/*************************************************************************/ |
| 14 |
|
| 15 |
/* Type of a message function: */ |
| 16 |
typedef void (*MessageFunc) (char *source, int ac, char **av); |
| 17 |
|
| 18 |
typedef struct |
| 19 |
{ |
| 20 |
const char *name; |
| 21 |
MessageFunc func; |
| 22 |
} Message; |
| 23 |
|
| 24 |
extern int register_messages(Message * table); |
| 25 |
extern int unregister_messages(Message * table); |
| 26 |
extern Message *find_message(const char *name); |
| 27 |
extern int messages_init(int ac, char **av); |
| 28 |
extern void messages_cleanup(void); |
| 29 |
|
| 30 |
/*************************************************************************/ |
| 31 |
|
| 32 |
#endif /* MESSAGES_H */ |
| 33 |
|
| 34 |
/* |
| 35 |
* Local variables: |
| 36 |
* c-file-style: "stroustrup" |
| 37 |
* c-file-offsets: ((case-label . *) (statement-case-intro . *)) |
| 38 |
* indent-tabs-mode: nil |
| 39 |
* End: |
| 40 |
* |
| 41 |
* vim: expandtab shiftwidth=4: |
| 42 |
*/ |