[rtems-central commit] interface: Follow only specific links
Sebastian Huber
sebh at rtems.org
Thu Oct 8 13:25:41 UTC 2020
Module: rtems-central
Branch: master
Commit: 49f96392ed8f66ca805c1d59c11e2ce97a10c6bf
Changeset: http://git.rtems.org/rtems-central/commit/?id=49f96392ed8f66ca805c1d59c11e2ce97a10c6bf
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 2 16:32:47 2020 +0200
interface: Follow only specific links
---
rtemsspec/interface.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py
index 30d16d6..186edce 100644
--- a/rtemsspec/interface.py
+++ b/rtemsspec/interface.py
@@ -564,9 +564,10 @@ def _generate_header_file(item: Item, domains: Dict[str, str],
def _visit_header_files(item: Item, domains: Dict[str, str],
enabled_by_defined: Dict[str, str]) -> None:
- for child in item.children():
- _visit_header_files(child, domains, enabled_by_defined)
- if item["type"] == "interface" and item["interface-type"] == "header-file":
+ for item in item.links_to_children(
+ ["interface-placement", "interface-ingroup"]):
+ _visit_header_files(item, domains, enabled_by_defined)
+ if item.type == "interface/header-file":
_generate_header_file(item, domains, enabled_by_defined)
More information about the vc
mailing list