summaryrefslogtreecommitdiff
path: root/grpc/src/core/ext/transport/chttp2/server/chttp2_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'grpc/src/core/ext/transport/chttp2/server/chttp2_server.h')
-rw-r--r--grpc/src/core/ext/transport/chttp2/server/chttp2_server.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/grpc/src/core/ext/transport/chttp2/server/chttp2_server.h b/grpc/src/core/ext/transport/chttp2/server/chttp2_server.h
index 095cc5e4..e4e6b7cc 100644
--- a/grpc/src/core/ext/transport/chttp2/server/chttp2_server.h
+++ b/grpc/src/core/ext/transport/chttp2/server/chttp2_server.h
@@ -28,10 +28,19 @@
namespace grpc_core {
+// A function to modify channel args for a listening addr:port. Note that this
+// is used to create a security connector for listeners when the servers are
+// configured with a config fetcher. Not invoked if there is no config fetcher
+// added to the server. Takes ownership of the args. Caller takes ownership of
+// returned args. On failure, the error parameter will be set.
+using Chttp2ServerArgsModifier =
+ std::function<grpc_channel_args*(grpc_channel_args*, grpc_error_handle*)>;
+
/// Adds a port to \a server. Sets \a port_num to the port number.
/// Takes ownership of \a args.
-grpc_error* Chttp2ServerAddPort(Server* server, const char* addr,
- grpc_channel_args* args, int* port_num);
+grpc_error_handle Chttp2ServerAddPort(
+ Server* server, const char* addr, grpc_channel_args* args,
+ Chttp2ServerArgsModifier connection_args_modifier, int* port_num);
} // namespace grpc_core