Functions | Variables

userblacklist.c File Reference

USERBLACKLIST :: module definitions

More...

#include <string.h>
#include "../../parser/parse_uri.h"
#include "../../mem/shm_mem.h"
#include "../../sr_module.h"
#include "../../lib/kmi/mi.h"
#include "../../mem/mem.h"
#include "../../usr_avp.h"
#include "../../locking.h"
#include "../../error.h"
#include "../../ut.h"
#include "../../mod_fix.h"
#include "../../lib/trie/dtrie.h"
#include "db.h"
#include "db_userblacklist.h"
Include dependency graph for userblacklist.c:

Go to the source code of this file.

Functions

Variables


Detailed Description

Definition in file userblacklist.c.


Function Documentation

static int add_source ( const char *  table  )  [static]
Returns:
zero on success, negative on errors

Definition at line 372 of file userblacklist.c.

References dtrie_init(), and match_mode.

Here is the call graph for this function:

static int reload_sources ( void   )  [static]
Returns:
0 on success, -1 otherwise

Definition at line 545 of file userblacklist.c.

References db_reload_source(), _str::len, and _str::s.

Here is the call graph for this function:

static struct dtrie_node_t* table2dt ( const char *  table  )  [static, read]
Returns:
pointer to d-tree root on success, NULL otherwise

Definition at line 354 of file userblacklist.c.


Variable Documentation

int match_mode = 10
Returns:
negative on failure, postive on success, indicating the number of d-tree entries

Definition at line 77 of file userblacklist.c.

Referenced by add_source(), and db_reload_source().

int use_domain = 0

Should does_uri_exist honor the domain part ?

Use domain in is_user_in.

Definition at line 76 of file userblacklist.c.