Revision c845f401

b/qemu-char.c
2416 2416
    CharDriverState *chr;
2417 2417
    QemuOpts *opts;
2418 2418

  
2419
    if (strstart(filename, "chardev:", &p)) {
2420
        return qemu_chr_find(p);
2421
    }
2422

  
2419 2423
    opts = qemu_chr_parse_compat(label, filename);
2420 2424
    if (!opts)
2421 2425
        return NULL;
......
2445 2449
        monitor_printf(mon, "%s: filename=%s\n", chr->label, chr->filename);
2446 2450
    }
2447 2451
}
2452

  
2453
CharDriverState *qemu_chr_find(const char *name)
2454
{
2455
    CharDriverState *chr;
2456

  
2457
    TAILQ_FOREACH(chr, &chardevs, next) {
2458
        if (strcmp(chr->label, name) != 0)
2459
            continue;
2460
        return chr;
2461
    }
2462
    return NULL;
2463
}
b/qemu-char.h
90 90
int qemu_chr_get_msgfd(CharDriverState *s);
91 91
void qemu_chr_accept_input(CharDriverState *s);
92 92
void qemu_chr_info(Monitor *mon);
93
CharDriverState *qemu_chr_find(const char *name);
93 94

  
94 95
extern int term_escape_char;
95 96

  
b/qemu-config.c
130 130
        },{
131 131
            .name = "rows",
132 132
            .type = QEMU_OPT_NUMBER,
133
        },{
134
            .name = "mux",
135
            .type = QEMU_OPT_BOOL,
133 136
        },
134 137
        { /* end if list */ }
135 138
    },

Also available in: Unified diff