Debian Codegraph @

src/bnetd/command_groups.h

raw symbols SCIP
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 */
16 #ifndef INCLUDED_COMMAND_GROUPS_TYPES
17 #define INCLUDED_COMMAND_GROUPS_TYPES
18
19 namespace pvpgn
20 {
21
22 namespace bnetd
23 {
24
25 #ifdef COMMAND_GROUPS_INTERNAL_ACCESS
26
27 typedef struct
28 {
29 char * command;
30 unsigned int group;
31 } t_command_groups;
32
33 #endif
34
35 }
36
37 }
38
39 #endif
40
41 #ifndef JUST_NEED_TYPES
42 #ifndef INCLUDED_COMMAND_GROUPS_PROTOS
43 #define INCLUDED_COMMAND_GROUPS_PROTOS
44
45 namespace pvpgn
46 {
47
48 namespace bnetd
49 {
50
51 extern int command_groups_load(char const * filename);
52 extern int command_groups_unload(void);
53 extern int command_groups_reload(char const * filename);
54 extern unsigned int command_get_group(char const * command);
55
56 }
57
58 }
59
60 #endif
61 #endif