|
@@ -2548,7 +2548,7 @@ static const struct {
|
|
#endif
|
|
#endif
|
|
};
|
|
};
|
|
|
|
|
|
-CharDriverState *qemu_chr_open_opts(QemuOpts *opts,
|
|
|
|
|
|
+CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts,
|
|
void (*init)(struct CharDriverState *s))
|
|
void (*init)(struct CharDriverState *s))
|
|
{
|
|
{
|
|
CharDriverState *chr;
|
|
CharDriverState *chr;
|
|
@@ -2617,7 +2617,7 @@ CharDriverState *qemu_chr_new(const char *label, const char *filename, void (*in
|
|
if (!opts)
|
|
if (!opts)
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- chr = qemu_chr_open_opts(opts, init);
|
|
|
|
|
|
+ chr = qemu_chr_new_from_opts(opts, init);
|
|
if (chr && qemu_opt_get_bool(opts, "mux", 0)) {
|
|
if (chr && qemu_opt_get_bool(opts, "mux", 0)) {
|
|
monitor_init(chr, MONITOR_USE_READLINE);
|
|
monitor_init(chr, MONITOR_USE_READLINE);
|
|
}
|
|
}
|