aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar apolcyn <apolcyn@google.com>2017-12-18 15:16:52 -0800
committerGravatar GitHub <noreply@github.com>2017-12-18 15:16:52 -0800
commit795e8ebdc47a7829310d44b84c15fda9695a2873 (patch)
treebb24f7450003cfdac9dfd47805331702351850b9
parent8ecabd987bfcfd687f56e67fc1b52af465872a32 (diff)
parent15a74d3317abb082c9e2037dca88c81e46694612 (diff)
Merge pull request #13798 from apolcyn/min_max_rpc_version_constants
Define RPC protocol version constants
-rw-r--r--src/core/lib/transport/transport.h7
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