Changeset d85d4f2 in mainline for uspace/lib/c/include/types/uuid.h


Ignore:
Timestamp:
2024-06-13T08:37:44Z (3 weeks ago)
Author:
Miroslav Cimerman <mc@…>
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)
Message:

Change internal UUID representation to named fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/types/uuid.h

    r407e251 rd85d4f2  
    3838#include <stdint.h>
    3939
    40 enum {
    41         uuid_bytes = 16
    42 };
     40#define _UUID_NODE_LEN 6
    4341
    4442/** Universally Unique Identifier */
     43
    4544typedef 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];
    4751} uuid_t;
    4852
Note: See TracChangeset for help on using the changeset viewer.