mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 18:45:27 +00:00
40 lines
693 B
C
40 lines
693 B
C
/*
|
|
* QError Module
|
|
*
|
|
* Copyright (C) 2009 Red Hat Inc.
|
|
*
|
|
* Authors:
|
|
* Luiz Capitulino <lcapitulino@redhat.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
|
|
* See the COPYING.LIB file in the top-level directory.
|
|
*/
|
|
|
|
#include "qapi/qmp/qjson.h"
|
|
#include "qapi/qmp/qerror.h"
|
|
#include "qemu-common.h"
|
|
|
|
|
|
/**
|
|
* qerror_human(): Format QError data into human-readable string.
|
|
*/
|
|
QString *qerror_human(const QError *qerror)
|
|
{
|
|
return qstring_from_str(qerror->err_msg);
|
|
}
|
|
|
|
void qerror_report(ErrorClass eclass, const char *fmt, ...)
|
|
{
|
|
}
|
|
|
|
/* Evil... */
|
|
struct Error
|
|
{
|
|
char *msg;
|
|
ErrorClass err_class;
|
|
};
|
|
|
|
void qerror_report_err(Error *err)
|
|
{
|
|
}
|