#include <stdio.h>
#include <common/compat/uuid.h>
+#include <string.h>
void lttng_uuid_to_str(const lttng_uuid uuid, char *uuid_str)
{
uuid[8], uuid[9], uuid[10], uuid[11],
uuid[12], uuid[13], uuid[14], uuid[15]);
}
+
+bool lttng_uuid_is_equal(const lttng_uuid a, const lttng_uuid b)
+{
+ return memcmp(a, b, (sizeof(lttng_uuid))) == 0;
+}
#define LTTNG_UUID_H
#include <common/macros.h>
+#include <stdbool.h>
/*
* Includes final \0.
LTTNG_HIDDEN
void lttng_uuid_to_str(const lttng_uuid uuid, char *uuid_str);
+LTTNG_HIDDEN
+bool lttng_uuid_is_equal(const lttng_uuid a, const lttng_uuid b);
+
#endif /* LTTNG_UUID_H */