domain/hash.c File Reference

#include "../../dprint.h"
#include "../../ut.h"
#include "../../hash_func.h"
#include "../../mem/shm_mem.h"
#include "../../mi/mi.h"
#include "domain_mod.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>

Include dependency graph for domain/hash.c:

Go to the source code of this file.

Defines

#define dom_hash(_s)   core_case_hash( _s, 0, DOM_HASH_SIZE)

Functions

void hash_table_free (struct domain_list **hash_table)
int hash_table_install (struct domain_list **hash_table, char *domain)
int hash_table_lookup (str *domain)
int hash_table_mi_print (struct domain_list **hash_table, struct mi_node *rpl)


Define Documentation

#define dom_hash ( _s   )     core_case_hash( _s, 0, DOM_HASH_SIZE)

Definition at line 37 of file domain/hash.c.

Referenced by hash_table_install(), and hash_table_lookup().


Function Documentation

void hash_table_free ( struct domain_list **  hash_table  ) 

Definition at line 108 of file domain/hash.c.

References DOM_HASH_SIZE, domain_list::domain, domain_list::next, NULL, _str::s, and shm_free.

Referenced by destroy(), and reload_domain_table().

int hash_table_install ( struct domain_list **  hash_table,
char *  domain 
)

int hash_table_lookup ( str domain  ) 

Definition at line 70 of file domain/hash.c.

References dom_hash, domain_list::domain, hash_table, _str::len, domain_list::next, NULL, and _str::s.

Referenced by is_domain_local().

int hash_table_mi_print ( struct domain_list **  hash_table,
struct mi_node rpl 
)


Generated on Tue May 22 16:00:39 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6