static int net_vhost_chardev_opts(void *opaque,

                                  const char *name, const char *value,

                                  Error **errp)

{

    VhostUserChardevProps *props = opaque;



    if (strcmp(name, "backend") == 0 && strcmp(value, "socket") == 0) {

        props->is_socket = true;

    } else if (strcmp(name, "path") == 0) {

        props->is_unix = true;

    } else if (strcmp(name, "server") == 0) {

    } else {

        error_setg(errp,

                   "vhost-user does not support a chardev with option %s=%s",

                   name, value);

        return -1;

    }

    return 0;

}

static int net_vhost_chardev_opts(void *opaque,

                                  const char *name, const char *value,

                                  Error **errp)

{

    VhostUserChardevProps *props = opaque;



    if (strcmp(name, "backend") == 0 && strcmp(value, "socket") == 0) {

        props->is_socket = true;

    } else if (strcmp(name, "path") == 0) {

        props->is_unix = true;

    } else if (strcmp(name, "server") == 0) {

    } else {

        error_setg(errp,

                   "vhost-user does not support a chardev with option %s=%s",

                   name, value);

        return -1;

    }

    return 0;

}

        props->is_socket = true;     } else {         error_setg(errp,                    name, value);         return -1; static int net_vhost_chardev_opts(void *opaque,                                   const char *name, const char *value,                                   Error **errp)     VhostUserChardevProps *props = opaque;     if (strcmp(name, "backend") == 0 && strcmp(value, "socket") == 0) {         props->is_socket = true;     } else if (strcmp(name, "path") == 0) {         props->is_unix = true;     } else if (strcmp(name, "server") == 0) {     } else {         error_setg(errp,                    "vhost-user does not support a chardev with option %s=%s",                    name, value);         return -1;     return 0;
static int FUNC_0(void *VAR_0,

                                  const char *VAR_1, const char *VAR_2,

                                  Error **VAR_3)

{

    VhostUserChardevProps *props = VAR_0;



    if (strcmp(VAR_1, "backend") == 0 && strcmp(VAR_2, "socket") == 0) {

        props->is_socket = true;

    } else if (strcmp(VAR_1, "path") == 0) {

        props->is_unix = true;

    } else if (strcmp(VAR_1, "server") == 0) {

    } else {

        error_setg(VAR_3,

                   "vhost-user does not support a chardev with option %s=%s",

                   VAR_1, VAR_2);

        return -1;

    }

    return 0;

}

static int FUNC_0(void *VAR_0,
const char *VAR_1, const char *VAR_2,
Error **VAR_3)
{ VhostUserChardevProps *props = VAR_0; if (strcmp(VAR_1, "backend") == 0 && strcmp(VAR_2, "socket") == 0) { props->is_socket = true; } else if (strcmp(VAR_1, "path") == 0) { props->is_unix = true; } else if (strcmp(VAR_1, "server") == 0) { } else { error_setg(VAR_3,
"vhost-user does not support a chardev with option %s=%s",
VAR_1, VAR_2); return -1; } return 0; }