lcr/hash.c File Reference

#include "../../mem/shm_mem.h"
#include "lcr_mod.h"

Include dependency graph for lcr/hash.c:

Go to the source code of this file.

Defines

#define lcr_hash(_s)   core_hash( _s, 0, lcr_hash_size_param)

Functions

void lcr_hash_table_contents_free (struct lcr_info **hash_table)
int lcr_hash_table_insert (struct lcr_info **hash_table, unsigned short prefix_len, char *prefix, unsigned short from_uri_len, char *from_uri, pcre *from_uri_re, unsigned int grp_id, unsigned short first_gw, unsigned short priority)
struct lcr_infolcr_hash_table_lookup (struct lcr_info **hash_table, unsigned short prefix_len, char *prefix)


Define Documentation

#define lcr_hash ( _s   )     core_hash( _s, 0, lcr_hash_size_param)

Definition at line 27 of file lcr/hash.c.

Referenced by lcr_hash_table_insert(), and lcr_hash_table_lookup().


Function Documentation

void lcr_hash_table_contents_free ( struct lcr_info **  hash_table  ) 

int lcr_hash_table_insert ( struct lcr_info **  hash_table,
unsigned short  prefix_len,
char *  prefix,
unsigned short  from_uri_len,
char *  from_uri,
pcre *  from_uri_re,
unsigned int  grp_id,
unsigned short  first_gw,
unsigned short  priority 
)

struct lcr_info* lcr_hash_table_lookup ( struct lcr_info **  hash_table,
unsigned short  prefix_len,
char *  prefix 
) [read]

Definition at line 80 of file lcr/hash.c.

References lcr_hash, _str::len, LM_DBG, and _str::s.

Referenced by do_load_gws().


Generated on Wed May 23 08:01:15 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6