|
static void | __init_find_buf (void) |
|
static void | __init_modify2_buf (void) |
|
static void | __init_modify3_buf (void) |
|
static void | __init_modify_buf (void) |
|
static void | __init_scratch2_buf (void) |
|
static void | __init_scratch_buf (void) |
|
static void | __init_sql2_buf (void) |
|
static void | __init_sql_buf (void) |
|
static void | __reg_module (void) |
|
static void | __unreg_module (void) |
|
struct ast_module * | AST_MODULE_SELF_SYM (void) |
|
static struct ast_config * | config_mysql (const char *database, const char *table, const char *file, struct ast_config *cfg, struct ast_flags config_flags, const char *unused, const char *who_asked) |
|
static char * | decode_chunk (char *chunk) |
|
static int | destroy_mysql (const char *database, const char *table, const char *keyfield, const char *lookup, const struct ast_variable *rt_fields) |
|
static void | destroy_table (struct tables *table) |
|
static struct columns * | find_column (struct tables *table, const char *colname) |
|
static struct mysql_conn * | find_database (const char *database, int for_write) |
|
static struct tables * | find_table (const char *database, const char *tablename) |
|
static char * | handle_cli_realtime_mysql_cache (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
|
static char * | handle_cli_realtime_mysql_status (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
|
static int | load_module (void) |
|
static int | load_mysql_config (struct ast_config *config, const char *category, struct mysql_conn *conn) |
|
static int | mysql_reconnect (struct mysql_conn *conn) |
|
static int | parse_config (int reload) |
|
static struct ast_config * | realtime_multi_mysql (const char *database, const char *table, const struct ast_variable *rt_fields) |
|
static struct ast_variable * | realtime_mysql (const char *database, const char *table, const struct ast_variable *rt_fields) |
|
static void | release_table (struct tables *table) |
|
static int | reload (void) |
|
static int | require_mysql (const char *database, const char *tablename, va_list ap) |
|
static int | store_mysql (const char *database, const char *table, const struct ast_variable *rt_fields) |
|
static int | unload_module (void) |
|
static int | unload_mysql (const char *database, const char *tablename) |
|
static int | update2_mysql (const char *database, const char *tablename, const struct ast_variable *lookup_fields, const struct ast_variable *update_fields) |
|
static int | update_mysql (const char *database, const char *tablename, const char *keyfield, const char *lookup, const struct ast_variable *rt_fields) |
|
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "MySQL RealTime Configuration Driver" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "da6642af068ee5e6490c5b1d2cc1d238" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .reload = reload, .load_pri = AST_MODPRI_REALTIME_DRIVER, .requires = "extconfig", } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_cli_entry | cli_realtime_mysql_status [] |
|
static struct databases | databases = { .first = NULL, .last = NULL, .lock = { PTHREAD_RWLOCK_INITIALIZER , NULL, {1, 0} } , } |
|
static char * | ESCAPE_CLAUSE = " ESCAPE '\\\\'" |
|
static struct ast_threadstorage | find_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_find_buf , .custom_init = NULL , } |
|
static struct ast_threadstorage | modify2_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_modify2_buf , .custom_init = NULL , } |
|
static struct ast_threadstorage | modify3_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_modify3_buf , .custom_init = NULL , } |
|
static struct ast_threadstorage | modify_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_modify_buf , .custom_init = NULL , } |
|
static struct ast_config_engine | mysql_engine |
|
static struct mysql_tables | mysql_tables = { .first = NULL, .last = NULL, .lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } , } |
|
static struct ast_threadstorage | scratch2_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_scratch2_buf , .custom_init = NULL , } |
|
static struct ast_threadstorage | scratch_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_scratch_buf , .custom_init = NULL , } |
|
static struct ast_threadstorage | sql2_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_sql2_buf , .custom_init = NULL , } |
|
static struct ast_threadstorage | sql_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_sql_buf , .custom_init = NULL , } |
|
MySQL CDR backend.
Definition in file res_config_mysql.c.