少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
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
#ifndef __MONODROID_LOGGER_H__
#define __MONODROID_LOGGER_H__
 
#ifdef __cplusplus
extern "C" {
#endif
 
#ifndef ANDROID
typedef enum android_LogPriority
{
    ANDROID_LOG_UNKNOWN = 0,
    ANDROID_LOG_DEFAULT,    /* only for SetMinPriority() */
    ANDROID_LOG_VERBOSE,
    ANDROID_LOG_DEBUG,
    ANDROID_LOG_INFO,
    ANDROID_LOG_WARN,
    ANDROID_LOG_ERROR,
    ANDROID_LOG_FATAL,
    ANDROID_LOG_SILENT,     /* only for SetMinPriority(); must be last */
} android_LogPriority;
#endif
 
// Keep in sync with Mono.Android/src/Runtime/Logger.cs!LogCategories enum
typedef enum _LogCategories
{
    LOG_NONE      = 0,
    LOG_DEFAULT   = 1 << 0,
    LOG_ASSEMBLY  = 1 << 1,
    LOG_DEBUGGER  = 1 << 2,
    LOG_GC        = 1 << 3,
    LOG_GREF      = 1 << 4,
    LOG_LREF      = 1 << 5,
    LOG_TIMING    = 1 << 6,
    LOG_BUNDLE    = 1 << 7,
    LOG_NET       = 1 << 8,
    LOG_NETLINK   = 1 << 9,
} LogCategories;
 
#if 0
 
extern unsigned int log_categories;
 
#if DEBUG
extern int gc_spew_enabled;
#endif
 
void init_categories(const char *override_dir);
 
void log_error(LogCategories category, const char *format, ...);
 
void log_fatal(LogCategories category, const char *format, ...);
 
void log_info(LogCategories category, const char *format, ...);
 
void log_warn(LogCategories category, const char *format, ...);
 
void log_debug(LogCategories category, const char *format, ...);
 
#else
 
#define init_categories(override_dir)
#define log_error(category, format, ...)
#define log_fatal(category, format, ...)
#define log_info(category, format, ...)
#define log_warn(category, format, ...)
#define log_debug(category, format, ...)
 
#endif
 
#ifdef __cplusplus
}
#endif
 
#endif /* __MONODROID_LOGGER_H__ */