Changeset d85d4f2 in mainline for uspace/lib/c/include
- Timestamp:
- 2024-06-13T08:37:44Z (16 months ago)
- Children:
- 8c5d686
- Parents:
- 407e251
- git-author:
- Miroslav Cimerman <mc@…> (2024-06-12 21:08:14)
- git-committer:
- Miroslav Cimerman <mc@…> (2024-06-13 08:37:44)
- Location:
- uspace/lib/c/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/types/uuid.h
r407e251 rd85d4f2 38 38 #include <stdint.h> 39 39 40 enum { 41 uuid_bytes = 16 42 }; 40 #define _UUID_NODE_LEN 6 43 41 44 42 /** Universally Unique Identifier */ 43 45 44 typedef struct { 46 uint8_t b[uuid_bytes]; 45 uint32_t time_low; 46 uint16_t time_mid; 47 uint16_t time_hi_and_version; 48 uint8_t clock_seq_hi_and_reserved; 49 uint8_t clock_seq_low; 50 uint8_t node[_UUID_NODE_LEN]; 47 51 } uuid_t; 48 52 -
uspace/lib/c/include/uuid.h
r407e251 rd85d4f2 43 43 extern void uuid_encode(uuid_t *, uint8_t *); 44 44 extern void uuid_decode(uint8_t *, uuid_t *); 45 extern void uuid_encode_le(uuid_t *, uint8_t *); 46 extern void uuid_decode_le(uint8_t *, uuid_t *); 45 47 extern errno_t uuid_parse(const char *, uuid_t *, const char **); 46 48 extern errno_t uuid_format(uuid_t *, char **, bool);
Note:
See TracChangeset
for help on using the changeset viewer.