summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2007-05-18 23:48:55 +0200
committerDavid Härdeman <david@hardeman.nu>2007-05-18 23:48:55 +0200
commit3cb9d64b9b2ace1463f274c8554bffbfa4979e0d (patch)
tree79b570d8ed8ba30e619921d079ea8fd9b362f3fd /utils.h
parent3b9fa8b3619f0ef0ddd47efa6ab285682b686af1 (diff)
Split meta entry functions into a separate file
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 2f39611..d9989a4 100644
--- a/utils.h
+++ b/utils.h
@@ -1,3 +1,12 @@
+#include <stdint.h>
+
+extern int verbosity;
+#define MSG_NORMAL 0
+#define MSG_DEBUG 1
+#define MSG_QUIET -1
+#define MSG_CRITICAL -2
+int msg(int level, const char *fmt, ...);
+
void *xmalloc(size_t size);
char *xstrdup(const char *s);
void binary_print(const char *s, ssize_t len);