static void ccid_card_vscard_send_msg(PassthruState *s,

        VSCMsgType type, uint32_t reader_id,

        const uint8_t *payload, uint32_t length)

{

    VSCMsgHeader scr_msg_header;



    scr_msg_header.type = htonl(type);

    scr_msg_header.reader_id = htonl(reader_id);

    scr_msg_header.length = htonl(length);

    qemu_chr_fe_write(s->cs, (uint8_t *)&scr_msg_header, sizeof(VSCMsgHeader));

    qemu_chr_fe_write(s->cs, payload, length);

}

static void ccid_card_vscard_send_msg(PassthruState *s,

        VSCMsgType type, uint32_t reader_id,

        const uint8_t *payload, uint32_t length)

{

    VSCMsgHeader scr_msg_header;



    scr_msg_header.type = htonl(type);

    scr_msg_header.reader_id = htonl(reader_id);

    scr_msg_header.length = htonl(length);

    qemu_chr_fe_write(s->cs, (uint8_t *)&scr_msg_header, sizeof(VSCMsgHeader));

    qemu_chr_fe_write(s->cs, payload, length);

}

    qemu_chr_fe_write(s->cs, (uint8_t *)&scr_msg_header, sizeof(VSCMsgHeader));     qemu_chr_fe_write(s->cs, payload, length);
static void FUNC_0(PassthruState *VAR_0,

        VSCMsgType VAR_1, uint32_t VAR_2,

        const uint8_t *VAR_3, uint32_t VAR_4)

{

    VSCMsgHeader scr_msg_header;



    scr_msg_header.VAR_1 = htonl(VAR_1);

    scr_msg_header.VAR_2 = htonl(VAR_2);

    scr_msg_header.VAR_4 = htonl(VAR_4);

    qemu_chr_fe_write(VAR_0->cs, (uint8_t *)&scr_msg_header, sizeof(VSCMsgHeader));

    qemu_chr_fe_write(VAR_0->cs, VAR_3, VAR_4);

}

static void FUNC_0(PassthruState *VAR_0,
VSCMsgType VAR_1, uint32_t VAR_2,
const uint8_t *VAR_3, uint32_t VAR_4)
{ VSCMsgHeader scr_msg_header; scr_msg_header.VAR_1 = htonl(VAR_1); scr_msg_header.VAR_2 = htonl(VAR_2); scr_msg_header.VAR_4 = htonl(VAR_4); qemu_chr_fe_write(VAR_0->cs, (uint8_t *)&scr_msg_header, sizeof(VSCMsgHeader)); qemu_chr_fe_write(VAR_0->cs, VAR_3, VAR_4); }