mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
error: add error_get_class()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
0f32cf6abc
commit
ea25fbca88
2 changed files with 10 additions and 0 deletions
5
error.c
5
error.c
|
@ -64,6 +64,11 @@ bool error_is_set(Error **errp)
|
|||
return (errp && *errp);
|
||||
}
|
||||
|
||||
ErrorClass error_get_class(const Error *err)
|
||||
{
|
||||
return err->err_class;
|
||||
}
|
||||
|
||||
const char *error_get_pretty(Error *err)
|
||||
{
|
||||
return err->msg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue