summaryrefslogtreecommitdiffstats
path: root/common/sw_canvas.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-05-25 16:01:18 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:43 +0100
commit3645036d7e9c75b35d5f653b68d5061b415b98ef (patch)
tree083944f86e03cfa51010303e4c1fb7fd2e2d3de3 /common/sw_canvas.c
parente9b33a194e2eb2a99a6daba16311c88237578697 (diff)
downloadspice-common-3645036d7e9c75b35d5f653b68d5061b415b98ef.tar.gz
spice-common-3645036d7e9c75b35d5f653b68d5061b415b98ef.tar.xz
spice-common-3645036d7e9c75b35d5f653b68d5061b415b98ef.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.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index 8280362..c1a7392 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;