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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, Aug 14, 2019 at 06:08:25PM +0100, Frediano Ziglio wrote:
> Output attributes are the attributes that specify how to store
> that field in the C structure.
> There can be only one output type specified.

It misses documentation on valid_attributes in case you feel like
adding too

> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

    Acked-by: Victor Toso <victortoso@xxxxxxxxxx>

> ---
>  python_modules/ptypes.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)
>  
> -- 
> 2.20.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]