Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 584126 | Differences between
and this patch

Collapse All | Expand All

(-)a/server/smartcard.c (-3 / +6 lines)
Lines 172-185 static void smartcard_unref_msg_to_client(SpiceCharDeviceMsgToClient *msg, Link Here
172
    smartcard_unref_vsc_msg_item((MsgItem *)msg);
172
    smartcard_unref_vsc_msg_item((MsgItem *)msg);
173
}
173
}
174
174
175
static void smartcard_send_msg_to_client(SpiceCharDeviceMsgToClient *msg,
175
static void smartcard_send_msg_to_client(SpiceCharDeviceMsgToClient *message,
176
                                         RedClient *client,
176
                                         RedClient *client,
177
                                         void *opaque)
177
                                         void *opaque)
178
{
178
{
179
    SmartCardDeviceState *dev = opaque;
179
    SmartCardDeviceState *dev = opaque;
180
    spice_assert(dev->scc && dev->scc->base.client == client);
180
    MsgItem *msg = (MsgItem *)message;
181
    smartcard_channel_client_pipe_add_push(&dev->scc->base, &((MsgItem *)msg)->base);
181
    PipeItem *item = &msg->base;
182
182
183
    spice_assert(dev->scc && dev->scc->base.client == client);
184
    smartcard_ref_vsc_msg_item(msg);
185
    smartcard_channel_client_pipe_add_push(&dev->scc->base, item);
183
}
186
}
184
187
185
static void smartcard_send_tokens_to_client(RedClient *client, uint32_t tokens, void *opaque)
188
static void smartcard_send_tokens_to_client(RedClient *client, uint32_t tokens, void *opaque)

Return to bug 584126