X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-uuid.h;h=add11e1f842fca5f84e6ee33bb510144c3bccfa0;hb=74d81a6cca2cd4a7718bba9368f382f9f2fbba84;hp=765e8d1346c2be0da103cc8e734c9704859cefa1;hpb=00b217e613614b8addc4ee2bbcdec473275842fd;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ust-uuid.h b/liblttng-ust/lttng-ust-uuid.h index 765e8d13..add11e1f 100644 --- a/liblttng-ust/lttng-ust-uuid.h +++ b/liblttng-ust/lttng-ust-uuid.h @@ -23,41 +23,11 @@ * SOFTWARE. */ -#include #include /* For LTTNG_UST_UUID_LEN */ + /* * Includes final \0. */ -#define LTTNG_UST_UUID_STR_LEN 37 - -#ifdef LTTNG_UST_HAVE_LIBUUID -#include - -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 -#include - -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 +#define LTTNG_UST_UUID_STR_LEN 37 #endif /* _LTTNG_UST_UUID_H */