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
6typedef 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
20typedef uint8_t uuid_key_t;
21
22uuid_key_t uuid_key(uuid_t* uuid);
23int uuid_cmp(uuid_t* a, uuid_t* b);
24size_t uuid_fmt(char* buffer, size_t len, uuid_t* uuid);
25#endif
26
27#endif
unsigned short uint16_t
Definition arch.h:8
unsigned int uint32_t
Definition arch.h:11
unsigned char uint8_t
Definition arch.h:5
uuid_key_t uuid_key(uuid_t *uuid)
Definition uuid.c:4
size_t uuid_fmt(char *buffer, size_t len, uuid_t *uuid)
Definition uuid.c:18
int uuid_cmp(uuid_t *a, uuid_t *b)
Definition uuid.c:14
Definition uuid.h:6