summaryrefslogtreecommitdiffstats
path: root/server/smartcard.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-04 17:21:46 +0200
committerAlon Levy <alevy@redhat.com>2011-02-07 19:22:44 +0200
commit194a6be5f78cb04a1891d2f74efbab828dab3d39 (patch)
tree6c3af926738deeb15e169c292a53a23b20a102e2 /server/smartcard.c
parent7dfd7a0c779da2df2c90ea59a9defb313779aaca (diff)
downloadspice-194a6be5f78cb04a1891d2f74efbab828dab3d39.tar.gz
spice-194a6be5f78cb04a1891d2f74efbab828dab3d39.tar.xz
spice-194a6be5f78cb04a1891d2f74efbab828dab3d39.zip
server/red_channel: add red_channel_pipe_add_push
Diffstat (limited to 'server/smartcard.c')
-rw-r--r--server/smartcard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/smartcard.c b/server/smartcard.c
index 93142cce..b22d7c44 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -353,9 +353,9 @@ static void smartcard_channel_disconnect(RedChannel *channel)
/* this is called from both device input and client input. since the device is
* a usb device, the context is still the main thread (kvm_main_loop, timers)
* so no mutex is required. */
-static void smartcard_channel_pipe_add(SmartCardChannel *channel, PipeItem *item)
+static void smartcard_channel_pipe_add_push(SmartCardChannel *channel, PipeItem *item)
{
- red_channel_pipe_add(&channel->base, item);
+ red_channel_pipe_add_push(&channel->base, item);
}
static void smartcard_push_error(SmartCardChannel* channel, reader_id_t reader_id, VSCErrorCode error)
@@ -365,7 +365,7 @@ static void smartcard_push_error(SmartCardChannel* channel, reader_id_t reader_i
error_item->base.type = PIPE_ITEM_TYPE_ERROR;
error_item->reader_id = reader_id;
error_item->error = error;
- smartcard_channel_pipe_add(channel, &error_item->base);
+ smartcard_channel_pipe_add_push(channel, &error_item->base);
}
static void smartcard_push_reader_add_response(SmartCardChannel *channel, uint32_t reader_id)
@@ -374,7 +374,7 @@ static void smartcard_push_reader_add_response(SmartCardChannel *channel, uint32
rar_item->base.type = PIPE_ITEM_TYPE_READER_ADD_RESPONSE;
rar_item->reader_id = reader_id;
- smartcard_channel_pipe_add(channel, &rar_item->base);
+ smartcard_channel_pipe_add_push(channel, &rar_item->base);
}
static void smartcard_push_vscmsg(SmartCardChannel *channel, VSCMsgHeader *vheader)
@@ -383,7 +383,7 @@ static void smartcard_push_vscmsg(SmartCardChannel *channel, VSCMsgHeader *vhead
msg_item->base.type = PIPE_ITEM_TYPE_MSG;
msg_item->vheader = vheader;
- smartcard_channel_pipe_add(channel, &msg_item->base);
+ smartcard_channel_pipe_add_push(channel, &msg_item->base);
}
void smartcard_on_message_from_device(SmartCardChannel *smartcard_channel,