aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/gen.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2025-02-05 12:35:49 +0000
committerMarkus Armbruster <armbru@redhat.com>2025-02-10 15:45:04 +0100
commitba27dccc04f16e143cbf59afec5402198d69be30 (patch)
tree99fc67c009e16c08c895d60fe453edd16560c6a1 /scripts/qapi/gen.py
parent696ae1ac91fc50f87838519a0717d74f5816fd50 (diff)
downloadqemu-ba27dccc04f16e143cbf59afec5402198d69be30.zip
qemu-ba27dccc04f16e143cbf59afec5402198d69be30.tar.gz
qemu-ba27dccc04f16e143cbf59afec5402198d69be30.tar.bz2
qapi: rename 'special_features' to 'features'
This updates the QAPI code generation to refer to 'features' instead of 'special_features', in preparation for generalizing their exposure. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20250205123550.2754387-4-berrange@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [Imports tidied up with isort] Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/gen.py')
-rw-r--r--scripts/qapi/gen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/qapi/gen.py b/scripts/qapi/gen.py
index c53ca72..b51f8d9 100644
--- a/scripts/qapi/gen.py
+++ b/scripts/qapi/gen.py
@@ -41,10 +41,10 @@ from .schema import (
from .source import QAPISourceInfo
-def gen_special_features(features: Sequence[QAPISchemaFeature]) -> str:
- special_features = [f"1u << {c_enum_const('qapi', feat.name)}"
- for feat in features if feat.is_special()]
- return ' | '.join(special_features) or '0'
+def gen_features(features: Sequence[QAPISchemaFeature]) -> str:
+ featenum = [f"1u << {c_enum_const('qapi', feat.name)}"
+ for feat in features if feat.is_special()]
+ return ' | '.join(featenum) or '0'
class QAPIGen: