Debian Codegraph @

src/bnetd/alias_command.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2000 Onlyer ([email protected])
3 * Copyright (C) 2002 Ross Combs ([email protected])
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19 #ifndef INCLUDED_ALIAS_COMMAND_TYPES
20 #define INCLUDED_ALIAS_COMMAND_TYPES
21
22 #ifdef ALIAS_COMMAND_INTERNAL_ACCESS
23
24 #ifdef JUST_NEED_TYPES
25 # include "common/list.h"
26 #else
27 # define JUST_NEED_TYPES
28 # include "common/list.h"
29 # undef JUST_NEED_TYPES
30 #endif
31
32 namespace pvpgn
33 {
34
35 namespace bnetd
36 {
37
38 typedef struct
39 {
40 char const * line;
41 int min;
42 int max;
43 } t_output;
44
45 typedef struct
46 {
47 char const * alias;
48 t_list * output; /* of t_output * */
49 } t_alias;
50
51 }
52
53 }
54
55 #endif
56
57 #endif
58
59
60 /*****/
61 #ifndef JUST_NEED_TYPES
62 #ifndef INCLUDED_ALIAS_COMMAND_PROTOS
63 #define INCLUDED_ALIAS_COMMAND_PROTOS
64
65 #define JUST_NEED_TYPES
66 #include "connection.h"
67 #undef JUST_NEED_TYPES
68
69 namespace pvpgn
70 {
71
72 namespace bnetd
73 {
74
75 extern int aliasfile_load(char const * filename);
76 extern int aliasfile_unload(void);
77 extern int handle_alias_command(t_connection * c, char const * text);
78
79 }
80
81 }
82
83 #endif
84 #endif