static void qemu_chr_parse_spice_port(QemuOpts *opts, ChardevBackend *backend,

                                      Error **errp)

{

    const char *name = qemu_opt_get(opts, "name");

    ChardevSpicePort *spiceport;



    if (name == NULL) {

        error_setg(errp, "chardev: spice port: no name given");

        return;

    }

    spiceport = backend->u.spiceport = g_new0(ChardevSpicePort, 1);

    qemu_chr_parse_common(opts, qapi_ChardevSpicePort_base(spiceport));

    spiceport->fqdn = g_strdup(name);

}

static void qemu_chr_parse_spice_port(QemuOpts *opts, ChardevBackend *backend,

                                      Error **errp)

{

    const char *name = qemu_opt_get(opts, "name");

    ChardevSpicePort *spiceport;



    if (name == NULL) {

        error_setg(errp, "chardev: spice port: no name given");

        return;

    }

    spiceport = backend->u.spiceport = g_new0(ChardevSpicePort, 1);

    qemu_chr_parse_common(opts, qapi_ChardevSpicePort_base(spiceport));

    spiceport->fqdn = g_strdup(name);

}

static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,

                                      Error **VAR_2)

{

    const char *VAR_3 = qemu_opt_get(VAR_0, "VAR_3");

    ChardevSpicePort *spiceport;



    if (VAR_3 == NULL) {

        error_setg(VAR_2, "chardev: spice port: no VAR_3 given");

        return;

    }

    spiceport = VAR_1->u.spiceport = g_new0(ChardevSpicePort, 1);

    qemu_chr_parse_common(VAR_0, qapi_ChardevSpicePort_base(spiceport));

    spiceport->fqdn = g_strdup(VAR_3);

}

static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,
Error **VAR_2)
{ const char *VAR_3 = qemu_opt_get(VAR_0, "VAR_3"); ChardevSpicePort *spiceport; if (VAR_3 == NULL) { error_setg(VAR_2, "chardev: spice port: no VAR_3 given"); return; } spiceport = VAR_1->u.spiceport = g_new0(ChardevSpicePort, 1); qemu_chr_parse_common(VAR_0, qapi_ChardevSpicePort_base(spiceport)); spiceport->fqdn = g_strdup(VAR_3); }