#include <stdio.h>
#include <common/compat/uuid.h>
#include <string.h>
+#include <stddef.h>
+
+static const lttng_uuid nil_uuid;
void lttng_uuid_to_str(const lttng_uuid uuid, char *uuid_str)
{
{
return memcmp(a, b, (sizeof(lttng_uuid))) == 0;
}
+
+bool lttng_uuid_is_nil(const lttng_uuid uuid)
+{
+ return memcmp(nil_uuid, uuid, sizeof(lttng_uuid)) == 0;
+}
+
+void lttng_uuid_copy(lttng_uuid dst, const lttng_uuid src)
+{
+ memcpy(dst, src, sizeof(lttng_uuid));
+}