uuid.h 490 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef UUID_COMMON_H
  7. #define UUID_COMMON_H
  8. #include <stdbool.h>
  9. #include <stdint.h>
  10. #define UUID_BYTES_LENGTH 16
  11. #define UUID_STRING_LENGTH 36
  12. int read_uuid(uint8_t *dest, char *uuid);
  13. bool uuid_match(uint32_t *uuid1, uint32_t *uuid2);
  14. void copy_uuid(uint32_t *to_uuid, uint32_t *from_uuid);
  15. bool is_null_uuid(uint32_t *uuid);
  16. #endif /* UUID_COMMON_H */