2021-02-23 09:54:45 +01:00
|
|
|
#ifndef VLOGGING_H
|
|
|
|
#define VLOGGING_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2021-09-28 05:49:09 +02:00
|
|
|
#include <SDL_stdinc.h>
|
|
|
|
|
2021-02-24 00:22:28 +01:00
|
|
|
void vlog_init(void);
|
|
|
|
|
2021-09-01 22:41:06 +02:00
|
|
|
void vlog_toggle_output(int enable_output);
|
|
|
|
|
2021-09-01 22:28:51 +02:00
|
|
|
void vlog_toggle_color(int enable_color);
|
|
|
|
|
2021-09-01 23:11:23 +02:00
|
|
|
void vlog_toggle_debug(int enable_debug);
|
|
|
|
|
2021-09-01 22:41:06 +02:00
|
|
|
void vlog_toggle_info(int enable_info);
|
|
|
|
|
|
|
|
void vlog_toggle_warn(int enable_warn);
|
|
|
|
|
|
|
|
void vlog_toggle_error(int enable_error);
|
|
|
|
|
2021-09-28 05:49:09 +02:00
|
|
|
SDL_PRINTF_VARARG_FUNC(1) int vlog_debug(const char* text, ...);
|
2021-09-01 23:11:23 +02:00
|
|
|
|
2021-09-28 05:49:09 +02:00
|
|
|
SDL_PRINTF_VARARG_FUNC(1) int vlog_info(const char* text, ...);
|
2021-02-23 09:54:45 +01:00
|
|
|
|
2021-09-28 05:49:09 +02:00
|
|
|
SDL_PRINTF_VARARG_FUNC(1) int vlog_warn(const char* text, ...);
|
2021-02-23 09:54:45 +01:00
|
|
|
|
2021-09-28 05:49:09 +02:00
|
|
|
SDL_PRINTF_VARARG_FUNC(1) int vlog_error(const char* text, ...);
|
2021-02-23 09:54:45 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* VLOGGING_H */
|