commit | ea25fbca88b223877c45c776b6c0e17e0247439f | [log] [tgz] |
---|---|---|
author | Luiz Capitulino <lcapitulino@redhat.com> | Wed Aug 01 16:29:38 2012 -0300 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Mon Aug 13 13:21:31 2012 -0300 |
tree | 2d2ad4f98a7d133c809151a992a93a8c96411e14 | |
parent | 0f32cf6abcea8006fbf1f9c9bc8bc5bedcf6e431 [diff] [blame] |
error: add error_get_class() Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
diff --git a/error.c b/error.c index 648706a..2d34cde 100644 --- a/error.c +++ b/error.c
@@ -64,6 +64,11 @@ return (errp && *errp); } +ErrorClass error_get_class(const Error *err) +{ + return err->err_class; +} + const char *error_get_pretty(Error *err) { return err->msg;