1 /*---------------------------------------------------------------------------* 2 Project: RevolutionDWC public include file 3 File: ./common/dwc_report.h 4 5 Copyright 2005-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 *---------------------------------------------------------------------------*/ 14 15 #ifndef DWCi_REPORT_H_ 16 #define DWCi_REPORT_H_ 17 18 19 #ifdef __cplusplus 20 extern "C" 21 { 22 #endif 23 24 /** 25 * Flag for DWC debug data output 26 * 27 * Version: 1.3.2: Added DWC_REPORTFLAG_NONE. 28 * Version: 1.4.12: Added DWC_REPORTFLAG_OPTION_CONNTEST. 29 */ 30 typedef enum { 31 32 DWC_REPORTFLAG_NONE = 0x00000000, // /< No output 33 DWC_REPORTFLAG_INFO = 0x00000001, // /< Data 34 DWC_REPORTFLAG_ERROR = 0x00000002, // /< Error 35 DWC_REPORTFLAG_DEBUG = 0x00000004, // /< Debugging information 36 DWC_REPORTFLAG_WARNING = 0x00000008, // /< Warnings 37 DWC_REPORTFLAG_ACHECK = 0x00000010, // /< 38 DWC_REPORTFLAG_LOGIN = 0x00000020, // /< Login-related 39 DWC_REPORTFLAG_MATCH_NN = 0x00000040, // /< Matchmaking NN-related 40 DWC_REPORTFLAG_MATCH_GT2 = 0x00000080, // /< Matchmaking GT2-related 41 DWC_REPORTFLAG_TRANSPORT = 0x00000100, // /< Related to sending and receiving 42 DWC_REPORTFLAG_QR2_REQ = 0x00000200, // /< QR2-related 43 DWC_REPORTFLAG_SB_UPDATE = 0x00000400, // /< SB-related 44 DWC_REPORTFLAG_SEND_INFO = 0x00008000, // /< Send information 45 DWC_REPORTFLAG_RECV_INFO = 0x00010000, // /< Receive information 46 DWC_REPORTFLAG_UPDATE_SV = 0x00020000, // /< Server update-related 47 DWC_REPORTFLAG_CONNECTINET = 0x00040000, // /< 48 DWC_REPORTFLAG_AUTH = 0x01000000, // /< Authentication-related 49 DWC_REPORTFLAG_AC = 0x02000000, // /< Account-related 50 DWC_REPORTFLAG_BM = 0x04000000, // /< 51 DWC_REPORTFLAG_UTIL = 0x08000000, // /< UTIL-related 52 DWC_REPORTFLAG_OPTION_CF = 0x10000000, // /< [option] Console friend relationship 53 DWC_REPORTFLAG_OPTION_CONNTEST = 0x20000000, // /< [option] Connection test-related 54 DWC_REPORTFLAG_GAMESPY = 0x80000000, // /< GameSpy-related 55 DWC_REPORTFLAG_TEST = 0x00100000, 56 DWC_REPORTFLAG_ALL = 0xffffffff // /< All 57 58 }DWCReportFlag; 59 60 #ifndef RVLDWC_NOREPORT 61 void DWC_SetReportLevel ( u32 level ); 62 void DWC_Printf ( DWCReportFlag level, const char* fmt, ... ); 63 #else 64 #define DWC_SetReportLevel( level ) ((void)0) 65 #define DWC_Printf( level, ... ) ((void)0) 66 #endif 67 68 69 #ifdef __cplusplus 70 } /* extern "C" */ 71 #endif 72 73 #endif // DWCi_REPORT_H_ 74