1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
#ifndef _SDL_log_h
#define _SDL_log_h
#include "SDL_stdinc.h"
#include "begin_code.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SDL_MAX_LOG_MESSAGE 4096
enum
{
SDL_LOG_CATEGORY_APPLICATION,
SDL_LOG_CATEGORY_ERROR,
SDL_LOG_CATEGORY_ASSERT,
SDL_LOG_CATEGORY_SYSTEM,
SDL_LOG_CATEGORY_AUDIO,
SDL_LOG_CATEGORY_VIDEO,
SDL_LOG_CATEGORY_RENDER,
SDL_LOG_CATEGORY_INPUT,
SDL_LOG_CATEGORY_TEST,
SDL_LOG_CATEGORY_RESERVED1,
SDL_LOG_CATEGORY_RESERVED2,
SDL_LOG_CATEGORY_RESERVED3,
SDL_LOG_CATEGORY_RESERVED4,
SDL_LOG_CATEGORY_RESERVED5,
SDL_LOG_CATEGORY_RESERVED6,
SDL_LOG_CATEGORY_RESERVED7,
SDL_LOG_CATEGORY_RESERVED8,
SDL_LOG_CATEGORY_RESERVED9,
SDL_LOG_CATEGORY_RESERVED10,
SDL_LOG_CATEGORY_CUSTOM
};
typedef enum
{
SDL_LOG_PRIORITY_VERBOSE = 1,
SDL_LOG_PRIORITY_DEBUG,
SDL_LOG_PRIORITY_INFO,
SDL_LOG_PRIORITY_WARN,
SDL_LOG_PRIORITY_ERROR,
SDL_LOG_PRIORITY_CRITICAL,
SDL_NUM_LOG_PRIORITIES
} SDL_LogPriority;
typedef void SDLCALL tSDL_LogSetAllPriority(SDL_LogPriority priority);
typedef void SDLCALL tSDL_LogSetPriority(int category,
SDL_LogPriority priority);
typedef SDL_LogPriority SDLCALL tSDL_LogGetPriority(int category);
typedef void SDLCALL tSDL_LogResetPriorities(void);
typedef void SDLCALL tSDL_Log(const char *fmt, ...);
typedef void SDLCALL tSDL_LogVerbose(int category, const char *fmt, ...);
typedef void SDLCALL tSDL_LogDebug(int category, const char *fmt, ...);
typedef void SDLCALL tSDL_LogInfo(int category, const char *fmt, ...);
typedef void SDLCALL tSDL_LogWarn(int category, const char *fmt, ...);
typedef void SDLCALL tSDL_LogError(int category, const char *fmt, ...);
typedef void SDLCALL tSDL_LogCritical(int category, const char *fmt, ...);
typedef void SDLCALL tSDL_LogMessage(int category,
SDL_LogPriority priority,
const char *fmt, ...);
typedef void SDLCALL tSDL_LogMessageV(int category,
SDL_LogPriority priority,
const char *fmt, va_list ap);
typedef void (*SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
typedef void SDLCALL tSDL_LogGetOutputFunction(SDL_LogOutputFunction *callback, void **userdata);
typedef void SDLCALL tSDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void *userdata);
extern tSDL_LogSetAllPriority *SDL_LogSetAllPriority;
extern tSDL_LogSetPriority *SDL_LogSetPriority;
extern tSDL_LogGetPriority *SDL_LogGetPriority;
extern tSDL_LogResetPriorities *SDL_LogResetPriorities;
extern tSDL_Log *SDL_Log;
extern tSDL_LogVerbose *SDL_LogVerbose;
extern tSDL_LogDebug *SDL_LogDebug;
extern tSDL_LogInfo *SDL_LogInfo;
extern tSDL_LogWarn *SDL_LogWarn;
extern tSDL_LogError *SDL_LogError;
extern tSDL_LogCritical *SDL_LogCritical;
extern tSDL_LogMessage *SDL_LogMessage;
extern tSDL_LogMessageV *SDL_LogMessageV;
extern tSDL_LogGetOutputFunction *SDL_LogGetOutputFunction;
extern tSDL_LogSetOutputFunction *SDL_LogSetOutputFunction;
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif
|