2 * Public include file for the UUID library
4 * Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
7 * This file may be redistributed under the terms of the GNU
8 * Library General Public License.
15 #include <sys/types.h>
19 typedef unsigned char uuid_t[16];
21 /* UUID Variant definitions */
22 #define UUID_VARIANT_NCS 0
23 #define UUID_VARIANT_DCE 1
24 #define UUID_VARIANT_MICROSOFT 2
25 #define UUID_VARIANT_OTHER 3
32 void uuid_clear(uuid_t uu);
35 int uuid_compare(const uuid_t uu1, const uuid_t uu2);
38 void uuid_copy(uuid_t dst, const uuid_t src);
41 void uuid_generate(uuid_t out);
42 void uuid_generate_random(uuid_t out);
43 void uuid_generate_time(uuid_t out);
46 int uuid_is_null(const uuid_t uu);
49 int uuid_parse(const char *in, uuid_t uu);
52 void uuid_unparse(const uuid_t uu, char *out);
55 time_t uuid_time(const uuid_t uu, struct timeval *ret_tv);
56 int uuid_type(const uuid_t uu);
57 int uuid_variant(const uuid_t uu);
63 #endif /* _UUID_UUID_H */