Whamcloud - gitweb
ChangeLog, copy.c, gen_uuid.c, tst_uuid.c, uuid_time.c:
[tools/e2fsprogs.git] / lib / uuid / uuid.h
1 /*
2  * Public include file for the UUID library
3  * 
4  * Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
5  *
6  * %Begin-Header%
7  * This file may be redistributed under the terms of the GNU 
8  * Library General Public License.
9  * %End-Header%
10  */
11
12 #include <sys/types.h>
13 #include <sys/time.h>
14 #include <time.h>
15
16 typedef unsigned char uuid_t[16];
17
18 /* UUID Variant definitions */
19 #define UUID_VARIANT_NCS        0
20 #define UUID_VARIANT_DCE        1
21 #define UUID_VARIANT_MICROSOFT  2
22 #define UUID_VARIANT_OTHER      3
23
24 /* clear.c */
25 void uuid_clear(uuid_t uu);
26
27 /* compare.c */
28 int uuid_compare(uuid_t uu1, uuid_t uu2);
29
30 /* copy.c */
31 void uuid_copy(uuid_t uu1, uuid_t uu2);
32
33 /* gen_uuid.c */
34 void uuid_generate(uuid_t out);
35 void uuid_generate_random(uuid_t out);
36 void uuid_generate_time(uuid_t out);
37
38 /* isnull.c */
39 int uuid_is_null(uuid_t uu);
40
41 /* parse.c */
42 int uuid_parse(char *in, uuid_t uu);
43
44 /* unparse.c */
45 void uuid_unparse(uuid_t uu, char *out);
46
47 /* uuid_time.c */
48 time_t uuid_time(uuid_t uu, struct timeval *ret_tv);
49 int uuid_type(uuid_t uu);
50 int uuid_variant(uuid_t uu);