mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 08:47:13 +00:00
smartcard: Optimise sending data
As data is packae in a single piece of memory send it altogether. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
82165c10eb
commit
b8f06e2437
@ -212,10 +212,7 @@ void smartcard_channel_client_send_data(RedChannelClient *rcc,
|
||||
spice_assert(rcc);
|
||||
spice_assert(vheader);
|
||||
red_channel_client_init_send_data(rcc, SPICE_MSG_SMARTCARD_DATA, item);
|
||||
spice_marshaller_add_ref(m, (uint8_t*)vheader, sizeof(VSCMsgHeader));
|
||||
if (vheader->length > 0) {
|
||||
spice_marshaller_add_ref(m, (uint8_t*)(vheader+1), vheader->length);
|
||||
}
|
||||
spice_marshaller_add_ref(m, (uint8_t*)vheader, sizeof(VSCMsgHeader) + vheader->length);
|
||||
}
|
||||
|
||||
void smartcard_channel_client_send_error(RedChannelClient *rcc, SpiceMarshaller *m, RedPipeItem *item)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user