summaryrefslogtreecommitdiff
path: root/src/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/err.h')
-rw-r--r--src/err.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/err.h b/src/err.h
new file mode 100644
index 0000000..8e2632a
--- /dev/null
+++ b/src/err.h
@@ -0,0 +1,31 @@
+
+#ifndef ERR_H
+#define ERR_H
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdarg.h>
+
+#include "def.h"
+
+#define DEBUG_PATH "/tmp/eps_debug.txt"
+
+enum msgtype {
+ MSGTYPE_ERROR = 0,
+ MSGTYPE_WARNING,
+ MSGTYPE_INFO,
+ MSGTYPE_MESSAGE
+};
+
+
+
+void err_init (const char *);
+void err_msg (enum msgtype, const char *, ...);
+void err_fatal (const char *, ...);
+void err_system (const char *, ...);
+
+
+
+#endif /* ERR_H */