#include "../../str.h"#include "../../db/db.h"


Go to the source code of this file.
Defines | |
| #define | _DP_DB_H |
| #define | ATTRS_COL "attrs" |
| #define | DP_TABLE_COL_NO 8 |
| #define | DP_TABLE_NAME "dialplan" |
| #define | DP_TABLE_VERSION 1 |
| #define | DPID_COL "dpid" |
| #define | MATCH_EXP_COL "match_exp" |
| #define | MATCH_LEN_COL "match_len" |
| #define | MATCH_OP_COL "match_op" |
| #define | PR_COL "pr" |
| #define | REPL_EXP_COL "repl_exp" |
| #define | SUBST_EXP_COL "subst_exp" |
Functions | |
| int | dp_connect_db () |
| void | dp_disconnect_db () |
| int | init_db_data () |
Variables | |
| str | attrs_column |
| str | dp_db_url |
| str | dp_table_name |
| str | dpid_column |
| str | match_exp_column |
| str | match_len_column |
| str | match_op_column |
| str | pr_column |
| str | repl_exp_column |
| str | subst_exp_column |
| #define DP_TABLE_COL_NO 8 |
| #define DP_TABLE_VERSION 1 |
| int dp_connect_db | ( | ) |
Definition at line 112 of file dp_db.c.
References db_func::init, LM_CRIT, and LM_ERR.
Referenced by child_init(), init_db_data(), and mi_child_init().
| void dp_disconnect_db | ( | ) |
Definition at line 128 of file dp_db.c.
References db_func::close.
Referenced by init_db_data(), and mod_destroy().
| int init_db_data | ( | ) |
Definition at line 75 of file dp_db.c.
References db_bind_mod(), db_check_table_version(), dp_connect_db(), dp_disconnect_db(), dp_load_db(), DP_TABLE_VERSION, LM_ERR, and _str::s.
Referenced by init_data().
1.5.6