void hmp_chardev_add(Monitor *mon, const QDict *qdict)

{

    const char *args = qdict_get_str(qdict, "args");

    Error *err = NULL;

    QemuOpts *opts;



    opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), args, true);

    if (opts == NULL) {

        error_setg(&err, "Parsing chardev args failed");

    } else {

        qemu_chr_new_from_opts(opts, NULL, &err);


    }

    hmp_handle_error(mon, &err);

}
void hmp_chardev_add(Monitor *mon, const QDict *qdict)

{

    const char *args = qdict_get_str(qdict, "args");

    Error *err = NULL;

    QemuOpts *opts;



    opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), args, true);

    if (opts == NULL) {

        error_setg(&err, "Parsing chardev args failed");

    } else {

        qemu_chr_new_from_opts(opts, NULL, &err);


    }

    hmp_handle_error(mon, &err);

}
    QemuOpts *opts;     } else {     } else {
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)

{

    const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2");

    Error *err = NULL;

    QemuOpts *opts;



    opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), VAR_2, true);

    if (opts == NULL) {

        error_setg(&err, "Parsing chardev VAR_2 failed");

    } else {

        qemu_chr_new_from_opts(opts, NULL, &err);


    }

    hmp_handle_error(VAR_0, &err);

}
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{ const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2"); Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), VAR_2, true); if (opts == NULL) { error_setg(&err, "Parsing chardev VAR_2 failed"); } else { qemu_chr_new_from_opts(opts, NULL, &err); } hmp_handle_error(VAR_0, &err); }