]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: Introduce IVirtualBoxErrorInfo interface
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Jan 2023 07:59:40 +0000 (08:59 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Jan 2023 09:45:30 +0000 (10:45 +0100)
commit2a690fc1729242a749c50b29ad804b51f5ffa5a3
tree0172e89ee375d838b79a42e459f947ed20144c5d
parentd4b6aa63051153129a9ecf7e24596bfe376bac15
vbox: Introduce IVirtualBoxErrorInfo interface

The IVirtualBoxErrorInfo interface allows us to query error
messages from VirtualBox. Since VirtualBox has stacked errors we
need the GetNext() method too.

The odd one, that sticks out is GetIID() as it is not part of the
interface as defined by VirtualBox header files. BUT, we need to
get the interface UUID (which MAY change across each release) so
that it can be passed to VBOX_QUERY_INTERFACE() introduced
earlier.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/vbox/vbox_common.h
src/vbox/vbox_tmpl.c
src/vbox/vbox_uniformed_api.h