blob: 634880449f15529dd0686cc9bed1eaace8edad29 [file] [log] [blame]
David Horstmanna65a8ff2021-03-01 19:34:37 +00001/*
Chris Kayd04a4762023-04-13 17:24:20 +01002 * Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
David Horstmanna65a8ff2021-03-01 19:34:37 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Marc Bonnici37dd8e12021-08-17 18:00:07 +01007#ifndef UUID_COMMON_H
8#define UUID_COMMON_H
David Horstmanna65a8ff2021-03-01 19:34:37 +00009
Chris Kayd04a4762023-04-13 17:24:20 +010010#include <stdbool.h>
11#include <stdint.h>
12
David Horstmanna65a8ff2021-03-01 19:34:37 +000013#define UUID_BYTES_LENGTH 16
14#define UUID_STRING_LENGTH 36
15
16int read_uuid(uint8_t *dest, char *uuid);
Marc Bonnici37dd8e12021-08-17 18:00:07 +010017bool uuid_match(uint32_t *uuid1, uint32_t *uuid2);
18void copy_uuid(uint32_t *to_uuid, uint32_t *from_uuid);
19bool is_null_uuid(uint32_t *uuid);
David Horstmanna65a8ff2021-03-01 19:34:37 +000020
Marc Bonnici37dd8e12021-08-17 18:00:07 +010021#endif /* UUID_COMMON_H */