blob: cba9dacc62e8628d71761e583087587914fbef4c [file] [log] [blame]
Julian Hall6c59e4e2020-11-23 17:50:47 +01001/*
Julian Halld1dfda52021-11-25 18:46:45 +01002 * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
Julian Hall6c59e4e2020-11-23 17:50:47 +01003 *
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
13extern "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 */
22typedef int32_t rpc_status_t;
23
Julian Halld1dfda52021-11-25 18:46:45 +010024/** \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 */
31typedef int64_t rpc_opstatus_t;
32
Julian Hall6c59e4e2020-11-23 17:50:47 +010033#ifdef __cplusplus
34}
35#endif
36
37#endif /* RPC_STATUS_H */