From 6d1d4d0a5506dce90c833ef8dd141058fea3c33a Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Mon, 25 Dec 2023 06:05:40 -0600 Subject: [WIP] Add instances still need to do the following: - check if the folder exists - try and find some way to canonicalize the path name --- src/uuid/uuid.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/uuid/uuid.h') 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 */ -- cgit v1.2.3-70-g09d2