David Horstmann | a65a8ff | 2021-03-01 19:34:37 +0000 | [diff] [blame] | 1 | /* |
Chris Kay | d04a476 | 2023-04-13 17:24:20 +0100 | [diff] [blame] | 2 | * Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved. |
David Horstmann | a65a8ff | 2021-03-01 19:34:37 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Marc Bonnici | 37dd8e1 | 2021-08-17 18:00:07 +0100 | [diff] [blame] | 7 | #ifndef UUID_COMMON_H |
| 8 | #define UUID_COMMON_H |
David Horstmann | a65a8ff | 2021-03-01 19:34:37 +0000 | [diff] [blame] | 9 | |
Chris Kay | d04a476 | 2023-04-13 17:24:20 +0100 | [diff] [blame] | 10 | #include <stdbool.h> |
| 11 | #include <stdint.h> |
| 12 | |
David Horstmann | a65a8ff | 2021-03-01 19:34:37 +0000 | [diff] [blame] | 13 | #define UUID_BYTES_LENGTH 16 |
| 14 | #define UUID_STRING_LENGTH 36 |
| 15 | |
| 16 | int read_uuid(uint8_t *dest, char *uuid); |
Marc Bonnici | 37dd8e1 | 2021-08-17 18:00:07 +0100 | [diff] [blame] | 17 | bool uuid_match(uint32_t *uuid1, uint32_t *uuid2); |
| 18 | void copy_uuid(uint32_t *to_uuid, uint32_t *from_uuid); |
| 19 | bool is_null_uuid(uint32_t *uuid); |
David Horstmann | a65a8ff | 2021-03-01 19:34:37 +0000 | [diff] [blame] | 20 | |
Marc Bonnici | 37dd8e1 | 2021-08-17 18:00:07 +0100 | [diff] [blame] | 21 | #endif /* UUID_COMMON_H */ |