summaryrefslogtreecommitdiffstats
path: root/rtemsqual/interface.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-06-10 07:15:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-03 10:22:45 +0200
commit01c1bc928b7b85e35ed14e46161e9ddcb9caba2f (patch)
tree7093105250c3c10465a2592fcff28d40c3b7596e /rtemsqual/interface.py
parentcontent: Add condition methods to CContent (diff)
downloadrtems-central-01c1bc928b7b85e35ed14e46161e9ddcb9caba2f.tar.bz2
content: Add CContent.add_param_description()
Diffstat (limited to 'rtemsqual/interface.py')
-rw-r--r--rtemsqual/interface.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/rtemsqual/interface.py b/rtemsqual/interface.py
index 45e35de1..4915ffbf 100644
--- a/rtemsqual/interface.py
+++ b/rtemsqual/interface.py
@@ -156,14 +156,6 @@ def _add_definition(node: "Node", item: Item, prefix: str,
return content
-_PARAM = {
- None: "@param ",
- "in": "@param[in] ",
- "out": "@param[out] ",
- "inout": "@param[in,out] ",
-}
-
-
class Node:
""" Nodes of a header file. """
def __init__(self, header_file: "_HeaderFile", item: Item,
@@ -399,10 +391,8 @@ class Node:
content.wrap(self.substitute_text(item["description"]))
content.wrap(self.substitute_text(item["notes"]))
if "params" in item:
- for param in item["params"]:
- content.wrap(param["name"] + " " +
- self.substitute_text(param["description"]),
- initial_indent=_PARAM[param["dir"]])
+ content.add_param_description(item["params"],
+ self.substitute_text)
if "return" in item:
ret = item["return"]
for retval in ret["return-values"]: