LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
uuid.h
Go to the documentation of this file.
1
#ifndef _SYS_UUID_H_INCLUDE
2
#define _SYS_UUID_H_INCLUDE
3
4
#include <stdint.h>
5
6
typedef
union
{
7
struct
{
8
uint32_t
a;
9
uint16_t
b;
10
uint16_t
c;
11
uint16_t
d;
12
uint8_t
e[6];
13
};
14
15
uint8_t
data[16];
16
}
uuid_t
;
17
18
#if __kernel
20
typedef
uint8_t
uuid_key_t;
21
22
uuid_key_t
uuid_key
(
uuid_t
* uuid);
23
int
uuid_cmp
(
uuid_t
* a,
uuid_t
* b);
24
size_t
uuid_fmt
(
char
* buffer,
size_t
len,
uuid_t
* uuid);
25
#endif
26
27
#endif
uint16_t
unsigned short uint16_t
Definition
arch.h:8
uint32_t
unsigned int uint32_t
Definition
arch.h:11
uint8_t
unsigned char uint8_t
Definition
arch.h:5
uuid_key
uuid_key_t uuid_key(uuid_t *uuid)
Definition
uuid.c:4
uuid_fmt
size_t uuid_fmt(char *buffer, size_t len, uuid_t *uuid)
Definition
uuid.c:18
uuid_cmp
int uuid_cmp(uuid_t *a, uuid_t *b)
Definition
uuid.c:14
uuid_t
Definition
uuid.h:6
src
include
uuid.h
Generated on Sun May 5 2024 18:59:27 for LF OS by
1.9.8