Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hash.h File Reference

#include "chanserv.h"
#include "nickserv.h"
#include "clone.h"
#include "queue.h"

Go to the source code of this file.

Classes

struct  chanhashent
struct  clonehashent
struct  regchanhashent

Typedefs

typedef _nickhashent RegNickHashEnt
typedef _userhashent UserHashEnt
typedef chanhashent ChanHashEnt
typedef regchanhashent RegChanHashEnt
typedef clonehashent CloneHashEnt

Functions

 LIST_HEAD (_nickhashent, _regnicklist)
 LIST_HEAD (RegNickIdHashEnt, RegNickIdMap)
 LIST_HEAD (ChanTrigHashEnt, _ChanTrigInfo)
 LIST_HEAD (_userhashent, _userlist)
u_int16_t getHashKey (const char *)
 Take a string and hash it. The hash is a 16-bit unsigned value, for now.


Variables

UserHashEnt UserHash [NICKHASHSIZE]
 Hash of online users.

RegNickHashEnt RegNickHash [NICKHASHSIZE]
 Hash of registered nicks.

RegNickIdHashEnt RegNickIdHash [IDHASHSIZE]
 Hash of regnick id nums.

ChanHashEnt ChanHash [CHANHASHSIZE]
 Hash of channels.

RegChanHashEnt RegChanHash [CHANHASHSIZE]
 Hash of registered chans.

CloneHashEnt CloneHash [CLONEHASHSIZE]
 Hash of clone hosts.

ChanTrigHashEnt ChanTrigHash [CHANTRIGHASHSIZE]
 Hash of channel trigger data.


Detailed Description

Hashtable-related headers

Definition in file hash.h.


Typedef Documentation

typedef struct chanhashent ChanHashEnt
 

Channel hash entry

typedef struct clonehashent CloneHashEnt
 

Clone hash entry

typedef struct regchanhashent RegChanHashEnt
 

Registered channel hash entry

typedef struct _nickhashent RegNickHashEnt
 

Hash type for registered nicknames

Definition at line 59 of file hash.h.

typedef struct _userhashent UserHashEnt
 

Hash type for online users

Definition at line 79 of file hash.h.


Function Documentation

u_int16_t getHashKey const char *  hname  ) 
 

Take a string and hash it. The hash is a 16-bit unsigned value, for now.

Parameters:
hname Name to get the hash key of

Definition at line 69 of file hash.c.

References dlogEntry().

Referenced by addChan(), AddChannelTrigger(), addChanUser(), addClone(), addNick(), addRegChan(), addRegNick(), delChan(), delChanUser(), delClone(), delRegChan(), FindChannelTrigger(), getChanData(), getChanUserData(), getCloneData(), getNickData(), getRegChanData(), and getRegNickData().


Generated at Sat Oct 25 20:56:11 2003 for Services using Doxygen.
Services Copyr. 1996-2001 Chip Norkus, Max Byrd, Greg Poma, Michael Graff, James Hess, Dafydd James. All rights reserved See LICENSE for licensing information.