loader: Convert reload_classes to built-in modules.
authorCorey Farrell <git@cfware.com>
Sat, 17 Feb 2018 03:11:42 +0000 (22:11 -0500)
committerCorey Farrell <git@cfware.com>
Wed, 14 Mar 2018 09:20:12 +0000 (05:20 -0400)
commit572a508ef2ae7cd86e0ffd8ad6d1c5997e988c26
treea0dcfa18f8a4a9d3e87eac3b2a7df33ac2fbcad6
parentfee929c8acd788a77982b537953bf4053242057e
loader: Convert reload_classes to built-in modules.

* acl (named_acl.c)
* cdr
* cel
* ccss
* dnsmgr
* dsp
* enum
* extconfig (config.c)
* features
* http
* indications
* logger
* manager
* plc
* sounds
* udptl

These modules are now loaded at appropriate time by the module loader.
Unlike loadable modules these use AST_MODULE_LOAD_FAILURE on error so
the module loader will abort startup on failure of these modules.

Some of these modules are still initialized or shutdown from outside the
module loader.  logger.c is initialized very early and shutdown very
late, manager.c is initialized by the module loader but is shutdown by
the Asterisk core (too much uses it without holding references).

Change-Id: I371a9a45064f20026c492623ea8062d02a1ab97f
79 files changed:
addons/cdr_mysql.c
addons/chan_ooh323.c
addons/res_config_mysql.c
apps/app_celgenuserevent.c
apps/app_dial.c
apps/app_forkcdr.c
cdr/cdr_adaptive_odbc.c
cdr/cdr_beanstalkd.c
cdr/cdr_csv.c
cdr/cdr_custom.c
cdr/cdr_manager.c
cdr/cdr_odbc.c
cdr/cdr_pgsql.c
cdr/cdr_radius.c
cdr/cdr_sqlite.c
cdr/cdr_sqlite3_custom.c
cdr/cdr_syslog.c
cdr/cdr_tds.c
cel/cel_beanstalkd.c
cel/cel_custom.c
cel/cel_manager.c
cel/cel_odbc.c
cel/cel_pgsql.c
cel/cel_radius.c
cel/cel_sqlite3_custom.c
cel/cel_tds.c
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_sip.c
funcs/func_callcompletion.c
funcs/func_cdr.c
funcs/func_enum.c
include/asterisk/_private.h
include/asterisk/acl.h
include/asterisk/ccss.h
include/asterisk/cdr.h
include/asterisk/config.h
include/asterisk/dsp.h
include/asterisk/enum.h
include/asterisk/features_config.h
include/asterisk/logger.h
include/asterisk/manager.h
include/asterisk/module.h
include/asterisk/sounds_index.h
include/asterisk/udptl.h
main/Makefile
main/asterisk.c
main/ccss.c
main/cdr.c
main/cel.c
main/channel.c
main/config.c
main/dnsmgr.c
main/dsp.c
main/enum.c
main/features.c
main/features_config.c
main/features_config.h [new file with mode: 0644]
main/http.c
main/indications.c
main/loader.c
main/logger.c
main/manager.c
main/named_acl.c
main/plc.c
main/sounds.c
main/udptl.c
res/res_ari.c
res/res_config_curl.c
res/res_config_ldap.c
res/res_config_odbc.c
res/res_config_pgsql.c
res/res_config_sqlite.c
res/res_config_sqlite3.c
res/res_http_post.c
res/res_http_websocket.c
res/res_phoneprov.c
res/res_pjsip.c
res/res_pjsip_t38.c