diff options
author | Alexander Polcyn <apolcyn@google.com> | 2017-12-14 21:08:27 -0800 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2017-12-18 13:33:01 -0800 |
commit | 15a74d3317abb082c9e2037dca88c81e46694612 (patch) | |
tree | 0a8427a6432cfbb11c24a8652c651d7c8207091a /src/core | |
parent | 5d37e61d069a3d33fba15db35151d013a298537f (diff) |
Define RPC protocol version constants
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/transport/transport.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/lib/transport/transport.h b/src/core/lib/transport/transport.h index d813413a2a..80a7ff98be 100644 --- a/src/core/lib/transport/transport.h +++ b/src/core/lib/transport/transport.h @@ -31,7 +31,14 @@ #include "src/core/lib/transport/byte_stream.h" #include "src/core/lib/transport/metadata_batch.h" +/* Minimum and maximum protocol accepted versions. */ +#define GRPC_PROTOCOL_VERSION_MAX_MAJOR 2 +#define GRPC_PROTOCOL_VERSION_MAX_MINOR 1 +#define GRPC_PROTOCOL_VERSION_MIN_MAJOR 2 +#define GRPC_PROTOCOL_VERSION_MIN_MINOR 1 + /* forward declarations */ + typedef struct grpc_transport grpc_transport; /* grpc_stream doesn't actually exist. It's used as a typesafe |