diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-17 10:15:15 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-18 20:27:32 +0200 |
commit | ee91ed475dc5b9ea8f5ee05faa3dd153306e3471 (patch) | |
tree | adfd3b9086bb875db3d3748c4ab88c8977e17ff5 /client/display_channel.cpp | |
parent | 13026676627887a7d85abb49a0468150ac75ebe6 (diff) | |
download | spice-ee91ed475dc5b9ea8f5ee05faa3dd153306e3471.tar.gz spice-ee91ed475dc5b9ea8f5ee05faa3dd153306e3471.tar.xz spice-ee91ed475dc5b9ea8f5ee05faa3dd153306e3471.zip |
Switch client to use generated marshallers
Diffstat (limited to 'client/display_channel.cpp')
-rw-r--r-- | client/display_channel.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp index 9cc5550c..5286aed1 100644 --- a/client/display_channel.cpp +++ b/client/display_channel.cpp @@ -42,6 +42,7 @@ #include "inputs_channel.h" #include "cursor_channel.h" #include "mjpeg_decoder.h" +#include "generated_marshallers.h" class CreatePrimarySurfaceEvent: public SyncEvent { public: @@ -1022,12 +1023,13 @@ private: void DisplayChannel::on_connect() { - Message* message = new Message(SPICE_MSGC_DISPLAY_INIT, sizeof(SpiceMsgcDisplayInit)); - SpiceMsgcDisplayInit* init = (SpiceMsgcDisplayInit*)message->data(); - init->pixmap_cache_id = 1; - init->pixmap_cache_size = get_client().get_pixmap_cache_size(); - init->glz_dictionary_id = 1; - init->glz_dictionary_window_size = get_client().get_glz_window_size(); + Message* message = new Message(SPICE_MSGC_DISPLAY_INIT); + SpiceMsgcDisplayInit init; + init.pixmap_cache_id = 1; + init.pixmap_cache_size = get_client().get_pixmap_cache_size(); + init.glz_dictionary_id = 1; + init.glz_dictionary_window_size = get_client().get_glz_window_size(); + spice_marshall_msgc_display_init(message->marshaller(), &init); post_message(message); AutoRef<AttachChannelsEvent> attach_channels(new AttachChannelsEvent(*this)); get_client().push_event(*attach_channels); |