[Asterisk-code-review] documentation: Add since tag to xmldocs DTD (asterisk[master])
N A
asteriskteam at digium.com
Fri Feb 4 19:18:19 CST 2022
N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/17958 )
Change subject: documentation: Add since tag to xmldocs DTD
......................................................................
documentation: Add since tag to xmldocs DTD
Adds the since tag to the documentation DTD so
that individual applications, functions, etc.
can now specify when they were added to Asterisk.
This tag is added at the individual application,
function, etc. level as opposed to at the module
level because modules can expand over time as new
functionality is added, and granularity only
to the module level would generally not be useful.
This enables the ability to more easily determine
when new functionality was added to Asterisk, down
to minor version as opposed to just by major version.
This makes it easier for users to write more portable
dialplan if desired to not use functionality that may
not be widely available yet.
ASTERISK-29896 #close
Change-Id: Ibbb35c702d8038bdc3fd0a944fbfa69384cc15d5
---
M apps/app_reload.c
M doc/appdocsxml.dtd
2 files changed, 8 insertions(+), 5 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/58/17958/1
diff --git a/apps/app_reload.c b/apps/app_reload.c
index 16bcd63..77bf9e8 100644
--- a/apps/app_reload.c
+++ b/apps/app_reload.c
@@ -39,6 +39,7 @@
/*** DOCUMENTATION
<application name="Reload" language="en_US">
+ <since>16.20.0, 18.6.0, 19.0.0</since>
<synopsis>
Reloads an Asterisk module, blocking the channel until the reload has completed.
</synopsis>
diff --git a/doc/appdocsxml.dtd b/doc/appdocsxml.dtd
index c311e8d..a5bd8a8 100644
--- a/doc/appdocsxml.dtd
+++ b/doc/appdocsxml.dtd
@@ -33,22 +33,22 @@
<!ELEMENT removed_in (#PCDATA)>
- <!ELEMENT application (synopsis?,syntax?,description?,see-also?)>
+ <!ELEMENT application (since?,synopsis?,syntax?,description?,see-also?)>
<!ATTLIST application name CDATA #REQUIRED>
<!ATTLIST application language CDATA #REQUIRED>
<!ATTLIST application module CDATA #IMPLIED>
- <!ELEMENT function (synopsis?,syntax?,description?,see-also?)>
+ <!ELEMENT function (since?,synopsis?,syntax?,description?,see-also?)>
<!ATTLIST function name CDATA #REQUIRED>
<!ATTLIST function language CDATA #REQUIRED>
<!ATTLIST function module CDATA #IMPLIED>
- <!ELEMENT agi (synopsis?,syntax?,description?,see-also?)>
+ <!ELEMENT agi (since?,synopsis?,syntax?,description?,see-also?)>
<!ATTLIST agi name CDATA #REQUIRED>
<!ATTLIST agi language CDATA #REQUIRED>
<!ATTLIST agi module CDATA #IMPLIED>
- <!ELEMENT manager (synopsis?,syntax?,description?,see-also?,responses?)>
+ <!ELEMENT manager (since?,synopsis?,syntax?,description?,see-also?,responses?)>
<!ATTLIST manager name CDATA #REQUIRED>
<!ATTLIST manager language CDATA #REQUIRED>
<!ATTLIST manager module CDATA #IMPLIED>
@@ -62,7 +62,7 @@
<!ATTLIST managerEvent language CDATA #REQUIRED>
<!ATTLIST managerEvent module CDATA #IMPLIED>
- <!ELEMENT managerEventInstance (synopsis?,syntax?,description?,see-also?)*>
+ <!ELEMENT managerEventInstance (since?,synopsis?,syntax?,description?,see-also?)*>
<!ATTLIST managerEventInstance class CDATA #REQUIRED>
<!ELEMENT configInfo (synopsis?,description?,configFile+)>
@@ -102,6 +102,8 @@
<!ATTLIST ref type (application|function|astcli|link|manpage|filename|agi|manager|managerEvent|configOption) #REQUIRED>
<!ATTLIST ref module CDATA #IMPLIED>
+ <!ELEMENT since (#PCDATA)>
+
<!ELEMENT synopsis (#PCDATA)>
<!ELEMENT syntax (parameter|dataType|category|matchInfo|xi:include|channel_snapshot|bridge_snapshot)*>
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17958
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ibbb35c702d8038bdc3fd0a944fbfa69384cc15d5
Gerrit-Change-Number: 17958
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220204/f316e2ce/attachment-0001.html>
More information about the asterisk-code-review
mailing list