diff options
author | julhal01 <julian.hall@arm.com> | 2020-12-15 13:39:01 +0000 |
---|---|---|
committer | Gyorgy Szing <Gyorgy.Szing@arm.com> | 2021-04-14 16:59:03 +0200 |
commit | c3f4e9a7550ee4fddf2d24127ef33ca514351806 (patch) | |
tree | e61b25f7a93ea4ed2f26363186cc236aba06dd24 /protocols/rpc/common/packed-c/status.h | |
parent | 35c6d643b5f0c0387702e22bf742dd4878ca5ddd (diff) | |
download | trusted-services-c3f4e9a7550ee4fddf2d24127ef33ca514351806.tar.gz |
Extend RPC parameters
The RPC model is extended to include parameters for identifying
an RPC interface instance at an endpoint and another for
identifying the parameter encoding. The interface ID parameter
allows multiple service interfaces to be co-located. The encoding
parameter allows clients to use different parameter serialization
schemes and to specify the format in each RPC request.
Signed-off-by: julhal01 <julian.hall@arm.com>
Change-Id: I201b3417dc0e9f655113b9931db3494e41f1d74b
Diffstat (limited to 'protocols/rpc/common/packed-c/status.h')
-rw-r--r-- | protocols/rpc/common/packed-c/status.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/protocols/rpc/common/packed-c/status.h b/protocols/rpc/common/packed-c/status.h index 7f7842995..3838240df 100644 --- a/protocols/rpc/common/packed-c/status.h +++ b/protocols/rpc/common/packed-c/status.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -13,16 +13,19 @@ * alternative languages is checked through a set of test cases. * These status values are aligned to PSA definitions. */ -#define TS_RPC_CALL_ACCEPTED (0) -#define TS_RPC_ERROR_EP_DOES_NOT_EXIT (-1) -#define TS_RPC_ERROR_INVALID_OPCODE (-2) -#define TS_RPC_ERROR_SERIALIZATION_NOT_SUPPORTED (-3) -#define TS_RPC_ERROR_INVALID_REQ_BODY (-4) -#define TS_RPC_ERROR_INVALID_RESP_BODY (-5) -#define TS_RPC_ERROR_RESOURCE_FAILURE (-6) -#define TS_RPC_ERROR_NOT_READY (-7) -#define TS_RPC_ERROR_INVALID_TRANSACTION (-8) -#define TS_RPC_ERROR_INTERNAL (-9) -#define TS_RPC_ERROR_INVALID_PARAMETER (-10) +enum +{ + TS_RPC_CALL_ACCEPTED = 0, + TS_RPC_ERROR_EP_DOES_NOT_EXIT = -1, + TS_RPC_ERROR_INVALID_OPCODE = -2, + TS_RPC_ERROR_SERIALIZATION_NOT_SUPPORTED = -3, + TS_RPC_ERROR_INVALID_REQ_BODY = -4, + TS_RPC_ERROR_INVALID_RESP_BODY = -5, + TS_RPC_ERROR_RESOURCE_FAILURE = -6, + TS_RPC_ERROR_NOT_READY = -7, + TS_RPC_ERROR_INVALID_TRANSACTION = -8, + TS_RPC_ERROR_INTERNAL = -9, + TS_RPC_ERROR_INVALID_PARAMETER = -10 +}; #endif /* PROTOCOLS_RPC_COMMON_STATUS_H */ |