diff -r 8d04e85ca204 -r 5143861c83bd project_files/frontlib/util/logging.h --- a/project_files/frontlib/util/logging.h Mon Jun 11 00:06:22 2012 +0200 +++ b/project_files/frontlib/util/logging.h Tue Jun 12 11:25:05 2012 +0200 @@ -1,8 +1,9 @@ #ifndef LOGGING_H_ #define LOGGING_H_ -#include +#include #include +#include #define FLIB_LOGLEVEL_ALL -100 #define FLIB_LOGLEVEL_DEBUG -1 @@ -11,6 +12,9 @@ #define FLIB_LOGLEVEL_ERROR 2 #define FLIB_LOGLEVEL_NONE 100 +/** + * Returns a pointer to a static buffer, don't free or store. + */ char* flib_format_ip(uint32_t numip); void flib_log_e(const char *fmt, ...); @@ -21,5 +25,6 @@ int flib_log_getLevel(); void flib_log_setLevel(int level); void flib_log_setFile(FILE *logfile); +bool flib_log_isActive(int level); #endif /* LOGGING_H_ */