Imre Kis | 33c18be | 2023-06-21 18:47:36 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef RPC_UUID_H |
| 8 | #define RPC_UUID_H |
| 9 | |
| 10 | #include <stdbool.h> |
| 11 | #include <stdint.h> |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | /** |
| 18 | * @brief RPC UUID |
| 19 | * |
| 20 | * Describes a UUID for identifying an RPC service. |
| 21 | */ |
| 22 | struct rpc_uuid { |
| 23 | uint8_t uuid[16]; |
| 24 | }; |
| 25 | |
| 26 | /** |
| 27 | * @brief Checks if two RPC UUIDs are equal |
| 28 | * |
| 29 | * @param uuid_a UUID A |
| 30 | * @param uuid_b UUID B |
| 31 | * @return true |
| 32 | * @return false |
| 33 | */ |
| 34 | bool rpc_uuid_equal(const struct rpc_uuid *uuid_a, const struct rpc_uuid *uuid_b); |
| 35 | |
| 36 | #ifdef __cplusplus |
| 37 | } |
| 38 | #endif |
| 39 | |
| 40 | #endif /* RPC_UUID_H */ |