diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-05 23:21:31 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-08 13:57:16 -0600 |
commit | 5ab8211b9e1215ed136164c6d9622f2c928f7a8d (patch) | |
tree | 4fea7a7099a2d00b5a3d25e3c9900707c318f1b6 /hw/msmouse.c | |
parent | 08744c98115cfa144ed3493556024e400b2e2573 (diff) | |
download | qemu-5ab8211b9e1215ed136164c6d9622f2c928f7a8d.zip qemu-5ab8211b9e1215ed136164c6d9622f2c928f7a8d.tar.gz qemu-5ab8211b9e1215ed136164c6d9622f2c928f7a8d.tar.bz2 |
qemu-char: move msmouse registeration to msmouse.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Message-id: b47d1153b0d7669743c9a6bb98ce30f4cf7f876b.1362505276.git.amit.shah@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/msmouse.c')
-rw-r--r-- | hw/msmouse.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hw/msmouse.c b/hw/msmouse.c index ef47aed..407ec87 100644 --- a/hw/msmouse.c +++ b/hw/msmouse.c @@ -25,7 +25,6 @@ #include "qemu-common.h" #include "char/char.h" #include "ui/console.h" -#include "msmouse.h" #define MSMOUSE_LO6(n) ((n) & 0x3f) #define MSMOUSE_HI2(n) (((n) & 0xc0) >> 6) @@ -64,7 +63,7 @@ static void msmouse_chr_close (struct CharDriverState *chr) g_free (chr); } -CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts) +static CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts) { CharDriverState *chr; @@ -76,3 +75,10 @@ CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts) return chr; } + +static void register_types(void) +{ + register_char_driver("msmouse", qemu_chr_open_msmouse); +} + +type_init(register_types); |