summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorramyelkest <ramyelkest@gmail.com>2018-05-05 13:04:20 +0100
committerErik Skultety <eskultet@redhat.com>2018-06-05 18:44:05 +0200
commit50e96bb2a18a1bd7c2e7c5585e4ba60759496121 (patch)
tree518027c51eddabf99ea8061605668cd277f22b19 /tests
parent52d88d11db833c6737b6f1d91c707023c8a87f44 (diff)
downloadlibvirt-50e96bb2a18a1bd7c2e7c5585e4ba60759496121.tar.gz
util: virerror: Introduce virGetLastError{Code,Domain} public APIs
Many places in the code call virGetLastError() just to check the raised error code, or domain. However virGetLastError() can return NULL, so the code has to check for that first. This patch therefore introduces virGetLasError{Code,Domain} functions which always return a valid error code or domain respectively, thus dropping the need to perform any checks on the error object. Signed-off-by: Ramy Elkest <ramyelkest@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions