b3e34a950a3e3e7b530134859312748ac2d79c84
[ircu2.10.12-pk.git] / include / map.h
1 #ifndef INCLUDED_map_h
2 #define INCLUDED_map_h
3 /*
4  * IRC - Internet Relay Chat, include/map.h
5  * Copyright (C) 1990 Jarkko Oikarinen and
6  *                    University of Oulu, Computing Center
7  * Copyright (C) 2002 Joseph Bongaarts <foxxe@wtfs.net>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2, or (at your option)
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  *
23  * $Id$
24  */
25 #ifndef INCLUDED_ircd_defs_h
26 #include "ircd_defs.h"
27 #endif
28 #ifndef INCLUDED_time_h
29 #include <time.h>               /* struct tm */
30 #define INCLUDED_time_h
31 #endif
32 #ifndef INCLUDED_sys_types_h
33 #include <sys/types.h>
34 #define INCLUDED_sys_types_h
35 #endif
36
37
38 struct Client;
39
40 struct Map {
41   time_t lasttime;
42   unsigned int maxclients;
43   char name[HOSTLEN+1];
44   char info[REALLEN+1];
45   unsigned short prot;
46   struct Map *next;
47   struct Map *prev;
48 };
49
50 extern void map_update(struct Client *server);
51
52 #ifdef HEAD_IN_SAND_LINKS
53 extern void map_dump_links_head_in_sand(struct Client *sptr, char *mask);
54 #endif /* HEAD_IN_SAND_LINKS */
55 #ifdef HEAD_IN_SAND_MAP
56 extern void map_dump_head_in_sand(struct Client *cptr);
57 #endif /* HEAD_IN_SAND_MAP */
58
59 extern void map_dump(struct Client *cptr, struct Client *server, char *mask, int prompt_length);
60
61 #endif /* INCLUDED_motd_h */
62