modules/userblacklist/db.c File Reference

USERBLACKLIST :: database access

More...

#include "db.h"
#include "db_userblacklist.h"
#include "../../db/db.h"
#include "../../mem/mem.h"
#include "../../ut.h"
#include "../../trie/dtrie.h"

Include dependency graph for modules/userblacklist/db.c:

Go to the source code of this file.

Functions

int db_build_userbl_tree (const str *username, const str *domain, const str *table, struct dtrie_node_t *root, int use_domain)
int db_reload_source (const str *table, struct dtrie_node_t *root)


Detailed Description

USERBLACKLIST :: database access

Definition in file modules/userblacklist/db.c.


Function Documentation

int db_build_userbl_tree ( const str username,
const str domain,
const str table,
struct dtrie_node_t *  root,
int  use_domain 
)

int db_reload_source ( const str table,
struct dtrie_node_t *  root 
)

Rebuild d-tree using database entries

Returns:
negative on failure, positive on success, indicating the number of d-tree entries

Definition at line 102 of file modules/userblacklist/db.c.

References columns, DB_INT, DB_STRING, db_func::free_result, globalblacklist_prefix_col, globalblacklist_whitelist_col, _str::len, LM_ERR, MARK_BLACKLIST, MARK_WHITELIST, NULL, db_func::query, RES_COL_N, RES_ROW_N, RES_ROWS, _str::s, db_func::use_table, userblacklist_dbf, and userblacklist_dbh.

Referenced by reload_sources().


Generated on Wed May 23 20:00:37 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6