aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
new file mode 100644
index 0000000..7a2b551
--- /dev/null
+++ b/src/utils.h
@@ -0,0 +1,14 @@
+#ifndef UTILS_H
+#define UTILS_H 1
+
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+
+void pt_log(int level, const char *fmt, ...);
+
+double time_as_double(void);
+
+#if 0
+void print_hexstr(unsigned char *buf, size_t siz);
+#endif
+
+#endif