Files
bitchx/include/hash2.h
Kevin Easton b057339be6 Substantial rewrite of /SCAN (do_scan). Now provides total channel nick
count as well as filtered nick count to the header and footer formats -
default header formats updated to show it.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@48 13b04d17-f746-0410-82c6-800466cd88b0
2008-06-12 14:50:45 +00:00

68 lines
1.9 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 *);
/* Determines if the Nick matches the nick!user@host mask given. */
int nick_match(NickList *nick, char *mask);
/* 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