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 /rest-api | |
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 'rest-api')
-rw-r--r-- | rest-api/api-docs/bridges.json | 4 | ||||
-rw-r--r-- | rest-api/api-docs/channels.json | 6 | ||||
-rw-r--r-- | rest-api/api-docs/deviceStates.json | 3 | ||||
-rw-r--r-- | rest-api/api-docs/events.json | 3 | ||||
-rw-r--r-- | rest-api/api-docs/mailboxes.json | 3 | ||||
-rw-r--r-- | rest-api/api-docs/playbacks.json | 3 | ||||
-rw-r--r-- | rest-api/api-docs/recordings.json | 3 |
7 files changed, 25 insertions, 0 deletions
diff --git a/rest-api/api-docs/bridges.json b/rest-api/api-docs/bridges.json index cf8ee3156..04416c123 100644 --- a/rest-api/api-docs/bridges.json +++ b/rest-api/api-docs/bridges.json @@ -6,6 +6,10 @@ "swaggerVersion": "1.1", "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/bridges.{format}", + "requiresModules": [ + "res_stasis_recording", + "res_stasis_playback" + ], "apis": [ { "path": "/bridges", diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json index 602606cfe..ec8bae235 100644 --- a/rest-api/api-docs/channels.json +++ b/rest-api/api-docs/channels.json @@ -6,6 +6,12 @@ "swaggerVersion": "1.1", "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/channels.{format}", + "requiresModules": [ + "res_stasis_answer", + "res_stasis_playback", + "res_stasis_recording", + "res_stasis_snoop" + ], "apis": [ { "path": "/channels", diff --git a/rest-api/api-docs/deviceStates.json b/rest-api/api-docs/deviceStates.json index 94d5b93ce..bd389355c 100644 --- a/rest-api/api-docs/deviceStates.json +++ b/rest-api/api-docs/deviceStates.json @@ -6,6 +6,9 @@ "swaggerVersion": "1.1", "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/deviceStates.{format}", + "requiresModules": [ + "res_stasis_device_state" + ], "apis": [ { "path": "/deviceStates", diff --git a/rest-api/api-docs/events.json b/rest-api/api-docs/events.json index e1b31bb97..d85d8d9fe 100644 --- a/rest-api/api-docs/events.json +++ b/rest-api/api-docs/events.json @@ -6,6 +6,9 @@ "swaggerVersion": "1.2", "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/events.{format}", + "requiresModules": [ + "res_http_websocket" + ], "apis": [ { "path": "/events", diff --git a/rest-api/api-docs/mailboxes.json b/rest-api/api-docs/mailboxes.json index ed50019f5..8f5941b81 100644 --- a/rest-api/api-docs/mailboxes.json +++ b/rest-api/api-docs/mailboxes.json @@ -6,6 +6,9 @@ "swaggerVersion": "1.1", "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/mailboxes.{format}", + "requiresModules": [ + "res_stasis_mailbox" + ], "apis": [ { "path": "/mailboxes", diff --git a/rest-api/api-docs/playbacks.json b/rest-api/api-docs/playbacks.json index 3dc4e1da5..a78dcae71 100644 --- a/rest-api/api-docs/playbacks.json +++ b/rest-api/api-docs/playbacks.json @@ -6,6 +6,9 @@ "swaggerVersion": "1.1", "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/playbacks.{format}", + "requiresModules": [ + "res_stasis_playback" + ], "apis": [ { "path": "/playbacks/{playbackId}", diff --git a/rest-api/api-docs/recordings.json b/rest-api/api-docs/recordings.json index d0b9630da..6ffd6d8e9 100644 --- a/rest-api/api-docs/recordings.json +++ b/rest-api/api-docs/recordings.json @@ -6,6 +6,9 @@ "swaggerVersion": "1.1", "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/recordings.{format}", + "requiresModules": [ + "res_stasis_recording" + ], "apis": [ { "path": "/recordings/stored", |