[spice-common] codegen: Add 'chunk' to the output attributes

Submitted by Frediano Ziglio on Aug. 14, 2019, 5:08 p.m.

Details

Message ID 20190814170825.11903-2-fziglio@redhat.com
State New
Headers show
Series "codegen: Check validity of array members" ( rev: 2 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 14, 2019, 5:08 p.m.
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>
---
 python_modules/ptypes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index ebe001c..796a436 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -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)