| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Patch adds a "from __future__" import that doesn't affect newer python's but
allows python 2.5.4 to run the code (tested under scratchbox, n900 build environment)
|
|
|
|
|
|
|
| |
It turns out that using base + sizeof(struct) is not a good way to
access an array at the end of a struct. For SpicePalette sizeof is 16, but
offset of ents is 12. Using this calculation in the demarshaller breaks
things badly, so now we use the actual array member.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove all uses of @end in the marshaller, instead just using
the C struct array-at-end-of-struct. To make this work we also remove
all use of @end for switches (making them C unions).
We drop the zero member of the notify message so that we can avoid this
use of @end for a primitive in the marshaller (plus its useless to send
over the wire).
We change the offsets and stuff in the migration messages to real pointers.
|
|
|
|
| |
This way we can check attributes on the member.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
SpiceImage now replaces RedImage and has all image types in it.
All image data are now chunked (and as such not copied when demarshalling).
|
|
|
|
| |
This is similar to @as_ptr, but generates a single chunk of data.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Even for is_extra_size() we should calculate the mem_size for
arrays, its just that the parent type (in this case switch) should
request mem_size if the type is_extra_size.
|
| |
|
|
|
|
| |
This cleans up some stuff
|
|
|
|
| |
This simplifies some code
|
|
|
|
| |
Also switches @ptr_array to use this
|
| |
|
|
|
|
| |
Due to a typo we always read offsets as pointers, never as SPICE_ADDRESS.
|
|
|
|
| |
Also in new protocol don't send style data if not needed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Internally and in the network protocol (for the new version) we
now store the actual number of segments rather than the size of the
full segments array in bytes. This change consists of multiple changes
to handle this:
* Make the qxl parser calculate num_segments
* Make the canvas stroke code handle the new SpicePath layout.
* Fix up is_equal_path in red_worker.c for the new layout
* replace multiple calls to spice_marshall_PathSegment with a single
spice_marshall_Path call
* Make the byte_size() array size handling do the conversion from
network size to number of elements when marshalling/demarshalling.
* Update the current spice protocol to send the segment count rather than
the size
* Update the old spice protocol to use the new byte_size functionallity
to calculate the size sent and the number of elements recieved
|
|
|
|
|
|
| |
A @c_ptr pointer is stored in memory as a real pointer rather than a
SPICE_ADDRESS. This is a temporary thing that will be removed again
when all SPICE_ADDRESSes have been converted to real pointer.
|
|
|
|
|
|
| |
These just write zeros at the right place in the network protocol
typically for old back-compat things. We don't want to read these
back in.
|
| |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
This is require when we add a new spice.proto for the old (major 1)
protocol description.
|
|
|
|
|
| |
This is needed if we want to switch marshallers depending on what
major version the remote side has.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
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.
|