aboutsummaryrefslogtreecommitdiff
path: root/iemnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'iemnet.h')
-rw-r--r--iemnet.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/iemnet.h b/iemnet.h
index 614b286..4a54720 100644
--- a/iemnet.h
+++ b/iemnet.h
@@ -257,7 +257,14 @@ int iemnet__register(const char*name);
static void autoinit__ ## f(void) { f(); }
#endif
-
+typedef enum {
+ IEMNET_FATAL = 0,
+ IEMNET_ERROR = 1,
+ IEMNET_NORMAL = 2,
+ IEMNET_VERBOSE = 3,
+ IEMNET_DEBUG = 4
+} t_iemnet_loglevel;
+void iemnet_log(const void *object, const t_iemnet_loglevel level, const char *fmt, ...);
/**
* \fn void DEBUG(const char* format,...);
*