diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-05-25 16:01:18 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-18 16:32:11 +0200 |
commit | 4154d7028943ca4bf0f1ff2e0480d688fc081fcc (patch) | |
tree | fe166cb9d21905653aed68592166b58f14927ff5 /common/sw_canvas.c | |
parent | 17bbef4df334bd8d98d3960143f229d753b4b0a3 (diff) | |
download | spice-4154d7028943ca4bf0f1ff2e0480d688fc081fcc.tar.gz spice-4154d7028943ca4bf0f1ff2e0480d688fc081fcc.tar.xz spice-4154d7028943ca4bf0f1ff2e0480d688fc081fcc.zip |
Client: Use the autogenerated demarshallers
When a message has been read from the network we now pass it into
the generated demarshaller for the channel. The demarshaller converts
the network data to in-memory structures that is passed on to the
spice internals.
Additionally it also:
* Converts endianness
* Validates sizes of message and any pointers in it
* Localizes offsets (converts them to pointers)
* Checks for zero offsets in messages where they are not supported
Some of this was previously done using custom code in the client, this
is now removed.
Diffstat (limited to 'common/sw_canvas.c')
-rw-r--r-- | common/sw_canvas.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c index 8280362c..c1a7392a 100644 --- a/common/sw_canvas.c +++ b/common/sw_canvas.c @@ -1144,15 +1144,6 @@ static void canvas_clear(SpiceCanvas *spice_canvas) 0); } -static void canvas_set_access_params(SpiceCanvas *spice_canvas, - unsigned long base, unsigned long max) -{ -#ifdef SW_CANVAS_ACCESS_TEST - SwCanvas *canvas = (SwCanvas *)spice_canvas; - __canvas_set_access_params(&canvas->base, base, max); -#endif -} - static void canvas_destroy(SpiceCanvas *spice_canvas) { SwCanvas *canvas = (SwCanvas *)spice_canvas; @@ -1306,7 +1297,6 @@ void sw_canvas_init() //unsafe global function sw_canvas_ops.put_image = canvas_put_image; sw_canvas_ops.clear = canvas_clear; sw_canvas_ops.read_bits = canvas_read_bits; - sw_canvas_ops.set_access_params = canvas_set_access_params; sw_canvas_ops.destroy = canvas_destroy; sw_canvas_ops.fill_solid_spans = fill_solid_spans; |