wut/include/coreinit/cosreport.h
Maschell e2e877decd
Add coreinit/cosreport.h (#131)
* Add coreinit/cosreport.h
- add enum COSReportLevel
- add enum COSReportModule
- add function COSVReport
- add function COSError
- add function COSInfo
- add function COSVerbose
- add function COSWarn

see decaf for reference:
- dcd9bd1a08/src/libdecaf/src/cafe/libraries/coreinit/coreinit_cosreport.h
- 1dc2c3a278/src/libdecaf/src/cafe/libraries/coreinit/coreinit_enum.h

* Fix formatting in coreinit/cosreport.h

* coreinit/cosreport.h: Fix enum declarations

* Add coreinit/cosreport.h to the testsuite
2020-05-07 23:50:21 +10:00

59 lines
1.0 KiB
C

#pragma once
#include <wut.h>
/**
* \defgroup coreinit_cosreport COS Report
* \ingroup coreinit
*
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef enum COSReportLevel{
COS_REPORT_LEVEL_ERROR = 0,
COS_REPORT_LEVEL_WARN = 1,
COS_REPORT_LEVEL_INFO = 2,
COS_REPORT_LEVEL_VERBOSE = 3
} COSReportLevel;
typedef enum COSReportModule{
COS_REPORT_MODULE_UNKNOWN_0 = 0,
COS_REPORT_MODULE_UNKNOWN_1 = 1,
COS_REPORT_MODULE_UNKNOWN_2 = 2,
COS_REPORT_MODULE_UNKNOWN_5 = 5
} 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
/** @} */