/usr/include/asterisk/res_pjproject.h is in asterisk-dev 1:13.14.1~dfsg-2+deb9u4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | /*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2016, Fairview 5 Engineering, LLC
*
* George Joseph <george.joseph@fairview5.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, mailing lists and IRC
* channels for your use.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
#ifndef _RES_PJPROJECT_H
#define _RES_PJPROJECT_H
/*! \brief Determines whether the res_pjproject module is loaded */
#define CHECK_PJPROJECT_MODULE_LOADED() \
do { \
if (!ast_module_check("res_pjproject.so")) { \
return AST_MODULE_LOAD_DECLINE; \
} \
} while(0)
/*!
* \brief Retrieve a pjproject build option
*
* \param option The build option requested
* \param format_string A scanf-style format string to parse the option value into
* \param ... Pointers to variables to receive the values parsed
*
* \retval The number of values parsed
*
* \since 13.8.0
*
* \note The option requested must be from those returned by pj_dump_config()
* which can be displayed with the 'pjsip show buildopts' CLI command.
*
* <b>Sample Usage:</b>
* \code
*
* int max_hostname;
*
* ast_sip_get_pjproject_buildopt("PJ_MAX_HOSTNAME", "%d", &max_hostname);
*
* \endcode
*
*/
int ast_pjproject_get_buildopt(char *option, char *format_string, ...) __attribute__((format(scanf, 2, 3)));
/*!
* \brief Begin PJPROJECT log interception for CLI output.
* \since 13.8.0
*
* \param fd CLI file descriptior to send intercepted output.
*
* \note ast_pjproject_log_intercept_begin() and
* ast_pjproject_log_intercept_end() must always be called
* in pairs.
*
* \return Nothing
*/
void ast_pjproject_log_intercept_begin(int fd);
/*!
* \brief End PJPROJECT log interception for CLI output.
* \since 13.8.0
*
* \note ast_pjproject_log_intercept_begin() and
* ast_pjproject_log_intercept_end() must always be called
* in pairs.
*
* \return Nothing
*/
void ast_pjproject_log_intercept_end(void);
/*!
* \brief Increment the res_pjproject reference count.
*
* This ensures graceful shutdown happens in the proper order.
*/
void ast_pjproject_ref(void);
/*!
* \brief Decrement the res_pjproject reference count.
*
* This ensures graceful shutdown happens in the proper order.
*/
void ast_pjproject_unref(void);
#endif /* _RES_PJPROJECT_H */
|