diff options
author | ramyelkest <ramyelkest@gmail.com> | 2018-05-05 13:04:20 +0100 |
---|---|---|
committer | Erik Skultety <eskultet@redhat.com> | 2018-06-05 18:44:05 +0200 |
commit | 50e96bb2a18a1bd7c2e7c5585e4ba60759496121 (patch) | |
tree | 518027c51eddabf99ea8061605668cd277f22b19 /tests | |
parent | 52d88d11db833c6737b6f1d91c707023c8a87f44 (diff) | |
download | libvirt-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