You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
571 B
29 lines
571 B
#ifndef LOGID_UTIL_H |
|
#define LOGID_UTIL_H |
|
|
|
#include "Actions.h" |
|
|
|
namespace logid |
|
{ |
|
enum LogLevel |
|
{ |
|
DEBUG, |
|
INFO, |
|
WARN, |
|
ERROR |
|
}; |
|
|
|
extern LogLevel global_verbosity; |
|
|
|
void log_printf(LogLevel level, const char* format, ...); |
|
|
|
const char* level_prefix(LogLevel level); |
|
|
|
Direction getDirection(int x, int y); |
|
Direction stringToDirection(std::string s); |
|
GestureMode stringToGestureMode(std::string s); |
|
Action stringToAction(std::string s); |
|
LogLevel stringToLogLevel(std::string s); |
|
} |
|
|
|
#endif //LOGID_UTIL_H
|