2020-05-07 15:50:21 +02:00
|
|
|
#pragma once
|
|
|
|
#include <wut.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \defgroup coreinit_cosreport COS Report
|
|
|
|
* \ingroup coreinit
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum COSReportLevel{
|
2020-05-07 15:29:59 +01:00
|
|
|
COS_REPORT_LEVEL_ERROR = 0,
|
|
|
|
COS_REPORT_LEVEL_WARN = 1,
|
|
|
|
COS_REPORT_LEVEL_INFO = 2,
|
|
|
|
COS_REPORT_LEVEL_VERBOSE = 3,
|
2020-05-07 15:50:21 +02:00
|
|
|
} COSReportLevel;
|
|
|
|
|
|
|
|
typedef enum COSReportModule{
|
2020-05-07 15:29:59 +01:00
|
|
|
COS_REPORT_MODULE_UNKNOWN_0 = 0,
|
|
|
|
COS_REPORT_MODULE_UNKNOWN_1 = 1,
|
|
|
|
COS_REPORT_MODULE_UNKNOWN_2 = 2,
|
|
|
|
COS_REPORT_MODULE_UNKNOWN_5 = 5,
|
2020-05-07 15:50:21 +02:00
|
|
|
} COSReportModule;
|
|
|
|
|
|
|
|
void
|
|
|
|
COSVReport(COSReportModule module,
|
|
|
|
COSReportLevel level,
|
|
|
|
const char* fmt,
|
|
|
|
...);
|
|
|
|
|
|
|
|
void
|
|
|
|
COSError(COSReportModule module,
|
|
|
|
const char* fmt,
|
|
|
|
...);
|
|
|
|
|
|
|
|
void
|
|
|
|
COSInfo(COSReportModule module,
|
|
|
|
const char* fmt,
|
|
|
|
...);
|
|
|
|
|
|
|
|
void
|
|
|
|
COSVerbose(COSReportModule module,
|
|
|
|
const char* fmt,
|
|
|
|
...);
|
|
|
|
|
|
|
|
void
|
|
|
|
COSWarn(COSReportModule module,
|
|
|
|
const char* fmt,
|
|
|
|
...);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-05-07 15:29:59 +01:00
|
|
|
/** @} */
|