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/record_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/record_channel.cpp')
-rw-r--r-- | client/record_channel.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/record_channel.cpp b/client/record_channel.cpp index 155e8d98..084866cc 100644 --- a/client/record_channel.cpp +++ b/client/record_channel.cpp @@ -19,7 +19,6 @@ #include "red_client.h" #include "audio_channels.h" #include "audio_devices.h" -#include "generated_marshallers.h" #define NUM_SAMPLES_MESSAGES 4 @@ -122,7 +121,7 @@ void RecordChannel::on_connect() mode.mode = _mode = test_capability(SPICE_RECORD_CAP_CELT_0_5_1) ? RecordChannel::data_mode : SPICE_AUDIO_DATA_MODE_RAW; - spice_marshall_msgc_record_mode(message->marshaller(), &mode); + _marshallers->msgc_record_mode(message->marshaller(), &mode); post_message(message); } @@ -131,7 +130,7 @@ void RecordChannel::send_start_mark() Message* message = new Message(SPICE_MSGC_RECORD_START_MARK); SpiceMsgcRecordStartMark start_mark; start_mark.time = get_mm_time(); - spice_marshall_msgc_record_start_mark(message->marshaller(), &start_mark); + _marshallers->msgc_record_start_mark(message->marshaller(), &start_mark); post_message(message); } @@ -260,7 +259,7 @@ void RecordChannel::push_frame(uint8_t *frame) peer_message.reset(SPICE_MSGC_RECORD_DATA); SpiceMsgcRecordPacket packet; packet.time = get_mm_time(); - spice_marshall_msgc_record_data(peer_message.marshaller(), &packet); + _marshallers->msgc_record_data(peer_message.marshaller(), &packet); spice_marshaller_add(peer_message.marshaller(), frame, n); post_message(message); } |