diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2017-05-17 16:08:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 16:08:24 -0700 |
commit | eb9b82b7e1466a3aa28fcfed9e88e2f5dda35347 (patch) | |
tree | 9e8b46b1a0137e79cefb5801538fceb832228294 /include | |
parent | 4de910df8b8e55267a6e4eaa30be2ec2303466bf (diff) | |
parent | f6b622c08a908f6c67cebfd554f3e2039298416f (diff) |
Merge pull request #11118 from muxi/backward-compat-dev
Add Backward compatibility API to C++
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/server_builder.h | 6 | ||||
-rw-r--r-- | include/grpc/support/workaround_list.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h index 5a8577659a..2185b283ac 100644 --- a/include/grpc++/server_builder.h +++ b/include/grpc++/server_builder.h @@ -46,6 +46,7 @@ #include <grpc/compression.h> #include <grpc/support/cpu.h> #include <grpc/support/useful.h> +#include <grpc/support/workaround_list.h> struct grpc_resource_quota; @@ -184,6 +185,11 @@ class ServerBuilder { static void InternalAddPluginFactory( std::unique_ptr<ServerBuilderPlugin> (*CreatePlugin)()); + /// Enable a server workaround. Do not use unless you know what the workaround + /// does. For explanation and detailed descriptions of workarounds, see + /// doc/workarounds.md. + ServerBuilder& EnableWorkaround(grpc_workaround_list id); + private: friend class ::grpc::testing::ServerBuilderPluginTest; diff --git a/include/grpc/support/workaround_list.h b/include/grpc/support/workaround_list.h index 6a8aa1f955..ec4766510f 100644 --- a/include/grpc/support/workaround_list.h +++ b/include/grpc/support/workaround_list.h @@ -36,7 +36,7 @@ /* The list of IDs of server workarounds currently maintained by gRPC. For * explanation and detailed descriptions of workarounds, see - * /docs/workarounds.md + * /doc/workarounds.md */ typedef enum { GRPC_WORKAROUND_ID_CRONET_COMPRESSION = 0, |