summaryrefslogtreecommitdiff
path: root/ui/console.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-03-05 23:21:32 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2013-03-08 13:57:16 -0600
commit01f45d986fb0b7c2d4f0466efe3cde9708f325be (patch)
tree0f5509424107791776e9320fe26cb634550f4cc0 /ui/console.c
parent5ab8211b9e1215ed136164c6d9622f2c928f7a8d (diff)
downloadqemu-01f45d986fb0b7c2d4f0466efe3cde9708f325be.tar.gz
qemu-01f45d986fb0b7c2d4f0466efe3cde9708f325be.tar.bz2
qemu-01f45d986fb0b7c2d4f0466efe3cde9708f325be.zip
qemu-char: move text console init to console.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Amit Shah <amit.shah@redhat.com> Message-id: 17cefde0a8d7807294bab95e93c3328a20d3f2ed.1362505276.git.amit.shah@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/console.c')
-rw-r--r--ui/console.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c
index 0d95f32123..83a6fa3969 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1739,3 +1739,10 @@ PixelFormat qemu_default_pixelformat(int bpp)
}
return pf;
}
+
+static void register_types(void)
+{
+ register_char_driver("vc", text_console_init);
+}
+
+type_init(register_types);