aboutsummaryrefslogtreecommitdiffstats
path: root/src/uuid/uuid.h
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2023-12-25 06:05:40 -0600
committerLibravatar bigfoot547 <[email protected]>2023-12-25 06:05:40 -0600
commit6d1d4d0a5506dce90c833ef8dd141058fea3c33a (patch)
tree12a95579dbf04c4310e5b42ad8cae399d81f1189 /src/uuid/uuid.h
parentinitial commit (diff)
[WIP] Add instances
still need to do the following: - check if the folder exists - try and find some way to canonicalize the path name
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 */