Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/include/uuid/uuid.h
6162 views
1
2
#ifndef _UUID_H
3
#define _UUID_H
4
5
typedef unsigned char uuid_t[16];
6
7
#define UUID_VARIANT_NCS 0
8
#define UUID_VARIANT_DCE 1
9
#define UUID_VARIANT_MICROSOFT 2
10
#define UUID_VARIANT_OTHER 3
11
12
#define UUID_TYPE_DCE_TIME 1
13
#define UUID_TYPE_DCE_RANDOM 4
14
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
19
void uuid_clear(uuid_t uu);
20
int uuid_compare(const uuid_t uu1, const uuid_t uu2);
21
void uuid_copy(uuid_t dst, const uuid_t src);
22
void uuid_generate(uuid_t out);
23
int uuid_is_null(const uuid_t uu);
24
int uuid_parse(const char *in, uuid_t uu);
25
void uuid_unparse(const uuid_t uu, char *out);
26
void uuid_unparse_lower(const uuid_t uu, char *out);
27
void uuid_unparse_upper(const uuid_t uu, char *out);
28
int uuid_type(const uuid_t uu);
29
int uuid_variant(const uuid_t uu);
30
31
#ifdef __cplusplus
32
}
33
#endif
34
35
#endif /* _UUID_H */
36
37