|
Asterisk - The Open Source Telephony Project
18.5.0
|
#include <pj/types.h>#include <pj/pool.h>

Go to the source code of this file.
Functions | |
| void | ast_pjproject_caching_pool_destroy (pj_caching_pool *cp) |
| Destroy caching pool factory and all cached pools. More... | |
| void | ast_pjproject_caching_pool_init (pj_caching_pool *cp, const pj_pool_factory_policy *policy, pj_size_t max_capacity) |
| Initialize the caching pool factory. More... | |
| int | ast_pjproject_get_buildopt (char *option, char *format_string,...) |
| Retrieve a pjproject build option. More... | |
| void | ast_pjproject_log_intercept_begin (int fd) |
| Begin PJPROJECT log interception for CLI output. More... | |
| void | ast_pjproject_log_intercept_end (void) |
| End PJPROJECT log interception for CLI output. More... | |
| int | ast_sockaddr_from_pj_sockaddr (struct ast_sockaddr *addr, const pj_sockaddr *pjaddr) |
| Fill an ast_sockaddr from a pj_sockaddr. More... | |
| int | ast_sockaddr_to_pj_sockaddr (const struct ast_sockaddr *addr, pj_sockaddr *pjaddr) |
| Fill a pj_sockaddr from an ast_sockaddr. More... | |
| void ast_pjproject_caching_pool_destroy | ( | pj_caching_pool * | cp | ) |
Destroy caching pool factory and all cached pools.
| cp | Caching pool factory to destroy |
Definition at line 472 of file res_pjproject.c.
Referenced by rtp_terminate_pjproject(), unload_module(), and unload_pjsip().
| void ast_pjproject_caching_pool_init | ( | pj_caching_pool * | cp, |
| const pj_pool_factory_policy * | policy, | ||
| pj_size_t | max_capacity | ||
| ) |
Initialize the caching pool factory.
| cp | Caching pool factory to initialize |
| policy | Pool factory policy |
| max_capacity | Total capacity to be retained in the cache. Zero disables caching. |
Definition at line 465 of file res_pjproject.c.
References ast_option_pjproject_cache_pools.
Referenced by load_module(), and load_pjsip().
| int ast_pjproject_get_buildopt | ( | char * | option, |
| char * | format_string, | ||
| ... | |||
| ) |
Retrieve a pjproject build option.
| option | The build option requested |
| format_string | A scanf-style format string to parse the option value into |
| ... | Pointers to variables to receive the values parsed |
| The | number of values parsed |
Sample Usage:
Definition at line 246 of file res_pjproject.c.
References ast_alloca, AST_VECTOR_GET, and AST_VECTOR_SIZE.
Referenced by ast_sip_initialize_sorcery_location(), and load_module().
| void ast_pjproject_log_intercept_begin | ( | int | fd | ) |
Begin PJPROJECT log interception for CLI output.
| fd | CLI file descriptior to send intercepted output. |
Definition at line 269 of file res_pjproject.c.
References ast_mutex_lock, pjproject_log_intercept_data::fd, and pjproject_log_intercept_data::thread.
Referenced by do_cli_dump_endpt().
| void ast_pjproject_log_intercept_end | ( | void | ) |
End PJPROJECT log interception for CLI output.
Definition at line 278 of file res_pjproject.c.
References ast_mutex_unlock, AST_PTHREADT_NULL, pjproject_log_intercept_data::fd, and pjproject_log_intercept_data::thread.
Referenced by do_cli_dump_endpt().
| int ast_sockaddr_from_pj_sockaddr | ( | struct ast_sockaddr * | addr, |
| const pj_sockaddr * | pjaddr | ||
| ) |
Fill an ast_sockaddr from a pj_sockaddr.
| addr | The target address to receive the copied address |
| pjaddr | The source address to copy |
| 0 | Success |
| -1 | Failure |
Definition at line 502 of file res_pjproject.c.
References HAVE_PJPROJECT_BUNDLED, ast_sockaddr::len, and ast_sockaddr::ss.
Referenced by AST_TEST_DEFINE().
| int ast_sockaddr_to_pj_sockaddr | ( | const struct ast_sockaddr * | addr, |
| pj_sockaddr * | pjaddr | ||
| ) |
Fill a pj_sockaddr from an ast_sockaddr.
| addr | The source address to copy |
| pjaddr | The target address to receive the copied address |
| 0 | Success |
| -1 | Failure |
Definition at line 477 of file res_pjproject.c.
References ast_sockaddr::ss.
Referenced by AST_TEST_DEFINE(), and rtp_add_candidates_to_ice().
1.8.13