From 186f4492bf9974037ed23550af76f8ea989f88d5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 10 Feb 2023 11:04:09 +0100 Subject: rtemsspec: Add a get value for header files --- rtemsspec/sphinxcontent.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rtemsspec/sphinxcontent.py') diff --git a/rtemsspec/sphinxcontent.py b/rtemsspec/sphinxcontent.py index 1002f9ce..199ee874 100644 --- a/rtemsspec/sphinxcontent.py +++ b/rtemsspec/sphinxcontent.py @@ -27,8 +27,8 @@ from contextlib import contextmanager from typing import Any, Iterable, Iterator, List, Optional, Sequence, Union -from rtemsspec.content import Content, get_value_plural, make_lines, \ - to_camel_case +from rtemsspec.content import Content, get_value_header_file, \ + get_value_plural, make_lines, to_camel_case from rtemsspec.items import Item, ItemGetValue, ItemGetValueContext, ItemMapper GenericContent = Union[str, List[str], "Content"] @@ -286,6 +286,8 @@ class SphinxMapper(ItemMapper): _get_value_sphinx_macro) self.add_get_value("interface/function:/name", _get_value_sphinx_function) + self.add_get_value("interface/header-file:/path", + get_value_header_file) self.add_get_value("interface/macro:/name", _get_value_sphinx_function) self.add_get_value("interface/struct:/name", _get_value_sphinx_type) self.add_get_value("interface/typedef:/name", _get_value_sphinx_type) -- cgit v1.2.3