[Asterisk-code-review] loader: Add dependency fields to module structures. (asterisk[master])
Corey Farrell
asteriskteam at digium.com
Tue Jan 9 08:38:22 CST 2018
Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/7872 )
Change subject: loader: Add dependency fields to module structures.
......................................................................
Patch Set 1:
(1 comment)
https://gerrit.asterisk.org/#/c/7872/1/include/asterisk/module.h
File include/asterisk/module.h:
https://gerrit.asterisk.org/#/c/7872/1/include/asterisk/module.h@349
PS1, Line 349: const char *optional_apis;
> How is a developer to know if the user disabled OPTIONAL_API?
No need, if OPTIONAL_API is disabled anything provided in this field will be treated as if it were in "requires". I will think of how to better word the doxygen.
Example:
'res_adsi' is listed under '.optional_api' in app_voicemail.c but it's listed under '.requires' in app_adsiprog.c and app_getcpeid.c. That is because app_voicemail can function without res_adsi, but the other two cannot. If OPTIONAL_API is disabled the module loader will enforce that app_voicemail actually requires res_adsi.
--
To view, visit https://gerrit.asterisk.org/7872
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3ad9547a0a6442409ff4e352a6d897bef2cc04bf
Gerrit-Change-Number: 7872
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Comment-Date: Tue, 09 Jan 2018 14:38:22 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180109/48562acf/attachment.html>
More information about the asterisk-code-review
mailing list