aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2017-02-12 17:12:52 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2017-02-12 17:12:52 +0200
commitcd2faf64b2e995dee42e7e3911325d372c6604a1 (patch)
treee0ab608cdd7005e759b570a5a4ec2031191bafb5 /src/misc.h
parent54f78d73ec378fe1d62a696edeb2ddc5a59e2669 (diff)
downloadmqtt-cd2faf64b2e995dee42e7e3911325d372c6604a1.tar.gz
mqtt-cd2faf64b2e995dee42e7e3911325d372c6604a1.zip
Add all the stuff
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
new file mode 100644
index 0000000..133b7eb
--- /dev/null
+++ b/src/misc.h
@@ -0,0 +1,18 @@
+#ifndef MISC_H
+#define MISC_H
+
+#include <stdint.h>
+#include <stdlib.h>
+
+/*
+ Returns the current time as milliseconds. The return value can only be
+ compared to another return value of the function.
+*/
+int64_t GetCurrentTime();
+
+/*
+ Simple hexdump to stdout.
+*/
+void DumpHex(const void* data, size_t size);
+
+#endif