]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
char: qemu_chr_open_opts() -> qemu_chr_new_from_opts()
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 15 Aug 2011 16:17:37 +0000 (11:17 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Aug 2011 15:17:43 +0000 (10:17 -0500)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c
qemu-char.h
vl.c

index 4eec8d12423a1469e8db35ea9ffd86ff83a3884b..13952355e1bd61b295a2db0fca1ae43e6b8cecb6 100644 (file)
@@ -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);
     }
index 097f0e67916a0ed3cb832724183eef2df19bed71..f90b85c81aaf1ce3b682914d47a1bd1ddbeffb19 100644 (file)
@@ -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 321bc1548ebd45e195c37ef28c0bb3ebda2ce0de..5f1a17704ba1a4526680bead6b153a45b5b7d21c 100644 (file)
--- 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;