Files
bitchx/include/hash2.h
Kevin Easton 533c3dbcbf Turn on SVN keyword replacement for $Date$, $Author$, $Revision$, $Id$ for all
*.c and *.h files.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/branches/ircii-pana-1.1@3 13b04d17-f746-0410-82c6-800466cd88b0
2008-02-25 09:49:14 +00:00

65 lines
1.8 KiB
C

/*
* hash2.h: function header file for hash.c
*
* Written by Scott H Kilau
*
* CopyRight(c) 1997
*
* See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
*
* @(#)$Id$
*/
#ifndef _HASH2_H_
#define _HASH2_H_
#include "struct.h"
#include "whowas.h"
#include "hash.h"
/* Generic List type hash list */
void BX_add_name_to_genericlist (char *, HashEntry *, unsigned int);
List *BX_find_name_in_genericlist (char *, HashEntry *, unsigned int, int);
List *BX_next_namelist(HashEntry *, List *, unsigned int);
void BX_add_nicklist_to_channellist(NickList *, ChannelList *);
void BX_add_whowas_userhost_channel (WhowasList *, WhowasWrapList *);
WhowasList *BX_find_userhost_channel (char *, char *, int, WhowasWrapList *);
int BX_remove_oldest_whowas_hashlist (WhowasWrapList *, time_t, int);
WhowasList *BX_next_userhost(WhowasWrapList *, WhowasList *);
NickList *BX_find_nicklist_in_channellist(char *, ChannelList *, int);
NickList *BX_next_nicklist(ChannelList *, NickList *);
void clear_nicklist_hashtable(ChannelList *);
void show_nicklist_hashtable(ChannelList *);
void show_whowas_hashtable(WhowasWrapList *cptr, char *);
int show_wholeft_hashtable(WhowasWrapList *cptr, time_t ltime, int *total, int *hook, char *);
/* Added to sort a hash'd nicklist and them remove the sorted list */
NickList *BX_sorted_nicklist(ChannelList *, int);
void BX_clear_sorted_nicklist(NickList **);
#define NICKSORT_NORMAL 0
#define NICKSORT_NONE 1
#define NICKSORT_NICK 2
#define NICKSORT_HOST 3
#define NICKSORT_TIME 4
#define NICKSORT_IP 5
#define NICKSORT_OP 6
#define NICKSORT_VOICE 7
Flooding *BX_find_name_in_floodlist(char *, char *, HashEntry *, unsigned int, int);
Flooding *BX_add_name_to_floodlist(char *, char *, char *, HashEntry *, unsigned int);
unsigned long hash_nickname(char *, unsigned int);
#endif