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 /client/display_channel.h | |
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 'client/display_channel.h')
-rw-r--r-- | client/display_channel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/display_channel.h b/client/display_channel.h index 52b0cefd..c56adf6f 100644 --- a/client/display_channel.h +++ b/client/display_channel.h @@ -189,8 +189,7 @@ private: void activate_streams_timer(); void stream_update_request(uint32_t update_time); - static void set_clip_rects(const SpiceClip& clip, uint32_t& num_clip_rects, SpiceRect*& clip_rects, - unsigned long addr_offset, uint8_t *min, uint8_t *max); + static void set_clip_rects(const SpiceClip& clip, uint32_t& num_clip_rects, SpiceRect*& clip_rects); private: DisplaySurfacesManger surfaces_mngr; PixmapCache& _pixmap_cache; |