static void net_vhost_user_event(void *opaque, int event)

{

    VhostUserState *s = opaque;



    switch (event) {

    case CHR_EVENT_OPENED:

        vhost_user_start(s);

        net_vhost_link_down(s, false);

        error_report("chardev \"%s\" went up", s->chr->label);

        break;

    case CHR_EVENT_CLOSED:

        net_vhost_link_down(s, true);

        vhost_user_stop(s);

        error_report("chardev \"%s\" went down", s->chr->label);

        break;

    }

}

static void net_vhost_user_event(void *opaque, int event)

{

    VhostUserState *s = opaque;



    switch (event) {

    case CHR_EVENT_OPENED:

        vhost_user_start(s);

        net_vhost_link_down(s, false);

        error_report("chardev \"%s\" went up", s->chr->label);

        break;

    case CHR_EVENT_CLOSED:

        net_vhost_link_down(s, true);

        vhost_user_stop(s);

        error_report("chardev \"%s\" went down", s->chr->label);

        break;

    }

}

static void FUNC_0(void *VAR_0, int VAR_1)

{

    VhostUserState *s = VAR_0;



    switch (VAR_1) {

    case CHR_EVENT_OPENED:

        vhost_user_start(s);

        net_vhost_link_down(s, false);

        error_report("chardev \"%s\" went up", s->chr->label);

        break;

    case CHR_EVENT_CLOSED:

        net_vhost_link_down(s, true);

        vhost_user_stop(s);

        error_report("chardev \"%s\" went down", s->chr->label);

        break;

    }

}

static void FUNC_0(void *VAR_0, int VAR_1)
{ VhostUserState *s = VAR_0; switch (VAR_1) { case CHR_EVENT_OPENED:
vhost_user_start(s); net_vhost_link_down(s, false); error_report("chardev \"%s\" went up", s->chr->label); break; case CHR_EVENT_CLOSED:
net_vhost_link_down(s, true); vhost_user_stop(s); error_report("chardev \"%s\" went down", s->chr->label); break; } }