• Marc-André Lureau's avatar
    char: remove class kind field · 0b663b7d
    Marc-André Lureau authored
    The class kind is necessary to lookup the chardev name in
    qmp_chardev_add() after calling qemu_chr_new_from_opts() and to set
    the appropriate ChardevBackend (mainly to free the right
    qemu_chr_new_from_opts() can be changed to use a non-qmp function
    using the chardev class typename. Introduce qemu_chardev_add() to be
    called from qemu_chr_new_from_opts() and remove the class chardev kind
    field. Set the backend->type in the parse callback (when non-common
    fields are added).
    Signed-off-by: 's avatarMarc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: 's avatarEric Blake <eblake@redhat.com>
baum.c 22.1 KB