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

Frediano Ziglio fziglio at redhat.com
Mon Feb 18 16:01:23 UTC 2019


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



More information about the Spice-devel mailing list