diff options
author | Corey Farrell <git@cfware.com> | 2018-01-18 10:01:26 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2018-01-22 12:16:58 -0500 |
commit | 679fa5fb3445870ad29953c606ab5e26f44e4e22 (patch) | |
tree | d038fd656eed6ded929b9e6f71527debd8f32019 /apps | |
parent | 908e39f186b20be766df57013a65d6ccf31632df (diff) |
Add missing OPTIONAL_API and ARI dependences.
I've audited all modules that include any header which includes
asterisk/optional_api.h. All modules which use OPTIONAL_API now declare
those dependencies in AST_MODULE_INFO using requires or optional_modules
as appropriate.
In addition ARI dependency declarations have been reworked. Instead of
declaring additional required modules in res/ari/resource_*.c we now add
them to an optional array "requiresModules" in api-docs for each module.
This allows the AST_MODULE_INFO dependencies to include those missing
modules.
Change-Id: Ia0c70571f5566784f63605e78e1ceccb4f79c606
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_mixmonitor.c | 7 | ||||
-rw-r--r-- | apps/app_statsd.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index bb47cfc34..af2949209 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -1556,4 +1556,9 @@ static int load_module(void) return res; } -AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Mixed Audio Monitoring Application"); +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Mixed Audio Monitoring Application", + .support_level = AST_MODULE_SUPPORT_CORE, + .load = load_module, + .unload = unload_module, + .optional_modules = "func_periodic_hook", +); diff --git a/apps/app_statsd.c b/apps/app_statsd.c index 54f9511a8..a4ca233ea 100644 --- a/apps/app_statsd.c +++ b/apps/app_statsd.c @@ -420,4 +420,9 @@ static int load_module(void) return ast_register_application_xml(app, statsd_exec); } -AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "StatsD Dialplan Application"); +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "StatsD Dialplan Application", + .support_level = AST_MODULE_SUPPORT_EXTENDED, + .load = load_module, + .unload = unload_module, + .requires = "res_statsd", +); |