chardev: add support for qapi-based chardev initialization
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 21 Feb 2013 10:39:12 +0000 (11:39 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 13 Mar 2013 09:27:45 +0000 (10:27 +0100)
commit2c5f488293c7d0cd095635c74157c2526e2c4947
treeab39a41324c9634bb1240a4414ac2b960d6cee3d
parent8ca761f661a7cc972bc6bcf938feca6c538100f0
chardev: add support for qapi-based chardev initialization

This patch add support for a new way to initialize chardev devices.
Instead of calling a initialization function with a QemuOpts we will
now create a (qapi) ChardevBackend, optionally call a function to
fill ChardevBackend from QemuOpts, then go create the chardev using
the new qapi code path which is also used by chardev-add.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/char/char.h
qemu-char.c