[Spice-commits] python_modules/ptypes.py

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 10 10:12:09 UTC 2019

 python_modules/ptypes.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a5a86a1caf271f460e2b2f8eb55c07c6ab6f680b
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed Aug 14 18:02:05 2019 +0100

    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 at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 311ce3d..32dae21 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)

More information about the Spice-commits mailing list