[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/14] char: qemu_chr_open_opts() -> qemu_chr_new_fr
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 10/14] char: qemu_chr_open_opts() -> qemu_chr_new_from_opts() |
Date: |
Mon, 15 Aug 2011 11:17:37 -0500 |
Signed-off-by: Anthony Liguori <address@hidden>
---
qemu-char.c | 4 ++--
qemu-char.h | 2 +-
vl.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 569e989..75fe7b3 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2548,7 +2548,7 @@ static const struct {
#endif
};
-CharDriverState *qemu_chr_open_opts(QemuOpts *opts,
+CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts,
void (*init)(struct CharDriverState *s))
{
CharDriverState *chr;
@@ -2617,7 +2617,7 @@ CharDriverState *qemu_chr_new(const char *label, const
char *filename, void (*in
if (!opts)
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)) {
monitor_init(chr, MONITOR_USE_READLINE);
}
diff --git a/qemu-char.h b/qemu-char.h
index 097f0e6..f90b85c 100644
--- a/qemu-char.h
+++ b/qemu-char.h
@@ -78,7 +78,7 @@ struct CharDriverState {
};
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));
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);
diff --git a/vl.c b/vl.c
index 7143d15..c389c27 100644
--- a/vl.c
+++ b/vl.c
@@ -1689,7 +1689,7 @@ static int chardev_init_func(QemuOpts *opts, void *opaque)
{
CharDriverState *chr;
- chr = qemu_chr_open_opts(opts, NULL);
+ chr = qemu_chr_new_from_opts(opts, NULL);
if (!chr)
return -1;
return 0;
--
1.7.4.1
- [Qemu-devel] [PATCH 00/14] char: flow control part I, Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 01/14] char: rename qemu_chr_write() -> qemu_chr_fe_write(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 04/14] char: rename qemu_chr_can_read() -> qemu_chr_be_can_read(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 06/14] char: rename qemu_chr_guest_close() -> qemu_chr_fe_close(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 03/14] char: rename qemu_chr_read() -> qemu_chr_be_write(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 08/14] char: rename qemu_chr_set_echo() -> qemu_chr_fe_set_echo(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 02/14] char: rename qemu_chr_printf() -> qemu_chr_fe_printf(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 07/14] char: qemu_chr_ioctl() -> qemu_chr_fe_ioctl(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 05/14] char: rename qemu_chr_guest_open() -> qemu_chr_fe_open(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 11/14] char: rename qemu_chr_close() -> qemu_chr_delete(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 10/14] char: qemu_chr_open_opts() -> qemu_chr_new_from_opts(),
Anthony Liguori <=
- [Qemu-devel] [PATCH 13/14] char: remove qemu_chr_send_event(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 09/14] char: rename qemu_chr_open() -> qemu_chr_new(), Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 14/14] char: document the functions that will be the public interface, Anthony Liguori, 2011/08/15
- [Qemu-devel] [PATCH 12/14] char: rename qemu_chr_get_msgfd() -> qemu_chr_fe_get_msgfd(), Anthony Liguori, 2011/08/15
- Re: [Qemu-devel] [PATCH 00/14] char: flow control part I, Amit Shah, 2011/08/16
- Re: [Qemu-devel] [PATCH 00/14] char: flow control part I, Anthony Liguori, 2011/08/22