23 lines
445 B
C
23 lines
445 B
C
|
//
|
||
|
// Created by xajhuang on 2023/1/30.
|
||
|
//
|
||
|
|
||
|
#ifndef VCPE_UUID_H
|
||
|
#define VCPE_UUID_H
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
typedef unsigned char uuid_t[16];
|
||
|
|
||
|
#define uuid_generate(out) uuid_generate_random(out)
|
||
|
|
||
|
void uuid_generate_random(uuid_t out);
|
||
|
void uuid_unparse(const uuid_t uuid, char *out);
|
||
|
void uuid_copy(uuid_t dst, const uuid_t src);
|
||
|
void uuid_parse(const char *in, uuid_t uuid);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
#endif //VCPE_UUID_H
|