mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
docs/qapi-domain: add :namespace: override option
Akin to the :module: override option, the :namespace: options allows you to forcibly override the contextual namespace associatied with a definition. We don't necessarily actually need this, but I felt compelled to stick close to how the Python domain works that offers context overrides. As of this commit, it is possible to add e.g. ":namespace: QMP" to any QAPI directive to forcibly associate that definition with a given namespace. Signed-off-by: John Snow <jsnow@redhat.com> Message-ID: <20250313044312.189276-5-jsnow@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
74d40b011c
commit
9ca404f004
2 changed files with 5 additions and 2 deletions
|
@ -294,8 +294,9 @@ class QAPIObject(QAPIDescription):
|
|||
)
|
||||
option_spec.update(
|
||||
{
|
||||
# Borrowed from the Python domain:
|
||||
"module": directives.unchanged, # Override contextual module name
|
||||
# Context overrides:
|
||||
"namespace": directives.unchanged,
|
||||
"module": directives.unchanged,
|
||||
# These are QAPI originals:
|
||||
"since": directives.unchanged,
|
||||
"ifcond": directives.unchanged,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue