julhal01 | c3f4e9a | 2020-12-15 13:39:01 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef PROTOCOLS_RPC_COMMON_ENCODING_H |
| 8 | #define PROTOCOLS_RPC_COMMON_ENCODING_H |
| 9 | |
| 10 | /* |
| 11 | * Encodings used for parameter serialization. |
| 12 | */ |
| 13 | enum |
| 14 | { |
| 15 | /* |
| 16 | * Packed-c encoding. A lightweight serialization scheme with |
| 17 | * C language definition files. |
| 18 | */ |
| 19 | TS_RPC_ENCODING_PACKED_C = 0, |
| 20 | |
| 21 | /* |
| 22 | * Protocol Buffers serialization scheme with language independent |
| 23 | * definition files. Supports client code generation using definition |
| 24 | * files. |
| 25 | */ |
| 26 | TS_RPC_ENCODING_PROTOBUF = 1, |
| 27 | |
| 28 | /* |
| 29 | * The limit of known encodings. As new encodings are added, |
| 30 | * the limit value should be allowed to increase. An RPC interface |
| 31 | * that was built before a new encoding was added should safely |
| 32 | * reject an unsupported encoding. |
| 33 | */ |
| 34 | TS_RPC_ENCODING_LIMIT |
| 35 | }; |
| 36 | |
| 37 | #endif /* PROTOCOLS_RPC_COMMON_ENCODING_H */ |