[Spice-devel] [PATCH spice-common 1/7] codegen: Document ptr_array attribute

Christophe Fergeau cfergeau at redhat.com
Wed Feb 20 16:43:57 UTC 2019


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Mon, Feb 18, 2019 at 04:01:23PM +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  python_modules/ptypes.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
> index c548a28..3875970 100644
> --- a/python_modules/ptypes.py
> +++ b/python_modules/ptypes.py
> @@ -55,6 +55,9 @@ valid_attributes=set([
>      'nonnull',
>      # this flag member contains only a single flag
>      'unique_flag',
> +    # represent array as an array of pointers (in the C structure)
> +    # for instance a "Type name[size] @ptr_array" in the protocol
> +    # will be stored in a "Type *name[0]" field in the C structure
>      'ptr_array',
>      'outvar',
>      # C structure has an anonymous member (used in switch)
> -- 
> 2.20.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190220/accbb076/attachment.sig>


More information about the Spice-devel mailing list