ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/vendor/ircservices-5.1.24/messages.h
Revision: 3389
Committed: Fri Apr 25 14:12:15 2014 UTC (9 years, 10 months ago) by michael
Content type: text/x-chdr
File size: 1113 byte(s)
Log Message:
- Imported ircservices-5.1.24

File Contents

# Content
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 const char *name;
20 MessageFunc func;
21 } Message;
22
23 extern int register_messages(Message *table);
24 extern int unregister_messages(Message *table);
25 extern Message *find_message(const char *name);
26 extern int messages_init(int ac, char **av);
27 extern void messages_cleanup(void);
28
29 /*************************************************************************/
30
31 #endif /* MESSAGES_H */
32
33 /*
34 * Local variables:
35 * c-file-style: "stroustrup"
36 * c-file-offsets: ((case-label . *) (statement-case-intro . *))
37 * indent-tabs-mode: nil
38 * End:
39 *
40 * vim: expandtab shiftwidth=4:
41 */