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

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_info * | lcr_hash_table_lookup (struct lcr_info **hash_table, unsigned short prefix_len, char *prefix) |
| #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().
| void lcr_hash_table_contents_free | ( | struct lcr_info ** | hash_table | ) |
Definition at line 95 of file lcr/hash.c.
References lcr_info::from_uri_re, lcr_info::grp_id, lcr_hash_size_param, LM_DBG, lcr_info::next, NULL, lcr_info::prefix, lcr_info::prefix_len, and shm_free.
Referenced by free_shared_memory(), and reload_gws_and_lcrs().
| 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 | |||
| ) |
Definition at line 30 of file lcr/hash.c.
References lcr_info::first_gw, lcr_info::from_uri, lcr_info::from_uri_len, lcr_info::from_uri_re, lcr_info::grp_id, lcr_hash, _str::len, LM_DBG, LM_ERR, lcr_info::next, NULL, lcr_info::prefix, lcr_info::prefix_len, lcr_info::priority, _str::s, and shm_malloc().
Referenced by reload_gws_and_lcrs().
| 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().
1.5.6