Add lttng_uuid_copy() util
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 12 Mar 2019 20:53:27 +0000 (16:53 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 19:58:24 +0000 (15:58 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/compat/uuid.c
src/common/compat/uuid.h

index 25dccbb836611eccf1b9d338cc5b4f4dd3c672bc..72c5c0a0c7f37c941a872d783ac63a698465a77a 100644 (file)
@@ -41,3 +41,8 @@ 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));
+}
index ade7ef56d37821fdeb62c81a6c1d08e608048469..a283ea42af5ca41a8456eefe52d123ee5810c98f 100644 (file)
@@ -85,4 +85,7 @@ bool lttng_uuid_is_equal(const lttng_uuid a, const lttng_uuid b);
 LTTNG_HIDDEN
 bool lttng_uuid_is_nil(const lttng_uuid uuid);
 
+LTTNG_HIDDEN
+void lttng_uuid_copy(lttng_uuid dst, const lttng_uuid src);
+
 #endif /* LTTNG_UUID_H */
This page took 0.027938 seconds and 5 git commands to generate.