Alexander Larsson
1d5d5272e2
Make pointers 32bit in new protocol format
2012-03-20 15:25:45 +01:00
Alexander Larsson
db5b8fa673
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
32dbd8a6a5
Fix handling of @ptr32 network size
2012-03-20 15:25:45 +01:00
Alexander Larsson
ee944c8314
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
9f3a36f3f9
Make internal generated marshaller functions static
2012-03-20 15:25:44 +01:00
Alexander Larsson
2523cec8c4
Support extra prefix in code generators
...
This is require when we add a new spice.proto for the old (major 1)
protocol description.
2012-03-20 15:25:44 +01:00
Alexander Larsson
38412df9aa
Support creating marshallers that are called indirectly
...
This is needed if we want to switch marshallers depending on what
major version the remote side has.
2012-03-20 15:25:44 +01:00
Alexander Larsson
f9610c1a65
Add destructor for demarshalled messages
...
This is required because we don't want to free messages that just
refer to the unparsed message (like SpiceMsgData).
Also, in the future we might need it for more complex demarshalling.
2012-03-20 15:25:44 +01:00
Alexander Larsson
b49b77d8e9
Make generated marshallers build on win32
2012-03-20 15:25:44 +01:00
Alexander Larsson
41c07b938b
Support @as_ptr in demarshaller to avoid copying data unnecessary
2012-03-20 15:25:44 +01:00
Alexander Larsson
79bd3284c6
Add support for generating message and structure marshallers
2012-03-20 15:25:43 +01:00
Alexander Larsson
809524ac5d
Add python code to automake system
2012-03-20 15:25:43 +01:00
Alexander Larsson
b1dc7fae2a
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