diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-22 10:35:03 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-22 10:54:59 +0200 |
commit | 5c05a24ba14b1942309a703866aac76772f5f201 (patch) | |
tree | cce2082525dcd620c973414dd58bf9608a0f49a4 /client/red_channel.cpp | |
parent | 5341b632e2b1d2527303cce3f69a8146a8d48489 (diff) | |
download | spice-5c05a24ba14b1942309a703866aac76772f5f201.tar.gz spice-5c05a24ba14b1942309a703866aac76772f5f201.tar.xz spice-5c05a24ba14b1942309a703866aac76772f5f201.zip |
Convert client to use indirect calls for message marshalling
This is required to support multiple versions
Diffstat (limited to 'client/red_channel.cpp')
-rw-r--r-- | client/red_channel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/red_channel.cpp b/client/red_channel.cpp index 7065b0a6..a65917a7 100644 --- a/client/red_channel.cpp +++ b/client/red_channel.cpp @@ -21,7 +21,6 @@ #include "application.h" #include "debug.h" #include "utils.h" -#include "generated_marshallers.h" #include "openssl/rsa.h" #include "openssl/evp.h" @@ -258,6 +257,7 @@ RedChannel::RedChannel(RedClient& client, uint8_t type, uint8_t id, { _loop.add_trigger(_send_trigger); _loop.add_trigger(_abort_trigger); + _marshallers = spice_message_marshallers_get(); } RedChannel::~RedChannel() @@ -646,7 +646,7 @@ void RedChannel::handle_set_ack(RedPeer::InMessage* message) Message *response = new Message(SPICE_MSGC_ACK_SYNC); SpiceMsgcAckSync sync; sync.generation = ack->generation; - spice_marshall_msgc_ack_sync(response->marshaller(), &sync); + _marshallers->msgc_ack_sync(response->marshaller(), &sync); post_message(response); } @@ -654,7 +654,7 @@ void RedChannel::handle_ping(RedPeer::InMessage* message) { SpiceMsgPing *ping = (SpiceMsgPing *)message->data(); Message *pong = new Message(SPICE_MSGC_PONG); - spice_marshall_msgc_pong(pong->marshaller(), ping); + _marshallers->msgc_pong(pong->marshaller(), ping); post_message(pong); } |