]> git.proxmox.com Git - mirror_qemu.git/commit - ui/vnc.c
vnc: Hoist allocation of VncBasicInfo to callers
authorEric Blake <eblake@redhat.com>
Mon, 26 Oct 2015 22:34:45 +0000 (16:34 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 2 Nov 2015 07:30:26 +0000 (08:30 +0100)
commit98481bfcd661daa3c160cc87a297b0e60a307788
tree2ebb20d6461c2405f3f0313431a64df4824037e4
parent9fb081e0b98409556d023c7193eeb68947cd1211
vnc: Hoist allocation of VncBasicInfo to callers

A future qapi patch will rework generated structs with a base
class to be unboxed.  In preparation for that, change the code
that allocates then populates an info struct to instead merely
populate the fields of an info field passed in as a parameter
(renaming vnc_basic_info_get* to vnc_init_basic_info*). Add
rudimentary Error handling at the lowest levels for cases
where the old code returned NULL; but rather than plumb Error
all the way through the stack, the callers drop the error and
return NULL as before.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1445898903-12082-7-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
ui/vnc.c