Julian Hall | 6c59e4e | 2020-11-23 17:50:47 +0100 | [diff] [blame] | 1 | /* |
Julian Hall | d1dfda5 | 2021-11-25 18:46:45 +0100 | [diff] [blame] | 2 | * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. |
Julian Hall | 6c59e4e | 2020-11-23 17:50:47 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef RPC_STATUS_H |
| 8 | #define RPC_STATUS_H |
| 9 | |
| 10 | #include <stdint.h> |
| 11 | |
| 12 | #ifdef __cplusplus |
| 13 | extern "C" { |
| 14 | #endif |
| 15 | |
| 16 | /** \brief RPC status code type |
| 17 | * |
| 18 | * Used for returning the status of an RPC transaction. This is |
| 19 | * different from the opstatus which is used to return an endpoint |
| 20 | * specific status value. |
| 21 | */ |
| 22 | typedef int32_t rpc_status_t; |
| 23 | |
Julian Hall | d1dfda5 | 2021-11-25 18:46:45 +0100 | [diff] [blame] | 24 | /** \brief RPC operation status code type |
| 25 | * |
| 26 | * Used for returning the endpoint specific operation status. |
| 27 | * Different service layer protocols will use different status |
| 28 | * value schemes. Status values returned by an operation are |
| 29 | * carried by the RPC layer using this type. |
| 30 | */ |
| 31 | typedef int64_t rpc_opstatus_t; |
| 32 | |
Julian Hall | 6c59e4e | 2020-11-23 17:50:47 +0100 | [diff] [blame] | 33 | #ifdef __cplusplus |
| 34 | } |
| 35 | #endif |
| 36 | |
| 37 | #endif /* RPC_STATUS_H */ |