diff --git a/res/res_calendar.c b/res/res_calendar.c index 8c349946bb40374978452e6d1ad94c50e53b53df..dd2a643c55849213b6ad9951227b386d44bb1f37 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 <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))) { diff --git a/res/res_clialiases.c b/res/res_clialiases.c index 123fe5adcd6c9023be1e25857a5f247ad72450f8..58e07100d8a11937e1460f2b6712e9e9615139d4 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 <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))) { diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c index 0818c494b25ca5bcae874317bef97425df99ab92..b7df2a13b8f2d71525112ab96b8fb27d7705c505 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 <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) { diff --git a/res/res_config_sqlite.c b/res/res_config_sqlite.c index e075360e5da4c98b94eb689a891705f173ad54f4..835d7791c986a7f93f8de2e0b115e0153a397963 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 <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; diff --git a/res/res_config_sqlite3.c b/res/res_config_sqlite3.c index 17b641dfb1f7009333d14e49e57ca1d928359da8..9482614bdfd2188642633a6e412b5c585e36ce5d 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 <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)))) { diff --git a/res/res_curl.c b/res/res_curl.c index 9008f2add67c6986edadbfbdca4a690373edb599..dede2f1a0d8878c1549ff53e3ae829e871025519 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 <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; diff --git a/res/res_fax.c b/res/res_fax.c index 900f21f668d42aa7c65ba489d69d1db27d1b89aa..dcc3fd4e3adb90a16cfa20f183aa207735a77a0c 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 ec990d5d10c212fe9fb01d18aeaa1303655d84cf..3c61b26fec0995cf5da42ce98a17b072793b40d4 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 <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; diff --git a/res/res_odbc.c b/res/res_odbc.c index 797f31ece89f945ebc527d084f20f00071652d58..7420700e1efae28fa48a1d1ee57c02287ef26950 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 <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))) diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index 4ae7efe8fed1e4907e17016bb0e2dd11a0ef12ae..aa38d60c02466319dbd1f82cb932ae1b2fa5b527 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -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); diff --git a/res/res_smdi.c b/res/res_smdi.c index 354743ccd8a492582fb180f8c647a996f661d0b5..4ae101bd2d588c4f1f5b356cc9da4098b69152d4 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 <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; diff --git a/res/res_snmp.c b/res/res_snmp.c index 4368d84cc6512a20e16f011098d3aae1b70d36b8..60d0070fb2cd1814acd79f8dec6ce5c653014fb8 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 <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()) diff --git a/res/res_timing_kqueue.c b/res/res_timing_kqueue.c index d065df621f42522c87c3bbb882228ff78c6aa381..67ab0ba38a4396f3a03bfd16efb7299c15cf2796 100644 --- a/res/res_timing_kqueue.c +++ b/res/res_timing_kqueue.c @@ -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))) { diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 9e9d47c168171d59e0c3c0b86de7a5009b390437..031d367a640e67d6e9f863ceac8b12ca996c1024 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 <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)) {