X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-uuid.h;h=3b05d178e02a7f2bd1b0fff9754cf06c92932261;hb=HEAD;hp=1027acbee9f67579839e39c4e3e1ee5f0c6b393e;hpb=eda498b8b8e095ff45eb4906413994987ead66ec;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ust-uuid.h b/liblttng-ust/lttng-ust-uuid.h deleted file mode 100644 index 1027acbe..00000000 --- a/liblttng-ust/lttng-ust-uuid.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef _LTTNG_UST_UUID_H -#define _LTTNG_UST_UUID_H - -/* - * Copyright (C) 2011 Mathieu Desnoyers - * - * 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 -#include /* For LTTNG_UST_UUID_LEN */ -/* - * Includes final \0. - */ -#define LTTNG_UST_UUID_STR_LEN 37 - -#include - -#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 -#include - -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 */