#include <stdlib.h>#include <stdio.h>#include <string.h>#include "../../str.h"#include "../../db/db.h"#include "../../dprint.h"#include "mapping.h"

Go to the source code of this file.
Functions | |
| void | extern_account_free (extern_account_t *accounts, int count) |
| void | extern_user_free (extern_user_t *users, int count) |
| extern_account_t * | find_accounts (char *sip_user, int *count) |
| char * | find_sip_user (char *extern_user) |
| extern_user_t * | find_users (char *sip_user, int *count) |
Variables | |
| str | db_table |
| str | db_url |
| db_func_t | pa_dbf |
| void extern_account_free | ( | extern_account_t * | accounts, | |
| int | count | |||
| ) |
Definition at line 58 of file mapping.c.
References pkg_free.
Referenced by pipe_handle_message(), pipe_handle_publish(), and pipe_handle_subscribe().
| void extern_user_free | ( | extern_user_t * | users, | |
| int | count | |||
| ) |
Definition at line 73 of file mapping.c.
References pkg_free.
Referenced by pipe_handle_message(), and pipe_handle_subscribe().
| extern_account_t* find_accounts | ( | char * | sip_user, | |
| int * | count | |||
| ) |
Definition at line 156 of file mapping.c.
References db_func::close, DB_STRING, db_func::free_result, db_func::init, LM_DBG, LM_ERR, db_res::n, db_val_t::nul, NULL, OP_EQ, pa_db, extern_account_t::password, pkg_malloc, extern_account_t::protocol, db_func::query, ROW_VALUES, db_res::rows, db_val_t::string_val, db_val_t::type, db_func::use_table, extern_account_t::username, and db_val_t::val.
Referenced by pipe_handle_message(), pipe_handle_publish(), and pipe_handle_subscribe().
| char* find_sip_user | ( | char * | extern_user | ) |
Definition at line 86 of file mapping.c.
References db_func::close, DB_STR, db_func::free_result, db_func::init, _str::len, LM_DBG, LM_ERR, db_res::n, db_val_t::nul, NULL, OP_EQ, pa_db, pkg_malloc, db_func::query, ROW_VALUES, db_res::rows, _str::s, db_val_t::str_val, db_val_t::string_val, db_val_t::type, db_func::use_table, and db_val_t::val.
Referenced by buddy_signed_off(), buddy_signed_on(), buddy_status_changed(), and write_conv().
| extern_user_t* find_users | ( | char * | sip_user, | |
| int * | count | |||
| ) |
Definition at line 245 of file mapping.c.
References db_func::close, DB_STRING, db_func::free_result, db_func::init, LM_DBG, LM_ERR, db_res::n, db_val_t::nul, NULL, OP_EQ, pa_db, pkg_malloc, extern_user_t::protocol, db_func::query, ROW_VALUES, db_res::rows, db_val_t::string_val, db_val_t::type, db_func::use_table, extern_user_t::username, and db_val_t::val.
Referenced by pipe_handle_message(), and pipe_handle_subscribe().
Database URL
Definition at line 61 of file permissions.c.
Definition at line 89 of file presence.c.
Referenced by add_waiting_watchers(), delete_db_subs(), get_database_info(), get_db_subs_auth(), get_p_notify_body(), get_sphere(), get_subs_db(), get_wi_subs_db(), insert_db_subs_auth(), msg_presentity_clean(), msg_watchers_clean(), pres_htable_restore(), restore_db_subs(), timer_db_update(), update_presentity(), and update_subs_db().
1.5.6