Mass rename: ltt_*/ltt-* to LTTNG_*/LTTNG-*
[lttng-modules.git] / wrapper / uuid.h
1 #ifndef _LTTNG_WRAPPER_UUID_H
2 #define _LTTNG_WRAPPER_UUID_H
3
4 /*
5 * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
6 *
7 * Dual LGPL v2.1/GPL v2 license.
8 */
9
10 #include <linux/version.h>
11
12 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
13 #include <linux/uuid.h>
14 #else
15
16 #include <linux/random.h>
17
18 typedef struct {
19 __u8 b[16];
20 } uuid_le;
21
22 static inline
23 void uuid_le_gen(uuid_le *u)
24 {
25 generate_random_uuid(u->b);
26 }
27
28 #endif
29 #endif /* _LTTNG_WRAPPER_UUID_H */
This page took 0.030949 seconds and 4 git commands to generate.