diff options
author | Fraser Adams <fraser.adams@blueyonder.co.uk> | 2013-12-31 13:27:05 +0000 |
---|---|---|
committer | Fraser Adams <fraser.adams@blueyonder.co.uk> | 2013-12-31 13:27:05 +0000 |
commit | 32e1d73d605a7c4c3dc162b7c0d626b3dcce27ce (patch) | |
tree | dcc99dcd7029639465edd5644bc48882b15dd85f /system | |
parent | 4bf76193c6f3f5d4c0a83ef2e715210b3d375175 (diff) |
implementation of libuuid
Diffstat (limited to 'system')
-rw-r--r-- | system/include/uuid/uuid.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/system/include/uuid/uuid.h b/system/include/uuid/uuid.h new file mode 100644 index 00000000..0a84e02c --- /dev/null +++ b/system/include/uuid/uuid.h @@ -0,0 +1,35 @@ + +#ifndef _UUID_H +#define _UUID_H + +typedef unsigned char uuid_t[16]; + +#define UUID_VARIANT_NCS 0 +#define UUID_VARIANT_DCE 1 +#define UUID_VARIANT_MICROSOFT 2 +#define UUID_VARIANT_OTHER 3 + +#define UUID_TYPE_DCE_TIME 1 +#define UUID_TYPE_DCE_RANDOM 4 + +#ifdef __cplusplus +extern "C" { +#endif + +void uuid_clear(uuid_t uu); +int uuid_compare(const uuid_t uu1, const uuid_t uu2); +void uuid_copy(uuid_t dst, const uuid_t src); +void uuid_generate(uuid_t out); +int uuid_is_null(const uuid_t uu); +int uuid_parse(const char *in, uuid_t uu); +void uuid_unparse(const uuid_t uu, char *out); +void uuid_unparse_lower(const uuid_t uu, char *out); +void uuid_unparse_upper(const uuid_t uu, char *out); +int uuid_type(const uuid_t uu); +int uuid_variant(const uuid_t uu); + +#ifdef __cplusplus +} +#endif + +#endif /* _UUID_H */ |