aboutsummaryrefslogtreecommitdiffstats
path: root/src/uuid/uuid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uuid/uuid.h')
-rw-r--r--src/uuid/uuid.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uuid/uuid.h b/src/uuid/uuid.h
index 740fa17..7ddeeb4 100644
--- a/src/uuid/uuid.h
+++ b/src/uuid/uuid.h
@@ -9,6 +9,9 @@
typedef union tag_uuid_t {
uint8_t bytes[16];
uint64_t halves[2];
+
+#define uuid_ls halves[0]
+#define uuid_ms halves[1]
} uuid_t;
#define UUID_NULL_INIT { { 0 } }
@@ -24,4 +27,6 @@ void l2_uuid_to_string_short(const uuid_t *id, char *out);
bool l2_uuid_from_string(uuid_t *id, const char *str);
bool l2_uuid_from_string_short(uuid_t *id, const char *str);
+int l2_uuid_compare(const uuid_t *c1, const uuid_t *c2);
+
#endif /* include guard */