static int net_vhost_user_init(NetClientState *peer, const char *device,

                               const char *name, CharDriverState *chr,

                               int queues)

{

    NetClientState *nc;

    VhostUserState *s;

    int i;



    for (i = 0; i < queues; i++) {

        nc = qemu_new_net_client(&net_vhost_user_info, peer, device, name);



        snprintf(nc->info_str, sizeof(nc->info_str), "vhost-user%d to %s",

                 i, chr->label);



        nc->queue_index = i;



        s = DO_UPCAST(VhostUserState, nc, nc);

        s->chr = chr;

    }



    qemu_chr_add_handlers(chr, NULL, NULL, net_vhost_user_event, (void*)name);



    return 0;

}

static int net_vhost_user_init(NetClientState *peer, const char *device,

                               const char *name, CharDriverState *chr,

                               int queues)

{

    NetClientState *nc;

    VhostUserState *s;

    int i;



    for (i = 0; i < queues; i++) {

        nc = qemu_new_net_client(&net_vhost_user_info, peer, device, name);



        snprintf(nc->info_str, sizeof(nc->info_str), "vhost-user%d to %s",

                 i, chr->label);



        nc->queue_index = i;



        s = DO_UPCAST(VhostUserState, nc, nc);

        s->chr = chr;

    }



    qemu_chr_add_handlers(chr, NULL, NULL, net_vhost_user_event, (void*)name);



    return 0;

}

    qemu_chr_add_handlers(chr, NULL, NULL, net_vhost_user_event, (void*)name);
static int FUNC_0(NetClientState *VAR_0, const char *VAR_1,

                               const char *VAR_2, CharDriverState *VAR_3,

                               int VAR_4)

{

    NetClientState *nc;

    VhostUserState *s;

    int VAR_5;



    for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {

        nc = qemu_new_net_client(&net_vhost_user_info, VAR_0, VAR_1, VAR_2);



        snprintf(nc->info_str, sizeof(nc->info_str), "vhost-user%d to %s",

                 VAR_5, VAR_3->label);



        nc->queue_index = VAR_5;



        s = DO_UPCAST(VhostUserState, nc, nc);

        s->VAR_3 = VAR_3;

    }



    qemu_chr_add_handlers(VAR_3, NULL, NULL, net_vhost_user_event, (void*)VAR_2);



    return 0;

}

static int FUNC_0(NetClientState *VAR_0, const char *VAR_1,
const char *VAR_2, CharDriverState *VAR_3,
int VAR_4)
{ NetClientState *nc; VhostUserState *s; int VAR_5; for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) { nc = qemu_new_net_client(&net_vhost_user_info, VAR_0, VAR_1, VAR_2); snprintf(nc->info_str, sizeof(nc->info_str), "vhost-user%d to %s",
VAR_5, VAR_3->label); nc->queue_index = VAR_5; s = DO_UPCAST(VhostUserState, nc, nc); s->VAR_3 = VAR_3; } qemu_chr_add_handlers(VAR_3, NULL, NULL, net_vhost_user_event, (void*)VAR_2); return 0; }