mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
char: qemu_chr_open_opts() -> qemu_chr_new_from_opts()
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
27143a445b
commit
f69554b9e8
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ struct CharDriverState {
|
||||||
};
|
};
|
||||||
|
|
||||||
QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename);
|
QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename);
|
||||||
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 *qemu_chr_new(const char *label, const char *filename, void (*init)(struct CharDriverState *s));
|
CharDriverState *qemu_chr_new(const char *label, const char *filename, void (*init)(struct CharDriverState *s));
|
||||||
void qemu_chr_fe_set_echo(struct CharDriverState *chr, bool echo);
|
void qemu_chr_fe_set_echo(struct CharDriverState *chr, bool echo);
|
||||||
|
|
2
vl.c
2
vl.c
|
@ -1689,7 +1689,7 @@ static int chardev_init_func(QemuOpts *opts, void *opaque)
|
||||||
{
|
{
|
||||||
CharDriverState *chr;
|
CharDriverState *chr;
|
||||||
|
|
||||||
chr = qemu_chr_open_opts(opts, NULL);
|
chr = qemu_chr_new_from_opts(opts, NULL);
|
||||||
if (!chr)
|
if (!chr)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue