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@374166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/78/78/1
Andrew Latham 13 years ago
parent e11cc29360
commit 99e1174bfa

@ -21,12 +21,18 @@
* *
* \author Matthew Fredrickson <creslin@digium.com> * \author Matthew Fredrickson <creslin@digium.com>
* *
* \par See also
* \arg Config_alsa
*
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_alsa uses the configuration file \ref alsa.conf
* \addtogroup configuration_file
*/
/*! \page alsa.conf alsa.conf
* \verbinclude alsa.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<depend>alsa</depend> <depend>alsa</depend>
<support_level>extended</support_level> <support_level>extended</support_level>
@ -925,6 +931,16 @@ static struct ast_cli_entry cli_alsa[] = {
AST_CLI_DEFINE(console_mute, "Disable/Enable mic input"), AST_CLI_DEFINE(console_mute, "Disable/Enable mic input"),
}; };
/*!
* \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) static int load_module(void)
{ {
struct ast_config *cfg; struct ast_config *cfg;

@ -47,6 +47,15 @@
* - console_video support * - console_video support
*/ */
/*!
* \li The channel chan_console uses the configuration file \ref console.conf
* \addtogroup configuration_file
*/
/*! \page console.conf console.conf
* \verbinclude console.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<depend>portaudio</depend> <depend>portaudio</depend>
<support_level>extended</support_level> <support_level>extended</support_level>
@ -1469,6 +1478,16 @@ static int unload_module(void)
return 0; 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) static int load_module(void)
{ {
struct ast_format tmpfmt; struct ast_format tmpfmt;

@ -29,14 +29,20 @@
* You need to install libraries before you attempt to compile * You need to install libraries before you attempt to compile
* and install the DAHDI channel. * and install the DAHDI channel.
* *
* \par See also
* \arg \ref Config_dahdi
*
* \ingroup channel_drivers * \ingroup channel_drivers
* *
* \todo Deprecate the "musiconhold" configuration option post 1.4 * \todo Deprecate the "musiconhold" configuration option post 1.4
*/ */
/*!
* \li The channel chan_dahdi uses the configuration file \ref chan_dahdi.conf
* \addtogroup configuration_file
*/
/*! \page chan_dahdi.conf chan_dahdi.conf
* \verbinclude chan_dahdi.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<use type="module">res_smdi</use> <use type="module">res_smdi</use>
<depend>dahdi</depend> <depend>dahdi</depend>
@ -19096,6 +19102,16 @@ static const struct ast_data_entry dahdi_data_providers[] = {
AST_DATA_ENTRY("asterisk/channel/dahdi/version", &dahdi_version_data_provider) AST_DATA_ENTRY("asterisk/channel/dahdi/version", &dahdi_version_data_provider)
}; };
/*!
* \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) static int load_module(void)
{ {
int res; int res;

@ -31,6 +31,15 @@
* \todo Fix native bridging. * \todo Fix native bridging.
*/ */
/*!
* \li The channel chan_gtalk uses the configuration file \ref gtalk.conf
* \addtogroup configuration_file
*/
/*! \page gtalk.conf gtalk.conf
* \verbinclude gtalk.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<defaultenabled>no</defaultenabled> <defaultenabled>no</defaultenabled>
<depend>iksemel</depend> <depend>iksemel</depend>
@ -2297,7 +2306,16 @@ static int gtalk_load_config(void)
return 1; return 1;
} }
/*! \brief Load module into PBX, register channel */ /*!
* \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) static int load_module(void)
{ {
struct ast_sockaddr bindaddr_tmp; struct ast_sockaddr bindaddr_tmp;

@ -31,6 +31,15 @@
* \todo Implement musicclass settings for IAX2 devices * \todo Implement musicclass settings for IAX2 devices
*/ */
/*!
* \li The channel chan_iax uses the configuration file \ref iax.conf
* \addtogroup configuration_file
*/
/*! \page iax.conf iax.conf
* \verbinclude iax.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<use type="external">crypto</use> <use type="external">crypto</use>
<support_level>core</support_level> <support_level>core</support_level>
@ -14888,7 +14897,16 @@ static const struct ast_data_entry iax2_data_providers[] = {
AST_DATA_ENTRY("asterisk/channel/iax2/users", &users_data_provider), AST_DATA_ENTRY("asterisk/channel/iax2/users", &users_data_provider),
}; };
/*! \brief Load IAX2 module, load configuraiton ---*/ /*!
* \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) static int load_module(void)
{ {
static const char config[] = "iax.conf"; static const char config[] = "iax.conf";

@ -27,6 +27,15 @@
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_jingle uses the configuration file \ref jingle.conf
* \addtogroup configuration_file
*/
/*! \page jingle.conf jingle.conf
* \verbinclude jingle.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<depend>iksemel</depend> <depend>iksemel</depend>
<depend>res_jabber</depend> <depend>res_jabber</depend>
@ -1936,7 +1945,16 @@ static int jingle_load_config(void)
return 1; return 1;
} }
/*! \brief Load module into PBX, register channel */ /*!
* \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) static int load_module(void)
{ {
struct ast_sockaddr ourip_tmp; struct ast_sockaddr ourip_tmp;

@ -22,12 +22,18 @@
* *
* \author Mark Spencer <markster@digium.com> * \author Mark Spencer <markster@digium.com>
* *
* \par See also
* \arg \ref Config_mgcp
*
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_mgcp uses the configuration file \ref mgcp.conf
* \addtogroup configuration_file
*/
/*! \page mgcp.conf mgcp.conf
* \verbinclude mgcp.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<use type="module">res_pktccops</use> <use type="module">res_pktccops</use>
<support_level>extended</support_level> <support_level>extended</support_level>
@ -4794,7 +4800,16 @@ static int reload_config(int reload)
return 0; return 0;
} }
/*! \brief load_module: PBX load module - initialization ---*/ /*!
* \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) static int load_module(void)
{ {
struct ast_format tmpfmt; struct ast_format tmpfmt;

@ -29,6 +29,15 @@
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_misdn uses the configuration file \ref misdn.conf
* \addtogroup configuration_file
*/
/*! \page misdn.conf misdn.conf
* \verbinclude misdn.conf.sample
*/
/*! /*!
* \note * \note
* To use the CCBS/CCNR supplementary service feature and other * To use the CCBS/CCNR supplementary service feature and other
@ -11275,6 +11284,16 @@ static int unload_module(void)
return 0; 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) static int load_module(void)
{ {
int i, port; int i, port;

@ -27,6 +27,15 @@
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_motif uses the configuration file \ref motif.conf
* \addtogroup configuration_file
*/
/*! \page motif.conf motif.conf
* \verbinclude motif.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<depend>iksemel</depend> <depend>iksemel</depend>
<depend>res_xmpp</depend> <depend>res_xmpp</depend>
@ -2498,7 +2507,16 @@ static int custom_transport_handler(const struct aco_option *opt, struct ast_var
return 0; return 0;
} }
/*! \brief Load module into PBX, register channel */ /*!
* \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) static int load_module(void)
{ {
if (!(jingle_tech.capabilities = ast_format_cap_alloc())) { if (!(jingle_tech.capabilities = ast_format_cap_alloc())) {

@ -27,12 +27,18 @@
* \author Mark Spencer <markster@digium.com> * \author Mark Spencer <markster@digium.com>
* \author Luigi Rizzo * \author Luigi Rizzo
* *
* \par See also
* \arg \ref Config_oss
*
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_oss uses the configuration file \ref oss.conf
* \addtogroup configuration_file
*/
/*! \page oss.conf oss.conf
* \verbinclude oss.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<depend>oss</depend> <depend>oss</depend>
<support_level>extended</support_level> <support_level>extended</support_level>
@ -1436,6 +1442,16 @@ error:
#endif #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) static int load_module(void)
{ {
struct ast_config *cfg = NULL; struct ast_config *cfg = NULL;

@ -92,6 +92,19 @@
* the sip_hangup() function * the sip_hangup() function
*/ */
/*!
* \li The channel chan_sip uses configuration files \ref sip.conf and \ref sip_notify.conf
* \addtogroup configuration_file
*/
/*! \page sip.conf sip.conf
* \verbinclude sip.conf.sample
*/
/*! \page sip_notify.conf sip_notify.conf
* \verbinclude sip_notify.conf.sample
*/
/*! /*!
* \page sip_tcp_tls SIP TCP and TLS support * \page sip_tcp_tls SIP TCP and TLS support
* *
@ -815,13 +828,15 @@ static unsigned char global_refer_addheaders; /*!< Add extra headers to outgoing
static int can_parse_xml; static int can_parse_xml;
/*! \name Object counters @{ /*! \name Object counters @{
* \bug These counters are not handled in a thread-safe way ast_atomic_fetchadd_int() *
* should be used to modify these values. */ * \bug These counters are not handled in a thread-safe way ast_atomic_fetchadd_int()
* should be used to modify these values.
*/
static int speerobjs = 0; /*!< Static peers */ static int speerobjs = 0; /*!< Static peers */
static int rpeerobjs = 0; /*!< Realtime peers */ static int rpeerobjs = 0; /*!< Realtime peers */
static int apeerobjs = 0; /*!< Autocreated peer objects */ static int apeerobjs = 0; /*!< Autocreated peer objects */
static int regobjs = 0; /*!< Registry objects */ static int regobjs = 0; /*!< Registry objects */
/* }@ */ /*! @} */
static struct ast_flags global_flags[3] = {{0}}; /*!< global SIP_ flags */ static struct ast_flags global_flags[3] = {{0}}; /*!< global SIP_ flags */
static int global_t38_maxdatagram; /*!< global T.38 FaxMaxDatagram override */ static int global_t38_maxdatagram; /*!< global T.38 FaxMaxDatagram override */
@ -33306,7 +33321,16 @@ static const struct ast_data_entry sip_data_providers[] = {
AST_DATA_ENTRY("asterisk/channel/sip/peers", &peers_data_provider), AST_DATA_ENTRY("asterisk/channel/sip/peers", &peers_data_provider),
}; };
/*! \brief PBX load module - initialization */ /*!
* \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) static int load_module(void)
{ {
ast_verbose("SIP channel loading...\n"); ast_verbose("SIP channel loading...\n");

@ -25,6 +25,15 @@
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_skinny uses the configuration file \ref skinny.conf
* \addtogroup configuration_file
*/
/*! \page skinny.conf skinny.conf
* \verbinclude skinny.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<support_level>extended</support_level> <support_level>extended</support_level>
***/ ***/
@ -7958,6 +7967,16 @@ int skinny_reload(void)
return 0; 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) static int load_module(void)
{ {
int res = 0; int res = 0;

@ -29,6 +29,15 @@
* \ingroup channel_drivers * \ingroup channel_drivers
*/ */
/*!
* \li The channel chan_vpb uses the configuration file \ref vpb.conf
* \addtogroup configuration_file
*/
/*! \page vpb.conf vpb.conf
* \verbinclude vpb.conf.sample
*/
/*** MODULEINFO /*** MODULEINFO
<depend>vpb</depend> <depend>vpb</depend>
<defaultenabled>no</defaultenabled> <defaultenabled>no</defaultenabled>
@ -2648,6 +2657,16 @@ static int unload_module(void)
return 0; 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 enum ast_module_load_result load_module() static enum ast_module_load_result load_module()
{ {
struct ast_config *cfg; struct ast_config *cfg;

Loading…
Cancel
Save