]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/typedefs.h
CullList -> CullItem *
[user/henk/code/inspircd.git] / include / typedefs.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
6  * See: http://www.inspircd.org/wiki/index.php/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __TYPEDEF_H__
15 #define __TYPEDEF_H__
16
17
18 #include <string>
19 #include "inspircd_config.h"
20 #include "hash_map.h"
21 #include "users.h"
22 #include "channels.h"
23 #include "hashcomp.h"
24 #include "inspstring.h"
25 #include "ctables.h"
26 #include "modules.h"
27 #include "globals.h"
28
29 #ifndef WIN32
30 /** User hash (POSIX systems with GCC)
31  */
32 typedef nspace::hash_map<std::string, User*, nspace::hash<string>, irc::StrHashComp> user_hash;
33 /** Channel hash (POSIX systems with GCC)
34  */
35 typedef nspace::hash_map<std::string, Channel*, nspace::hash<string>, irc::StrHashComp> chan_hash;
36 #else
37 /** User hash (windows systems with visual studio)
38  */
39 typedef nspace::hash_map<std::string, User*, nspace::hash_compare<string, less<string> > > user_hash;
40 /** Channel hash (windows systems with visual studio)
41  */
42 typedef nspace::hash_map<std::string, Channel*, nspace::hash_compare<string, less<string> > > chan_hash;
43 #endif
44
45 /** Server name cache
46  */
47 typedef std::vector<std::string*> servernamelist;
48
49 /** A cached text file stored line by line.
50  */
51 typedef std::deque<std::string> file_cache;
52
53 #endif
54