We're trying to converge on a common schema.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18922>
-<agxml>
+<?xml version="1.0" ?>
+<genxml>
+
<enum name="Channel">
<value name="R" value="0"/>
<value name="G" value="1"/>
<field name="Count" start="3:0" size="32" type="uint"/>
</struct>
-</agxml>
+</genxml>
return '{}_{}'.format(global_prefix.upper(), name)
def start_element(self, name, attrs):
- if name == "agxml":
+ if name == "genxml":
print(pack_header)
elif name == "struct":
name = attrs["name"]
elif name == "enum":
self.emit_enum()
self.enum = None
- elif name == "agxml":
+ elif name == "genxml":
print('#endif')
def emit_header(self, name):