hash_func.h
3828f841
 /*
  * $Id$
  */
 
 
 #ifndef _HASH_H
 #define _HASH_H
 
 #include "str.h"
 
 /* always use a power of 2 for hash table size */
9df1213c
 #define T_TABLE_POWER    10
3828f841
 #define TABLE_ENTRIES    (1 << (T_TABLE_POWER))
 
 int new_hash( str  call_id, str cseq_nr );
 int old_hash( str  call_id, str cseq_nr );
 
9df1213c
 int init_hash();
 
3828f841
 #define hash( cid, cseq) new_hash( cid, cseq )
 
 #endif