FreeSWITCH API Documentation
1.7.0
|
Functions | |
switch_status_t | switch_core_directory_open (switch_directory_handle_t *dh, char *module_name, char *source, char *dsn, char *passwd, switch_memory_pool_t *pool) |
Open a directory handle. More... | |
switch_status_t | switch_core_directory_query (switch_directory_handle_t *dh, char *base, char *query) |
Query a directory handle. More... | |
switch_status_t | switch_core_directory_next (switch_directory_handle_t *dh) |
Obtain the next record in a lookup. More... | |
switch_status_t | switch_core_directory_next_pair (switch_directory_handle_t *dh, char **var, char **val) |
Obtain the next name/value pair in the current record. More... | |
switch_status_t | switch_core_directory_close (switch_directory_handle_t *dh) |
Close an open directory handle. More... | |
switch_status_t switch_core_directory_close | ( | switch_directory_handle_t * | dh | ) |
Close an open directory handle.
dh | a directory handle to close |
Definition at line 76 of file switch_core_directory.c.
References switch_core_destroy_memory_pool, SWITCH_DIRECTORY_FLAG_FREE_POOL, switch_test_flag, and UNPROTECT_INTERFACE.
switch_status_t switch_core_directory_next | ( | switch_directory_handle_t * | dh | ) |
Obtain the next record in a lookup.
dh | a directory handle to use |
Definition at line 66 of file switch_core_directory.c.
switch_status_t switch_core_directory_next_pair | ( | switch_directory_handle_t * | dh, |
char ** | var, | ||
char ** | val | ||
) |
Obtain the next name/value pair in the current record.
dh | a directory handle to use |
var | a pointer to pointer of the name to fill in |
val | a pointer to pointer of the value to fill in |
Definition at line 71 of file switch_core_directory.c.
switch_status_t switch_core_directory_open | ( | switch_directory_handle_t * | dh, |
char * | module_name, | ||
char * | source, | ||
char * | dsn, | ||
char * | passwd, | ||
switch_memory_pool_t * | pool | ||
) |
Open a directory handle.
dh | a directory handle to use |
module_name | the directory module to use |
source | the source of the db (ip, hostname, path etc) |
dsn | the username or designation of the lookup |
passwd | the password |
pool | the pool to use (NULL for new pool) |
Definition at line 38 of file switch_core_directory.c.
References pool, SWITCH_CHANNEL_LOG, switch_core_new_memory_pool, SWITCH_DIRECTORY_FLAG_FREE_POOL, switch_loadable_module_get_directory_interface(), SWITCH_LOG_ERROR, switch_log_printf(), switch_set_flag, SWITCH_STATUS_GENERR, SWITCH_STATUS_SUCCESS, and UNPROTECT_INTERFACE.
switch_status_t switch_core_directory_query | ( | switch_directory_handle_t * | dh, |
char * | base, | ||
char * | query | ||
) |
Query a directory handle.
dh | a directory handle to use |
base | the base to query against |
query | a string of filters or query data |
Definition at line 61 of file switch_core_directory.c.