Julian Hall | 6c59e4e | 2020-11-23 17:50:47 +0100 | [diff] [blame] | 1 | /* |
julhal01 | c3f4e9a | 2020-12-15 13:39:01 +0000 | [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 PROTOCOLS_RPC_COMMON_STATUS_H |
| 8 | #define PROTOCOLS_RPC_COMMON_STATUS_H |
| 9 | |
| 10 | /* Common RPC status codes for C/C++ |
| 11 | * |
| 12 | * Alignment of these definitions with other defintions for |
| 13 | * alternative languages is checked through a set of test cases. |
| 14 | * These status values are aligned to PSA definitions. |
| 15 | */ |
julhal01 | c3f4e9a | 2020-12-15 13:39:01 +0000 | [diff] [blame] | 16 | enum |
| 17 | { |
Julian Hall | f7d55ff | 2021-11-22 13:57:54 +0000 | [diff] [blame] | 18 | TS_RPC_CALL_ACCEPTED = 0, |
| 19 | TS_RPC_ERROR_EP_DOES_NOT_EXIT = -1, |
| 20 | TS_RPC_ERROR_INVALID_OPCODE = -2, |
| 21 | TS_RPC_ERROR_SERIALIZATION_NOT_SUPPORTED = -3, |
| 22 | TS_RPC_ERROR_INVALID_REQ_BODY = -4, |
| 23 | TS_RPC_ERROR_INVALID_RESP_BODY = -5, |
| 24 | TS_RPC_ERROR_RESOURCE_FAILURE = -6, |
| 25 | TS_RPC_ERROR_NOT_READY = -7, |
| 26 | TS_RPC_ERROR_INVALID_TRANSACTION = -8, |
| 27 | TS_RPC_ERROR_INTERNAL = -9, |
| 28 | TS_RPC_ERROR_INVALID_PARAMETER = -10, |
| 29 | TS_RPC_ERROR_INTERFACE_DOES_NOT_EXIST = -11, |
| 30 | TS_RPC_ERROR_ACCESS_DENIED = -12 |
julhal01 | c3f4e9a | 2020-12-15 13:39:01 +0000 | [diff] [blame] | 31 | }; |
Julian Hall | 6c59e4e | 2020-11-23 17:50:47 +0100 | [diff] [blame] | 32 | |
| 33 | #endif /* PROTOCOLS_RPC_COMMON_STATUS_H */ |