From: Andrew Latham Date: Mon, 1 Oct 2012 23:24:10 +0000 (+0000) Subject: Doxygen Cleanup X-Git-Tag: 13.0.0-beta1~2471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e11cc293602b6c35ed94722bc52376acf6c38164;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_calendar.c b/res/res_calendar.c index 8c349946bb..dd2a643c55 100644 --- a/res/res_calendar.c +++ b/res/res_calendar.c @@ -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 core ***/ @@ -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))) { diff --git a/res/res_clialiases.c b/res/res_clialiases.c index 123fe5adcd..58e07100d8 100644 --- a/res/res_clialiases.c +++ b/res/res_clialiases.c @@ -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 core ***/ @@ -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))) { diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c index 0818c494b2..b7df2a13b8 100644 --- a/res/res_config_ldap.c +++ b/res/res_config_ldap.c @@ -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 ldap extended @@ -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) { diff --git a/res/res_config_sqlite.c b/res/res_config_sqlite.c index e075360e5d..835d7791c9 100644 --- a/res/res_config_sqlite.c +++ b/res/res_config_sqlite.c @@ -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 sqlite extended @@ -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; diff --git a/res/res_config_sqlite3.c b/res/res_config_sqlite3.c index 17b641dfb1..9482614bdf 100644 --- a/res/res_config_sqlite3.c +++ b/res/res_config_sqlite3.c @@ -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 sqlite3 core @@ -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)))) { diff --git a/res/res_curl.c b/res/res_curl.c index 9008f2add6..dede2f1a0d 100644 --- a/res/res_curl.c +++ b/res/res_curl.c @@ -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 curl core @@ -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; diff --git a/res/res_fax.c b/res/res_fax.c index 900f21f668..dcc3fd4e3a 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -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; diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index ec990d5d10..3c61b26fec 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -19,12 +19,20 @@ /*! \file * * \brief Routines implementing music on hold - * - * \arg See also \ref Config_moh * * \author Mark Spencer */ +/*! + * \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 win32 core @@ -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; diff --git a/res/res_odbc.c b/res/res_odbc.c index 797f31ece8..7420700e1e 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -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 generic_odbc ltdl @@ -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))) diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index 4ae7efe8fe..aa38d60c02 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -26,6 +26,16 @@ * \author Terry Wilson */ +/*! + * \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 extended ***/ @@ -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); diff --git a/res/res_smdi.c b/res/res_smdi.c index 354743ccd8..4ae101bd2d 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -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 core ***/ @@ -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; diff --git a/res/res_snmp.c b/res/res_snmp.c index 4368d84cc6..60d0070fb2 100644 --- a/res/res_snmp.c +++ b/res/res_snmp.c @@ -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 netsnmp extended @@ -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()) diff --git a/res/res_timing_kqueue.c b/res/res_timing_kqueue.c index d065df621f..67ab0ba38a 100644 --- a/res/res_timing_kqueue.c +++ b/res/res_timing_kqueue.c @@ -21,6 +21,8 @@ * \author Tilghman Lesher \verbatim \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))) { diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 9e9d47c168..031d367a64 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -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 iksemel openssl @@ -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)) {