summaryrefslogtreecommitdiffstats
path: root/client/red_client.cpp
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-22 10:35:03 +0200
committerAlexander Larsson <alexl@redhat.com>2010-06-22 10:54:59 +0200
commit5c05a24ba14b1942309a703866aac76772f5f201 (patch)
treecce2082525dcd620c973414dd58bf9608a0f49a4 /client/red_client.cpp
parent5341b632e2b1d2527303cce3f69a8146a8d48489 (diff)
downloadspice-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_client.cpp')
-rw-r--r--client/red_client.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp
index c079f3d4..f5b52d64 100644
--- a/client/red_client.cpp
+++ b/client/red_client.cpp
@@ -22,7 +22,7 @@
#include "process_loop.h"
#include "utils.h"
#include "debug.h"
-#include "generated_marshallers.h"
+#include "marshallers.h"
#ifdef __GNUC__
typedef struct __attribute__ ((__packed__)) OldRedMigrationBegin {
@@ -701,7 +701,7 @@ void RedClient::set_mouse_mode(uint32_t supported_modes, uint32_t current_mode)
Message* message = new Message(SPICE_MSGC_MAIN_MOUSE_MODE_REQUEST);
SpiceMsgcMainMouseModeRequest mouse_mode_request;
mouse_mode_request.mode = SPICE_MOUSE_MODE_CLIENT;
- spice_marshall_msgc_main_mouse_mode_request(message->marshaller(),
+ _marshallers->msgc_main_mouse_mode_request(message->marshaller(),
&mouse_mode_request);
post_message(message);
@@ -722,7 +722,7 @@ void RedClient::handle_init(RedPeer::InMessage* message)
Message* msg = new Message(SPICE_MSGC_MAIN_AGENT_START);
SpiceMsgcMainAgentStart agent_start;
agent_start.num_tokens = ~0;
- spice_marshall_msgc_main_agent_start(msg->marshaller(), &agent_start);
+ _marshallers->msgc_main_agent_start(msg->marshaller(), &agent_start);
post_message(msg);
}
if (_auto_display_res) {
@@ -763,7 +763,7 @@ void RedClient::handle_agent_connected(RedPeer::InMessage* message)
Message* msg = new Message(SPICE_MSGC_MAIN_AGENT_START);
SpiceMsgcMainAgentStart agent_start;
agent_start.num_tokens = ~0;
- spice_marshall_msgc_main_agent_start(msg->marshaller(), &agent_start);
+ _marshallers->msgc_main_agent_start(msg->marshaller(), &agent_start);
post_message(msg);
if (_auto_display_res && !_agent_mon_config_sent) {
send_agent_monitors_config();