|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
Go to the source code of this file.
Data Structures | |
| struct | log_callback |
Macros | |
| #define | MAX_CALLBACKS 32 |
Functions | |
| static const char * | level_to_string (int level) |
| static void | init_event (log_Event *ev, void *udata) |
| static void | stderr_callback (log_Event *ev) |
| static void | file_callback (log_Event *ev) |
| bool | DTTR_Log_IsEnabled (int log_level) |
| static void | dttr_vlog_unchecked (int log_level, const char *file, int line, const char *fmt, va_list args) |
| void | DTTR_Log (int level, const char *file, int line, const char *fmt,...) |
| void | DTTR_Log_Unchecked (int level, const char *file, int line, const char *fmt,...) |
| void | DTTR_Log_SetLevel (int log_level) |
| static int | add_log_callback (log_LogFn fn, void *udata, int level) |
| int | DTTR_Log_AddFP (FILE *fp, int level) |
Variables | |
| static int | current_log_level = LOG_TRACE |
| static log_callback | callbacks [MAX_CALLBACKS] |
| static int | callback_count |
| #define MAX_CALLBACKS 32 |
Definition at line 7 of file log.c.
Referenced by add_log_callback().
|
static |
Definition at line 147 of file log.c.
References callback_count, callbacks, and MAX_CALLBACKS.
Referenced by DTTR_Log_AddFP().
| void DTTR_Log | ( | int | level, |
| const char * | file, | ||
| int | line, | ||
| const char * | fmt, | ||
| ... ) |
Definition at line 125 of file log.c.
References DTTR_Log_IsEnabled(), dttr_vlog_unchecked(), and fmt.
| int DTTR_Log_AddFP | ( | FILE * | fp, |
| int | level ) |
Definition at line 161 of file log.c.
References add_log_callback(), and file_callback().
Referenced by DTTR_Hook_WinMainCallback(), and open_log_file().
| bool DTTR_Log_IsEnabled | ( | int | log_level | ) |
Definition at line 79 of file log.c.
References callback_count, callbacks, and current_log_level.
Referenced by DTTR_Log().
| void DTTR_Log_SetLevel | ( | int | log_level | ) |
Definition at line 143 of file log.c.
References current_log_level.
Referenced by DTTR_Hook_WinMainCallback(), and dttr_launcher_main().
| void DTTR_Log_Unchecked | ( | int | level, |
| const char * | file, | ||
| int | line, | ||
| const char * | fmt, | ||
| ... ) |
Definition at line 136 of file log.c.
References dttr_vlog_unchecked(), and fmt.
|
static |
Definition at line 93 of file log.c.
References callback_count, callbacks, cb, current_log_level, fmt, init_event(), and stderr_callback().
Referenced by DTTR_Log(), and DTTR_Log_Unchecked().
|
static |
|
static |
Definition at line 19 of file log.c.
Referenced by file_callback(), and stderr_callback().
|
static |
Definition at line 47 of file log.c.
References level_to_string().
Referenced by dttr_vlog_unchecked().
|
static |
Definition at line 17 of file log.c.
Referenced by add_log_callback(), DTTR_Log_IsEnabled(), and dttr_vlog_unchecked().
|
static |
Definition at line 16 of file log.c.
Referenced by add_log_callback(), DTTR_Log_IsEnabled(), and dttr_vlog_unchecked().
|
static |
Definition at line 15 of file log.c.
Referenced by DTTR_Log_IsEnabled(), DTTR_Log_SetLevel(), and dttr_vlog_unchecked().