:: limine / common / lib / guid.h 462 B raw

1
#ifndef LIB__GUID_H__
2
#define LIB__GUID_H__
3
4
#include <stdint.h>
5
#include <stdbool.h>
6
7
struct guid {
8
    uint32_t a;
9
    uint16_t b;
10
    uint16_t c;
11
    uint8_t  d[8];
12
};
13
14
bool is_valid_guid(const char *s);
15
bool string_to_guid_be(struct guid *guid, const char *s);
16
bool string_to_guid_mixed(struct guid *guid, const char *s);
17
// Assumption: s must be big enough to fit 36 characters and a null byte
18
void guid_to_string(const struct guid *guid, char *s);
19
20
#endif
tab: 248 wrap: offon