mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Doxygen Cleanup
Start adding configuration file linking and pages. Add module loading doxygen block. Breaking up commits to keep it easy to track (issue ASTERISK-20259) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -23,6 +23,16 @@
|
||||
* \todo Support writing attendees
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_calendar uses the configuration file \ref calendar.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page calendar.conf calendar.conf
|
||||
* \verbinclude calendar.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<support_level>core</support_level>
|
||||
***/
|
||||
@@ -1830,6 +1840,16 @@ static int unload_module(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if (!(calendars = ao2_container_alloc(CALENDAR_BUCKETS, calendar_hash_fn, calendar_cmp_fn))) {
|
||||
|
@@ -26,6 +26,16 @@
|
||||
* CLI commands.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_clialiases uses the configuration file \ref cli_aliases.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page cli_aliases.conf cli_aliases.conf
|
||||
* \verbinclude cli_aliases.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<support_level>core</support_level>
|
||||
***/
|
||||
@@ -238,7 +248,16 @@ static int unload_module(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*! \brief Function called to load the module */
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if (!(cli_aliases = ao2_container_alloc(MAX_ALIAS_BUCKETS, alias_hash_cb, alias_cmp_cb))) {
|
||||
|
@@ -31,6 +31,16 @@
|
||||
* OpenLDAP http://www.openldap.org
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_config_ldap uses the configuration file \ref res_ldap.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page res_ldap.conf res_ldap.conf
|
||||
* \verbinclude res_ldap.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>ldap</depend>
|
||||
<support_level>extended</support_level>
|
||||
@@ -1542,6 +1552,16 @@ static struct ast_config_engine ldap_engine = {
|
||||
.update2_func = update2_ldap,
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if (parse_config() < 0) {
|
||||
|
@@ -71,6 +71,16 @@
|
||||
* \brief res_config_sqlite module.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_config_sqlite uses the configuration file \ref res_config_sqlite.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page res_config_sqlite.conf res_config_sqlite.conf
|
||||
* \verbinclude res_config_sqlite.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>sqlite</depend>
|
||||
<support_level>extended</support_level>
|
||||
@@ -1758,6 +1768,16 @@ static int unload_module(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
char *errormsg = NULL;
|
||||
|
@@ -29,6 +29,16 @@
|
||||
* \ingroup resources
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_config_sqlite3 uses the configuration file \ref res_config_sqlite3.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page res_config_sqlite3.conf res_config_sqlite3.conf
|
||||
* \verbinclude res_config_sqlite3.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>sqlite3</depend>
|
||||
<support_level>core</support_level>
|
||||
@@ -1162,6 +1172,16 @@ static int unload_module(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if (!((databases = ao2_container_alloc(DB_BUCKETS, db_hash_fn, db_cmp_fn)))) {
|
||||
|
@@ -26,6 +26,16 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_curl uses the configuration file \ref res_curl.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page res_curl.conf res_curl.conf
|
||||
* \verbinclude res_curl.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>curl</depend>
|
||||
<support_level>core</support_level>
|
||||
@@ -65,6 +75,16 @@ static int unload_module(void)
|
||||
return res;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
int res = 0;
|
||||
|
@@ -54,6 +54,16 @@
|
||||
* \ingroup applications
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_fax uses the configuration file \ref res_fax.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page res_fax.conf res_fax.conf
|
||||
* \verbinclude res_fax.conf.sample
|
||||
*/
|
||||
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
@@ -4104,7 +4114,16 @@ static int unload_module(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*! \brief load res_fax */
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
int res;
|
||||
|
@@ -20,11 +20,19 @@
|
||||
*
|
||||
* \brief Routines implementing music on hold
|
||||
*
|
||||
* \arg See also \ref Config_moh
|
||||
*
|
||||
* \author Mark Spencer <markster@digium.com>
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_musiconhold uses the configuration file \ref musiconhold.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page musiconhold.conf musiconhold.conf
|
||||
* \verbinclude musiconhold.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<conflict>win32</conflict>
|
||||
<support_level>core</support_level>
|
||||
@@ -1941,6 +1949,16 @@ static int moh_class_cmp(void *obj, void *arg, int flags)
|
||||
CMP_MATCH | CMP_STOP;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
int res;
|
||||
|
@@ -30,6 +30,16 @@
|
||||
* \arg See also: \ref cdr_odbc
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_odbc uses the configuration file \ref res_odbc.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page res_odbc.conf res_odbc.conf
|
||||
* \verbinclude res_odbc.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>generic_odbc</depend>
|
||||
<depend>ltdl</depend>
|
||||
@@ -1875,6 +1885,16 @@ static int unload_module(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if (!(class_container = ao2_container_alloc(1, null_hash_fn, ao2_match_by_addr)))
|
||||
|
@@ -26,6 +26,16 @@
|
||||
* \author Terry Wilson <twilson@digium.com>
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_phoneprov uses the configuration file \ref phoneprov.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page phoneprov.conf phoneprov.conf
|
||||
* \verbinclude phoneprov.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
@@ -1270,6 +1280,16 @@ static struct ast_http_uri phoneprovuri = {
|
||||
.key = __FILE__,
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
profiles = ao2_container_alloc(MAX_PROFILE_BUCKETS, profile_hash_fn, profile_cmp_fn);
|
||||
|
@@ -31,6 +31,16 @@
|
||||
* polling thread handle it.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_smdi uses the configuration file \ref smdi.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page smdi.conf smdi.conf
|
||||
* \verbinclude smdi.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<support_level>core</support_level>
|
||||
***/
|
||||
@@ -1396,6 +1406,16 @@ static struct ast_custom_function smdi_msg_function = {
|
||||
|
||||
static int _unload_module(int fromload);
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
int res;
|
||||
|
@@ -17,6 +17,16 @@
|
||||
* http://net-snmp.sourceforge.net/
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_snmp uses the configuration file \ref res_snmp.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page res_snmp.conf res_snmp.conf
|
||||
* \verbinclude res_snmp.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>netsnmp</depend>
|
||||
<support_level>extended</support_level>
|
||||
@@ -94,6 +104,16 @@ static int load_config(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if(!load_config())
|
||||
|
@@ -21,6 +21,8 @@
|
||||
* \author Tilghman Lesher \verbatim <tlesher AT digium DOT com> \endverbatim
|
||||
*
|
||||
* \brief kqueue timing interface
|
||||
*
|
||||
* \ingroup resource
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
@@ -360,6 +362,16 @@ AST_TEST_DEFINE(test_kqueue_timing)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if (!(kqueue_timers = ao2_container_alloc(563, kqueue_timer_hash, kqueue_timer_cmp))) {
|
||||
|
@@ -31,6 +31,16 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \li The resource res_xmpp uses the configuration file \ref xmpp.conf
|
||||
* \addtogroup configuration_file Configuration Files
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \page xmpp.conf xmpp.conf
|
||||
* \verbinclude xmpp.conf.sample
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>iksemel</depend>
|
||||
<use type="external">openssl</use>
|
||||
@@ -4317,6 +4327,16 @@ static int client_buddy_handler(const struct aco_option *opt, struct ast_variabl
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Load the module
|
||||
*
|
||||
* Module loading including tests for configuration or dependencies.
|
||||
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
|
||||
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
|
||||
* tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
|
||||
* configuration file or other non-critical problem return
|
||||
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
|
||||
*/
|
||||
static int load_module(void)
|
||||
{
|
||||
if (aco_info_init(&cfg_info)) {
|
||||
|
Reference in New Issue
Block a user