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

                               Error **errp)

{

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

    ChardevMux *mux;



    if (chardev == NULL) {

        error_setg(errp, "chardev: mux: no chardev given");

        return;

    }

    mux = backend->u.mux = g_new0(ChardevMux, 1);

    qemu_chr_parse_common(opts, qapi_ChardevMux_base(mux));

    mux->chardev = g_strdup(chardev);

}

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

                               Error **errp)

{

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

    ChardevMux *mux;



    if (chardev == NULL) {

        error_setg(errp, "chardev: mux: no chardev given");

        return;

    }

    mux = backend->u.mux = g_new0(ChardevMux, 1);

    qemu_chr_parse_common(opts, qapi_ChardevMux_base(mux));

    mux->chardev = g_strdup(chardev);

}

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

                               Error **VAR_2)

{

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

    ChardevMux *mux;



    if (VAR_3 == NULL) {

        error_setg(VAR_2, "VAR_3: mux: no VAR_3 given");

        return;

    }

    mux = VAR_1->u.mux = g_new0(ChardevMux, 1);

    qemu_chr_parse_common(VAR_0, qapi_ChardevMux_base(mux));

    mux->VAR_3 = 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"); ChardevMux *mux; if (VAR_3 == NULL) { error_setg(VAR_2, "VAR_3: mux: no VAR_3 given"); return; } mux = VAR_1->u.mux = g_new0(ChardevMux, 1); qemu_chr_parse_common(VAR_0, qapi_ChardevMux_base(mux)); mux->VAR_3 = g_strdup(VAR_3); }