Rename uuid.h wrapper to lttng-ust-uuid.h
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 15:01:15 +0000 (10:01 -0500)
committerChristian Babeux <christian.babeux@efficios.com>
Tue, 27 Nov 2012 21:09:36 +0000 (16:09 -0500)
commit eda498b8b8e095ff45eb4906413994987ead66ec upstream.

So it does not clash with BSD system's uuid.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
liblttng-ust/Makefile.am
liblttng-ust/clock.h
liblttng-ust/ltt-events.c
liblttng-ust/ltt-ring-buffer-client.h
liblttng-ust/lttng-ust-uuid.h [new file with mode: 0644]
liblttng-ust/uuid.h [deleted file]

index 16070d592343bcef960156bd1c3c04958dcdc5d8..e68953a3e258313f2390545f31754bd300224835 100644 (file)
@@ -34,7 +34,7 @@ liblttng_ust_runtime_la_SOURCES = \
        wait.h \
        jhash.h \
        error.h \
-       uuid.h
+       lttng-ust-uuid.h
 
 liblttng_ust_support_la_SOURCES = \
        ltt-tracer.h \
index b4d17e785e164e3ae9a59c89fd7a897853754bc8..1523be09d3a747395f9421d14864fc9e3a597ed3 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdint.h>
 #include <stddef.h>
 #include <stdio.h>
-#include "uuid.h"
+#include "lttng-ust-uuid.h"
 
 /* TRACE CLOCK */
 
index 627acfecc47d2101114e3e991659f75ed9657107..2b9037ef48f0d84b8ca237733f5e3438267bb48d 100644 (file)
@@ -47,7 +47,7 @@
 #include <helper.h>
 #include "error.h"
 #include "compat.h"
-#include "uuid.h"
+#include "lttng-ust-uuid.h"
 
 #include "tracepoint-internal.h"
 #include "ltt-tracer.h"
index 7b6827ffa1edefca5413e6287a17e2f8375e55f2..f18b4ed387cdf876dffebd4ae41b7a808b57b55d 100644 (file)
@@ -24,7 +24,7 @@
 #include <lttng/ust-events.h>
 #include "lttng/bitfield.h"
 #include "clock.h"
-#include "uuid.h"
+#include "lttng-ust-uuid.h"
 #include "ltt-tracer.h"
 #include "../libringbuffer/frontend_types.h"
 
diff --git a/liblttng-ust/lttng-ust-uuid.h b/liblttng-ust/lttng-ust-uuid.h
new file mode 100644 (file)
index 0000000..1027acb
--- /dev/null
@@ -0,0 +1,54 @@
+#ifndef _LTTNG_UST_UUID_H
+#define _LTTNG_UST_UUID_H
+
+/*
+ * Copyright (C) 2011   Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
+ * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
+ *
+ * Permission is hereby granted to use or copy this program
+ * for any purpose,  provided the above notices are retained on all copies.
+ * Permission to modify the code and to distribute modified code is granted,
+ * provided the above notices are retained, and a notice that the code was
+ * modified is included with the above copyright notice.
+ */
+
+#include <config.h>
+#include <lttng/ust-events.h> /* For LTTNG_UST_UUID_LEN */
+/*
+ * Includes final \0.
+ */
+#define LTTNG_UST_UUID_STR_LEN         37
+
+#include <uuid/uuid.h>
+
+#ifdef LTTNG_UST_HAVE_LIBUUID
+static inline
+int lttng_ust_uuid_generate(unsigned char *uuid_out)
+{
+       uuid_generate(uuid_out);
+       return 0;
+}
+
+#elif defined(LTTNG_UST_HAVE_LIBC_UUID)
+#include <uuid.h>
+#include <stdint.h>
+
+static inline
+int lttng_ust_uuid_generate(unsigned char *uuid_out)
+{
+       uint32_t status;
+
+       uuid_create(uuid_out, &status);
+       if (status == uuid_s_ok)
+               return 0;
+       else
+               return -1;
+}
+
+#else
+#error "LTTng-UST needs to have a UUID generator configured."
+#endif
+
+#endif /* _LTTNG_UST_UUID_H */
diff --git a/liblttng-ust/uuid.h b/liblttng-ust/uuid.h
deleted file mode 100644 (file)
index 1027acb..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef _LTTNG_UST_UUID_H
-#define _LTTNG_UST_UUID_H
-
-/*
- * Copyright (C) 2011   Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
- * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
- *
- * Permission is hereby granted to use or copy this program
- * for any purpose,  provided the above notices are retained on all copies.
- * Permission to modify the code and to distribute modified code is granted,
- * provided the above notices are retained, and a notice that the code was
- * modified is included with the above copyright notice.
- */
-
-#include <config.h>
-#include <lttng/ust-events.h> /* For LTTNG_UST_UUID_LEN */
-/*
- * Includes final \0.
- */
-#define LTTNG_UST_UUID_STR_LEN         37
-
-#include <uuid/uuid.h>
-
-#ifdef LTTNG_UST_HAVE_LIBUUID
-static inline
-int lttng_ust_uuid_generate(unsigned char *uuid_out)
-{
-       uuid_generate(uuid_out);
-       return 0;
-}
-
-#elif defined(LTTNG_UST_HAVE_LIBC_UUID)
-#include <uuid.h>
-#include <stdint.h>
-
-static inline
-int lttng_ust_uuid_generate(unsigned char *uuid_out)
-{
-       uint32_t status;
-
-       uuid_create(uuid_out, &status);
-       if (status == uuid_s_ok)
-               return 0;
-       else
-               return -1;
-}
-
-#else
-#error "LTTng-UST needs to have a UUID generator configured."
-#endif
-
-#endif /* _LTTNG_UST_UUID_H */
This page took 0.02785 seconds and 4 git commands to generate.