22 Commits
Author SHA1 Message Date
Hans de Goede 5ea8687843 codegen: Fix enums.h generation
With the new usbredir code we have the new concept of the abstract /
generic spicevmc channel type (which just tunnels data from a qemu chardev),
and we've the usbredir channel, which is the only current user of this.

This was reflected in the protocols enum in spice-protocol.h by a manual
edit done by me, my bad. This patch teaches spice.proto about the relation
between the abstract spicevmc channel and the usbredir channel and
modifies codegen to deal with this.

Signed-off-by: Hans de Goede <[email protected]>
2012-01-12 14:42:47 +01:00
Marc-André Lureau 5ec91855d8 python: remove c-ism trailing ; 2011-06-21 13:20:33 +02:00
Marc-André Lureau aa57d2f70c codegen: typedef the protocol enums
Commit 9d5ef9beeca722b2ceff7d15aaa3aaaaf07ecfbf in spice-protocol
introduced a typedef manually in the generated enums.h header.

This patch adds them automatically to all enums during enums.h generation.
2011-06-21 13:17:17 +02:00
Alon Levy beca39aa87 spice codegen: fix copy-o, no such variable value 2010-12-06 18:09:15 +02:00
Alexander Larsson e646529d2e Don't send CursorHeader if cursor_flags is NONE 2010-07-19 16:28:23 +02:00
Alexander Larsson 7690a24acd codegen: Allow @to_ptr to make inline structs demarshal as pointers 2010-07-19 16:28:22 +02:00
Alexander Larsson b8832e0391 codegen: Remove unused methos has_pointer() 2010-07-19 16:28:20 +02:00
Alexander Larsson f0f623ddc0 codegen: No SPICE_ADDRESS types left, drop @c_ptr 2010-07-08 13:07:17 +02:00
Gerd Hoffmann 5ac88aa79f Properly parse QXLImage to the new-world SpiceImage
SpiceImage now replaces RedImage and has all image types in it.
All image data are now chunked (and as such not copied when demarshalling).
2010-07-07 23:58:33 +02:00
Alexander Larsson 26c1a0767f codegen: support @chunk on non-pointer arrays
This is similar to @as_ptr, but generates a single chunk of data.
2010-07-07 23:12:42 +02:00
Alexander Larsson 96bb4d31f4 marshaller: Make get_nw_offset() handle deep member references 2010-07-07 23:12:42 +02:00
Alexander Larsson d161994f46 marshaller: Make @nonnull a propagated attribute
This cleans up some stuff
2010-07-05 12:13:45 +02:00
Alexander Larsson d7164a0669 marshaller: Make @c_ptr a propagated attribute
This simplifies some code
2010-07-05 12:09:08 +02:00
Alexander Larsson 4a60f1822a marshaller: Add generic way to handle propagating attributes
Also switches @ptr_array to use this
2010-07-05 12:03:34 +02:00
Gerd Hoffmann 3764a36472 Properly parse and marshall SpiceString 2010-07-02 16:47:51 +02:00
Alexander Larsson 00e1caf45d Simplify SpiceLineAttr by removing unsed stuff
Also in new protocol don't send style data if not needed.
2010-06-30 22:35:17 +02:00
Alexander Larsson 1be4d5d26c Support @marshall to automatically marshall pointers 2010-06-30 22:35:17 +02:00
Alexander Larsson dc8625c7e1 Make pointers 32bit in new protocol format 2010-06-23 16:33:07 +02:00
Alexander Larsson 929245bacd marshaller: Correctly determine if switches are fixed size
Switches are fixed size only if all cases have the same size *and*
it has a default case or all the valid cases are listed.
2010-06-23 16:33:07 +02:00
Alexander Larsson 06fe6a91c2 Fix handling of @ptr32 network size 2010-06-23 16:33:07 +02:00
Alexander Larsson 381025b1c3 Add support for @virtual markup in spice protocol
This means the member is not sent on the network at all.
Instead its initialized to the attribute argument when demarshalled.

This is useful for backwards compatibility support.
2010-06-22 16:03:34 +02:00
Alexander Larsson 0366e7395c Initial import of spice protocol description and demarshall generator
The "spice.proto" file describes in detail the networking prototcol
that spice uses and spice_codegen.py can parse this and generate
demarshallers for such network messages.
2010-06-18 16:32:10 +02:00