Fix: timestamp_end field should include all events within sub-buffer
[lttng-ust.git] / liblttng-ust / lttng-ust-uuid.h
index 765e8d1346c2be0da103cc8e734c9704859cefa1..3b05d178e02a7f2bd1b0fff9754cf06c92932261 100644 (file)
  * SOFTWARE.
  */
 
-#include <config.h>
 #include <lttng/ust-events.h> /* For LTTNG_UST_UUID_LEN */
-/*
- * Includes final \0.
- */
-#define LTTNG_UST_UUID_STR_LEN         37
-
-#ifdef LTTNG_UST_HAVE_LIBUUID
-#include <uuid/uuid.h>
-
-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_t *) 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
+#include <lttng/ust-clock.h>
 
 #endif /* _LTTNG_UST_UUID_H */
This page took 0.023328 seconds and 4 git commands to generate.