summaryrefslogtreecommitdiff
path: root/source/external/uuid4/uuid4.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-06-06 00:11:18 +0800
committerchai <chaifix@163.com>2019-06-06 00:11:18 +0800
commit88b882ed0b432c6aff2063213e2f793a36dd25f7 (patch)
tree5fe5d5334050e1a1146aa63e61e88aa2f5170727 /source/external/uuid4/uuid4.h
parentf6c0498c9728a286c13980ed3b60763d02e1b3a0 (diff)
*misc
Diffstat (limited to 'source/external/uuid4/uuid4.h')
-rw-r--r--source/external/uuid4/uuid4.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/source/external/uuid4/uuid4.h b/source/external/uuid4/uuid4.h
new file mode 100644
index 0000000..fb3ed2f
--- /dev/null
+++ b/source/external/uuid4/uuid4.h
@@ -0,0 +1,22 @@
+/**
+ * Copyright (c) 2018 rxi
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the MIT license. See LICENSE for details.
+ */
+
+#ifndef UUID4_H
+#define UUID4_H
+
+#define UUID4_VERSION "1.0.0"
+#define UUID4_LEN 37
+
+enum {
+ UUID4_ESUCCESS = 0,
+ UUID4_EFAILURE = -1
+};
+
+int uuid4_init(void);
+void uuid4_generate(char *dst);
+
+#endif