summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 12:10:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 12:10:51 +0000
commitccf86b877c9443e0dd547460ca9852ff647ff598 (patch)
tree35621f576a9c94253a5c7979a79a2cbf31958b3f /include
parente86afd775c59441ff66222b2c3142b01ec2113af (diff)
moved declarations of typedefs for user_hash and chan_hash etc to typedefs.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2400 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/typedefs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/typedefs.h b/include/typedefs.h
new file mode 100644
index 000000000..39876207d
--- /dev/null
+++ b/include/typedefs.h
@@ -0,0 +1,25 @@
+#ifndef __TYPEDEF_H__
+#define __TYPEDEF_H__
+
+#include "users.h"
+#include "channels.h"
+#include "hashcomp.h"
+#include "inspstring.h"
+#include "ctables.h"
+#include "inspircd.h"
+#include "inspircd_config.h"
+#include <string>
+#ifdef GCC3
+#include <ext/hash_map>
+#else
+#include <hash_map>
+#endif
+
+typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash;
+typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash;
+typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache;
+typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash;
+typedef std::deque<command_t> command_table;
+typedef std::vector<std::string> servernamelist;
+
+#endif