mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-08 21:14:20 +00:00
codegen: Add 'chunk' to the output attributes
Output attributes are the attributes that specify how to store that field in the C structure. There can be only one output type specified. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
parent
62b44b3073
commit
a5a86a1caf
@ -98,7 +98,7 @@ def fix_attributes(attribute_list):
|
||||
attrs[name] = lst
|
||||
|
||||
# these attributes specify output format, only one can be set
|
||||
output_attrs = set(['end', 'to_ptr', 'as_ptr', 'ptr_array', 'zero'])
|
||||
output_attrs = set(['end', 'to_ptr', 'as_ptr', 'ptr_array', 'zero', 'chunk'])
|
||||
if len(output_attrs.intersection(attrs.keys())) > 1:
|
||||
raise Exception("Multiple output type attributes specified %s" % output_attrs)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user