[rtems-central commit] spec: Add unspecified header file item type

Sebastian Huber sebh at rtems.org
Tue May 9 13:45:26 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    a596b89343c5c8896a245bd69655a7c1721b2bdc
Changeset: http://git.rtems.org/rtems-central/commit/?id=a596b89343c5c8896a245bd69655a7c1721b2bdc

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon May  8 12:37:13 2023 +0200

spec: Add unspecified header file item type

---

 rtemsspec/interface.py                          |  5 ++++-
 spec/spec/interface-unspecified-header-file.yml | 30 +++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py
index d31bcb0e..c1655c4c 100644
--- a/rtemsspec/interface.py
+++ b/rtemsspec/interface.py
@@ -740,7 +740,10 @@ class _HeaderFile:
     def add_includes(self, item: Item) -> None:
         """ Adds the includes of the item to the header file includes. """
         for parent in item.parents("interface-placement"):
-            if parent.type == "interface/header-file":
+            if parent.type in [
+                    "interface/header-file",
+                    "interface/unspecified-header-file"
+            ]:
                 self._includes.append(parent)
 
     def _add_child(self, item: Item) -> None:
diff --git a/spec/spec/interface-unspecified-header-file.yml b/spec/spec/interface-unspecified-header-file.yml
new file mode 100644
index 00000000..360a7feb
--- /dev/null
+++ b/spec/spec/interface-unspecified-header-file.yml
@@ -0,0 +1,30 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2023 embedded brains GmbH & Co. KG
+enabled-by: true
+links:
+- role: spec-member
+  uid: root
+- role: spec-refinement
+  spec-key: interface-type
+  spec-value: unspecified-header-file
+  uid: interface
+spec-description: null
+spec-example: null
+spec-info:
+  dict:
+    attributes:
+      path:
+        description: |
+          It shall be the path used to include the header file.  For example
+          :file:`rtems/confdefs.h`.
+        spec-type: str
+      references:
+        description: null
+        spec-type: external-reference-list
+    description: |
+      This set of attributes specifies an unspecified header file.
+    mandatory-attributes: all
+spec-name: Interface Unspecified Header File Item Type
+spec-type: interface-unspecified-header-file
+type: spec



More information about the vc mailing list