ds: uuid: convert uuid bytes struct to union
This commit is contained in:
@@ -17,8 +17,11 @@ B_DECLARE_TYPE(b_uuid);
|
||||
B_TYPE_CLASS_DECLARATION_BEGIN(b_uuid)
|
||||
B_TYPE_CLASS_DECLARATION_END(b_uuid)
|
||||
|
||||
typedef struct b_uuid_bytes {
|
||||
unsigned char uuid_bytes[B_UUID_NBYTES];
|
||||
typedef union b_uuid_bytes {
|
||||
uint8_t uuid_bytes[B_UUID_NBYTES];
|
||||
uint16_t uuid_words[B_UUID_NBYTES / 2];
|
||||
uint32_t uuid_dwords[B_UUID_NBYTES / 4];
|
||||
uint64_t uuid_qwords[B_UUID_NBYTES / 8];
|
||||
} b_uuid_bytes;
|
||||
|
||||
BLUE_API b_type b_uuid_get_type(void);
|
||||
|
||||
Reference in New Issue
Block a user