diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-08-01 16:29:38 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-08-13 13:21:31 -0300 |
commit | ea25fbca88b223877c45c776b6c0e17e0247439f (patch) | |
tree | 2d2ad4f98a7d133c809151a992a93a8c96411e14 /error.h | |
parent | 0f32cf6abcea8006fbf1f9c9bc8bc5bedcf6e431 (diff) | |
download | qemu-ea25fbca88b223877c45c776b6c0e17e0247439f.tar.gz qemu-ea25fbca88b223877c45c776b6c0e17e0247439f.tar.bz2 qemu-ea25fbca88b223877c45c776b6c0e17e0247439f.zip |
error: add error_get_class()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'error.h')
-rw-r--r-- | error.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -35,6 +35,11 @@ void error_set(Error **err, ErrorClass err_class, const char *fmt, ...) GCC_FMT_ */ bool error_is_set(Error **err); +/* + * Get the error class of an error object. + */ +ErrorClass error_get_class(const Error *err); + /** * Returns an exact copy of the error passed as an argument. */ |