mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
QError: Introduce qerror_format()
Will be used by new error propagation framework to convert Error objects into human-readable form. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a12eeaaa4f
commit
87c2f59166
2 changed files with 16 additions and 0 deletions
1
qerror.h
1
qerror.h
|
@ -39,6 +39,7 @@ QString *qerror_human(const QError *qerror);
|
|||
void qerror_print(QError *qerror);
|
||||
void qerror_report_internal(const char *file, int linenr, const char *func,
|
||||
const char *fmt, ...) GCC_FMT_ATTR(4, 5);
|
||||
QString *qerror_format(const char *fmt, QDict *error);
|
||||
#define qerror_report(fmt, ...) \
|
||||
qerror_report_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__)
|
||||
QError *qobject_to_qerror(const QObject *obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue