project_files/frontlib/util/logging.h
changeset 7224 5143861c83bd
parent 7182 076aba32abd3
child 7275 15f722e0b96f
--- 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<stdint.h>
+#include <stdint.h>
 #include <stdio.h>
+#include <stdbool.h>
 
 #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_ */