[spice-common] codegen: Document "chunk" attribute

Submitted by Frediano Ziglio on Oct. 10, 2019, 11:38 a.m.

Details

Message ID 20191010113833.19091-1-fziglio@redhat.com
State Accepted
Commit 99f6aa0028327a4cf0e4e3443d136f9b488760dd
Headers show
Series "codegen: Document "chunk" attribute" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Oct. 10, 2019, 11:38 a.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 python_modules/ptypes.py | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 796a436..5aa6e18 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -60,6 +60,9 @@  valid_attributes=set([
     'outvar',
     # C structure has an anonymous member (used in switch)
     'anon',
+    # the C structure contains a pointer to a SpiceChunks structure.
+    # The SpiceChunks structure is allocated inside the demarshalled
+    # buffer and data will point to original message.
     'chunk',
     # this channel is contained in an #ifdef section
     # the argument specifies the preprocessor define to check

Comments