Hi, This patch series starts to switch the chardev initialization to qapi, i.e. instead of passing the QemuOpts we'll get directly to a initialization function we'll create a ChardevBackend from the QemuOpts, then go create the chardev via qmp_chardev_add.
Once finished all chardev initialization will use the same code paths, no matter whenever they where triggered via cmdline or via qmp. This patch series is a first step only and converts only a part of the backends over to the new api. please review, Gerd Gerd Hoffmann (9): chardev: add support for qapi-based chardev initialization chardev: add mux chardev support to qapi chardev: switch null init to qapi chardev: add msmouse support to qapi chardev: add braille support to qapi chardev: switch file init to qapi chardev: add stdio support to qapi chardev: switch serial/tty init to qapi chardev: switch parallel init to qapi hw/baum.c | 2 +- hw/baum.h | 2 +- hw/msmouse.c | 2 +- hw/msmouse.h | 2 +- qapi-schema.json | 28 +++++++- qemu-char.c | 210 +++++++++++++++++++++++++++++++++++------------------- 6 files changed, 167 insertions(+), 79 deletions(-) -- 1.7.9.7