trunk: Add unused interface/template parameter metadata in XML.

This commit is contained in:
Chris PeBenito 2008-06-24 14:23:40 +00:00
parent 8c6292b7a4
commit c5cfd2d405
15 changed files with 35 additions and 22 deletions

View File

@ -1,3 +1,4 @@
- Add unused interface/template parameter metadata in XML.
- Patch to handle postfix data_directory from Vaclav Ovsik. - Patch to handle postfix data_directory from Vaclav Ovsik.
- SE-Postgresql policy from KaiGai Kohei. - SE-Postgresql policy from KaiGai Kohei.
- Patch for X.org dbus support from Martin Orr. - Patch for X.org dbus support from Martin Orr.

View File

@ -28,7 +28,8 @@
<!ELEMENT param (summary)> <!ELEMENT param (summary)>
<!ATTLIST param <!ATTLIST param
name CDATA #REQUIRED name CDATA #REQUIRED
optional (true|false) "false"> optional (true|false) "false"
unused (true|false) "false">
<!ELEMENT infoflow EMPTY> <!ELEMENT infoflow EMPTY>
<!ATTLIST infoflow <!ATTLIST infoflow
type CDATA #REQUIRED type CDATA #REQUIRED

View File

@ -35,15 +35,13 @@
[[int['interface_desc']]] [[int['interface_desc']]]
[[end]] [[end]]
<h5>Parameters</h5> <h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%"> <table border="1" cellspacing="0" cellpadding="3" width="65%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr> <tr><th >Parameter:</th><th >Description:</th></tr>
[[for arg in int['interface_parameters']]] [[for arg in int['interface_parameters']]]
<tr><td> <tr><td>
[[arg['name']]] [[arg['name']]]
</td><td> </td><td>
[[arg['desc']]] [[arg['desc']]]
</td><td>
[[arg['optional']]]
</td></tr> </td></tr>
[[end]] [[end]]
</table> </table>

View File

@ -35,15 +35,13 @@
[[temp['template_desc']]] [[temp['template_desc']]]
[[end]] [[end]]
<h5>Parameters</h5> <h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%"> <table border="1" cellspacing="0" cellpadding="3" width="65%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr> <tr><th >Parameter:</th><th >Description:</th></tr>
[[for arg in temp['template_parameters']]] [[for arg in temp['template_parameters']]]
<tr><td> <tr><td>
[[arg['name']]] [[arg['name']]]
</td><td> </td><td>
[[arg['desc']]] [[arg['desc']]]
</td><td>
[[arg['optional']]]
</td></tr> </td></tr>
[[end]] [[end]]
</table> </table>

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## CPUcontrol stub interface. No access allowed. ## CPUcontrol stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain" optional="true"> ## <param name="domain" optional="true" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## DBUS stub interface. No access allowed. ## DBUS stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain" optional="true"> ## <param name="domain" optional="true" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>
@ -236,7 +236,7 @@ template(`dbus_system_bus_client_template',`
## is the prefix for user_t). ## is the prefix for user_t).
## </summary> ## </summary>
## </param> ## </param>
## <param name="domain_prefix"> ## <param name="domain_prefix" unused="true">
## <summary> ## <summary>
## The prefix of the domain (e.g., user ## The prefix of the domain (e.g., user
## is the prefix for user_t). ## is the prefix for user_t).

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## MTA stub interface. No access allowed. ## MTA stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain" optional="true"> ## <param name="domain" optional="true" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## NTP stub interface. No access allowed. ## NTP stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain" optional="true"> ## <param name="domain" optional="true" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>

View File

@ -165,7 +165,7 @@ template(`postfix_user_domain_template',`
## <summary> ## <summary>
## The per role template for the postfix module. ## The per role template for the postfix module.
## </summary> ## </summary>
## <param name="prefix"> ## <param name="prefix" unused="true">
## <summary> ## <summary>
## The prefix of the user domain. ## The prefix of the user domain.
## (e.g., user is the prefix of user_t) ## (e.g., user is the prefix of user_t)
@ -176,6 +176,11 @@ template(`postfix_user_domain_template',`
## User domain type. ## User domain type.
## </summary> ## </summary>
## </param> ## </param>
## <param name="user_role">
## <summary>
## User role
## </summary>
## </param>
# #
template(`postfix_per_role_template',` template(`postfix_per_role_template',`
gen_require(` gen_require(`

View File

@ -11,7 +11,7 @@
## by policy writers. ## by policy writers.
## </p> ## </p>
## </desc> ## </desc>
## <param name="userdomain_prefix"> ## <param name="userdomain_prefix" unused="true">
## <summary> ## <summary>
## The prefix of the user domain (e.g., user ## The prefix of the user domain (e.g., user
## is the prefix for user_t). ## is the prefix for user_t).

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## RHGB stub interface. No access allowed. ## RHGB stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain"> ## <param name="domain" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## RPC stub interface. No access allowed. ## RPC stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain" optional="true"> ## <param name="domain" optional="true" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## Sendmail stub interface. No access allowed. ## Sendmail stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain" optional="true"> ## <param name="domain" optional="true" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>

View File

@ -4,7 +4,7 @@
## <summary> ## <summary>
## PCMCIA stub interface. No access allowed. ## PCMCIA stub interface. No access allowed.
## </summary> ## </summary>
## <param name="domain" optional="true"> ## <param name="domain" optional="true" unused="true">
## <summary> ## <summary>
## N/A ## N/A
## </summary> ## </summary>

View File

@ -465,9 +465,14 @@ def gen_docs(doc, working_dir, templatedir):
paramopt = "Yes" paramopt = "Yes"
else: else:
paramopt = "No" paramopt = "No"
if args.getAttribute("unused") == "true":
paramunused = "Yes"
else:
paramunused = "No"
parameter = { "name" : paramname, parameter = { "name" : paramname,
"desc" : paramdesc, "desc" : paramdesc,
"optional" : paramopt } "optional" : paramopt,
"unused" : paramunused }
interface_parameters.append(parameter) interface_parameters.append(parameter)
interfaces.append( { "interface_name" : interface_name, interfaces.append( { "interface_name" : interface_name,
"interface_summary" : interface_summary, "interface_summary" : interface_summary,
@ -506,9 +511,14 @@ def gen_docs(doc, working_dir, templatedir):
paramopt = "Yes" paramopt = "Yes"
else: else:
paramopt = "No" paramopt = "No"
if args.getAttribute("unused") == "true":
paramunused = "Yes"
else:
paramunused = "No"
parameter = { "name" : paramname, parameter = { "name" : paramname,
"desc" : paramdesc, "desc" : paramdesc,
"optional" : paramopt } "optional" : paramopt,
"unused": paramunused }
template_parameters.append(parameter) template_parameters.append(parameter)
templates.append( { "template_name" : template_name, templates.append( { "template_name" : template_name,
"template_summary" : template_summary, "template_summary" : template_summary,