1 #ifndef _LTTNG_UST_UUID_H
2 #define _LTTNG_UST_UUID_H
5 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
8 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
10 * Permission is hereby granted to use or copy this program
11 * for any purpose, provided the above notices are retained on all copies.
12 * Permission to modify the code and to distribute modified code is granted,
13 * provided the above notices are retained, and a notice that the code was
14 * modified is included with the above copyright notice.
18 #include <lttng/ust-events.h> /* For LTTNG_UST_UUID_LEN */
22 #define LTTNG_UST_UUID_STR_LEN 37
24 #include <uuid/uuid.h>
26 #ifdef LTTNG_UST_HAVE_LIBUUID
28 int lttng_ust_uuid_generate(unsigned char *uuid_out
)
30 uuid_generate(uuid_out
);
34 #elif defined(LTTNG_UST_HAVE_LIBC_UUID)
39 int lttng_ust_uuid_generate(unsigned char *uuid_out
)
43 uuid_create(uuid_out
, &status
);
44 if (status
== uuid_s_ok
)
51 #error "LTTng-UST needs to have a UUID generator configured."
54 #endif /* _LTTNG_UST_UUID_H */
This page took 0.030582 seconds and 4 git commands to generate.