/[LeafOK_CVS]/pvpgn-1.7.4/src/bnetd/alias_command.h
ViewVC logotype

Annotation of /pvpgn-1.7.4/src/bnetd/alias_command.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Jun 6 03:41:37 2006 UTC (19 years, 9 months ago) by sysadm
Branch point for: GNU, MAIN
Content type: text/x-chdr
Initial revision

1 sysadm 1.1 /*
2     * Copyright (C) 2000 Onlyer (onlyer@263.net)
3     * Copyright (C) 2002 Ross Combs (rocombs@cs.nmsu.edu)
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     typedef struct
33     {
34     char const * line;
35     int min;
36     int max;
37     } t_output;
38    
39     typedef struct
40     {
41     char const * alias;
42     t_list * output; /* of t_output * */
43     } t_alias;
44    
45     #endif
46    
47     #endif
48    
49    
50     /*****/
51     #ifndef JUST_NEED_TYPES
52     #ifndef INCLUDED_ALIAS_COMMAND_PROTOS
53     #define INCLUDED_ALIAS_COMMAND_PROTOS
54    
55     #define JUST_NEED_TYPES
56     #include "connection.h"
57     #undef JUST_NEED_TYPES
58    
59     extern int aliasfile_load(char const * filename);
60     extern int aliasfile_unload(void);
61     extern int handle_alias_command(t_connection * c, char const * text);
62    
63     #endif
64     #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1