static CharDriverState *qemu_chr_open_spice_port(const char *id,

                                                 ChardevBackend *backend,

                                                 ChardevReturn *ret,

                                                 Error **errp)

{

    const char *name = backend->spiceport->fqdn;

    CharDriverState *chr;

    SpiceCharDriver *s;



    if (name == NULL) {

        fprintf(stderr, "spice-qemu-char: missing name parameter\n");

        return NULL;

    }



    chr = chr_open("port", spice_port_set_fe_open);

    s = chr->opaque;

    s->sin.portname = g_strdup(name);



    return chr;

}

static CharDriverState *qemu_chr_open_spice_port(const char *id,

                                                 ChardevBackend *backend,

                                                 ChardevReturn *ret,

                                                 Error **errp)

{

    const char *name = backend->spiceport->fqdn;

    CharDriverState *chr;

    SpiceCharDriver *s;



    if (name == NULL) {

        fprintf(stderr, "spice-qemu-char: missing name parameter\n");

        return NULL;

    }



    chr = chr_open("port", spice_port_set_fe_open);

    s = chr->opaque;

    s->sin.portname = g_strdup(name);



    return chr;

}

static CharDriverState *FUNC_0(const char *id,

                                                 ChardevBackend *backend,

                                                 ChardevReturn *ret,

                                                 Error **errp)

{

    const char *VAR_0 = backend->spiceport->fqdn;

    CharDriverState *chr;

    SpiceCharDriver *s;



    if (VAR_0 == NULL) {

        fprintf(stderr, "spice-qemu-char: missing VAR_0 parameter\n");

        return NULL;

    }



    chr = chr_open("port", spice_port_set_fe_open);

    s = chr->opaque;

    s->sin.portname = g_strdup(VAR_0);



    return chr;

}

static CharDriverState *FUNC_0(const char *id,
ChardevBackend *backend,
ChardevReturn *ret,
Error **errp)
{ const char *VAR_0 = backend->spiceport->fqdn; CharDriverState *chr; SpiceCharDriver *s; if (VAR_0 == NULL) { fprintf(stderr, "spice-qemu-char: missing VAR_0 parameter\n"); return NULL; } chr = chr_open("port", spice_port_set_fe_open); s = chr->opaque; s->sin.portname = g_strdup(VAR_0); return chr; }