ui/spice-app: don't use qemu_chr_open_spice_port directly
commite220cf866267fbca3dae16f68ec01b67a4beb805
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Oct 2020 12:11:15 +0000 (14 14:11 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 15 Oct 2020 09:14:40 +0000 (15 11:14 +0200)
tree15eefb5d97a9d308e4dd569ebbd4efb13d1d5fe9
parentf88908cf3014bb028fc5ad33e32aa3065f0c2715
ui/spice-app: don't use qemu_chr_open_spice_port directly

Save the parent object's open function pointer in the (new)
VCChardevClass struct instead before overwriting it, so we
can look it up when needed.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201014121120.13482-3-kraxel@redhat.com
ui/spice-app.c