On Thu, Apr 30, 2026 at 01:02:49AM +0400, Marc-André Lureau wrote: > Combine the two-step vnc_display_init()/vnc_display_open() sequence > into a single vnc_display_new() function that returns VncDisplay*. > This simplifies the API by making vnc_display_open() an > internal detail and will allow further code simplification. > > vnc_display_new() is moved to vnc.h, since it returns VncDisplay* now. > Add vnc_display_free() for consistency, and it will be later used. > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > include/ui/console.h | 2 -- > ui/vnc.h | 3 ++ > ui/vnc.c | 79 > ++++++++++++++++++++++------------------------------ > 3 files changed, 36 insertions(+), 48 deletions(-)
Reviewed-by: Daniel P. Berrangé <[email protected]> With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
