Marc-André Lureau
5ae49c0d5b
python: remove c-ism trailing ;
2012-03-20 15:25:53 +01:00
Marc-André Lureau
7f9e2cb1f7
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.
2012-03-20 15:25:53 +01:00
Alon Levy
00a7b6ff3b
spice codegen: fix copy-o, no such variable value
2012-03-20 15:25:50 +01:00
Alexander Larsson
7897a338db
Don't send CursorHeader if cursor_flags is NONE
2012-03-20 15:25:49 +01:00
Alexander Larsson
bcf9b8acf2
codegen: Allow @to_ptr to make inline structs demarshal as pointers
2012-03-20 15:25:49 +01:00
Alexander Larsson
be1c38df3e
codegen: Remove unused methos has_pointer()
2012-03-20 15:25:48 +01:00
Alexander Larsson
199c710a08
codegen: No SPICE_ADDRESS types left, drop @c_ptr
2012-03-20 15:25:47 +01:00
Gerd Hoffmann
e37ce72809
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).
2012-03-20 15:25:47 +01:00
Alexander Larsson
4b6605fc42
codegen: support @chunk on non-pointer arrays
...
This is similar to @as_ptr, but generates a single chunk of data.
2012-03-20 15:25:47 +01:00
Alexander Larsson
0df81d33f6
marshaller: Make get_nw_offset() handle deep member references
2012-03-20 15:25:47 +01:00
Alexander Larsson
ad7e75325d
marshaller: Make @nonnull a propagated attribute
...
This cleans up some stuff
2012-03-20 15:25:47 +01:00
Alexander Larsson
71bf95171d
marshaller: Make @c_ptr a propagated attribute
...
This simplifies some code
2012-03-20 15:25:47 +01:00
Alexander Larsson
1d5c7d1d79
marshaller: Add generic way to handle propagating attributes
...
Also switches @ptr_array to use this
2012-03-20 15:25:47 +01:00
Gerd Hoffmann
c5d06102b7
Properly parse and marshall SpiceString
2012-03-20 15:25:46 +01:00
Alexander Larsson
bef8a0cf19
Simplify SpiceLineAttr by removing unsed stuff
...
Also in new protocol don't send style data if not needed.
2012-03-20 15:25:46 +01:00
Alexander Larsson
930458ea50
Support @marshall to automatically marshall pointers
2012-03-20 15:25:46 +01:00
Alexander Larsson
13d9b32acc
Make pointers 32bit in new protocol format
2012-03-20 15:25:45 +01:00
Alexander Larsson
8b5726ecfa
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.
2012-03-20 15:25:45 +01:00
Alexander Larsson
21c7a6d278
Fix handling of @ptr32 network size
2012-03-20 15:25:45 +01:00
Alexander Larsson
9e8883a1f8
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.
2012-03-20 15:25:44 +01:00
Alexander Larsson
522dc931e8
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.
2012-03-20 15:25:43 +01:00