blob: d9d3a8523358aba2863878ddc23e853835953daa [file] [log] [blame]
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -08001/*
2 *
Craig Tiller6169d5f2016-03-31 07:46:18 -07003 * Copyright 2015, Google Inc.
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -08004 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above
13 * copyright notice, this list of conditions and the following disclaimer
14 * in the documentation and/or other materials provided with the
15 * distribution.
16 * * Neither the name of Google Inc. nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 */
33
Craig Tiller9a4dddd2016-03-25 17:08:13 -070034#ifndef GRPC_CORE_LIB_CHANNEL_CHANNEL_STACK_H
35#define GRPC_CORE_LIB_CHANNEL_CHANNEL_STACK_H
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080036
Mark D. Rothaa1cd142016-12-12 10:24:59 -080037//////////////////////////////////////////////////////////////////////////////
38// IMPORTANT NOTE:
39//
40// When you update this API, please make the corresponding changes to
41// the C++ API in src/cpp/common/channel_filter.{h,cc}
42//////////////////////////////////////////////////////////////////////////////
43
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080044/* A channel filter defines how operations on a channel are implemented.
45 Channel filters are chained together to create full channels, and if those
46 chains are linear, then channel stacks provide a mechanism to minimize
47 allocations for that chain.
48 Call stacks are created by channel stacks and represent the per-call data
49 for that stack. */
50
51#include <stddef.h>
52
53#include <grpc/grpc.h>
54#include <grpc/support/log.h>
David Garcia Quintas9ef0e1c2016-04-14 12:44:30 -070055#include <grpc/support/time.h>
56
Craig Tiller9533d042016-03-25 17:11:06 -070057#include "src/core/lib/debug/trace.h"
David Garcia Quintas2a50dfe2016-05-31 15:09:12 -070058#include "src/core/lib/iomgr/polling_entity.h"
Craig Tiller9533d042016-03-25 17:11:06 -070059#include "src/core/lib/transport/transport.h"
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080060
Mark D. Rothc459ecf2016-06-16 09:17:49 -070061#ifdef __cplusplus
62extern "C" {
63#endif
64
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080065typedef struct grpc_channel_element grpc_channel_element;
66typedef struct grpc_call_element grpc_call_element;
67
Craig Tiller906e3bc2015-11-24 07:31:31 -080068typedef struct grpc_channel_stack grpc_channel_stack;
69typedef struct grpc_call_stack grpc_call_stack;
70
Craig Tiller577c9b22015-11-02 14:11:15 -080071typedef struct {
Craig Tiller906e3bc2015-11-24 07:31:31 -080072 grpc_channel_stack *channel_stack;
Craig Tiller577c9b22015-11-02 14:11:15 -080073 const grpc_channel_args *channel_args;
Craig Tiller9d69e802016-06-06 11:37:50 -070074 /** Transport, iff it is known */
75 grpc_transport *optional_transport;
Craig Tiller577c9b22015-11-02 14:11:15 -080076 int is_first;
77 int is_last;
78} grpc_channel_element_args;
79
80typedef struct {
Craig Tiller906e3bc2015-11-24 07:31:31 -080081 grpc_call_stack *call_stack;
Craig Tiller577c9b22015-11-02 14:11:15 -080082 const void *server_transport_data;
83 grpc_call_context_element *context;
Mark D. Rothaa850a72016-09-26 13:38:02 -070084 grpc_mdstr *path;
Mark D. Rothff08f332016-10-14 13:01:01 -070085 gpr_timespec start_time;
Mark D. Rothf28763c2016-09-14 15:18:40 -070086 gpr_timespec deadline;
Craig Tiller577c9b22015-11-02 14:11:15 -080087} grpc_call_element_args;
88
David Garcia Quintas9ef0e1c2016-04-14 12:44:30 -070089typedef struct {
David Garcia Quintasc9bb9832016-04-14 12:52:31 -070090 grpc_transport_stream_stats transport_stream_stats;
91 gpr_timespec latency; /* From call creating to enqueing of received status */
David Garcia Quintas9ef0e1c2016-04-14 12:44:30 -070092} grpc_call_stats;
93
David Garcia Quintas6eee24c2016-07-11 22:56:50 -070094/** Information about the call upon completion. */
David Garcia Quintas01c4d992016-07-07 20:11:27 -070095typedef struct {
96 grpc_call_stats stats;
97 grpc_status_code final_status;
98} grpc_call_final_info;
99
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800100/* Channel filters specify:
101 1. the amount of memory needed in the channel & call (via the sizeof_XXX
102 members)
103 2. functions to initialize and destroy channel & call data
104 (init_XXX, destroy_XXX)
105 3. functions to implement call operations and channel operations (call_op,
106 channel_op)
107 4. a name, which is useful when debugging
108
109 Members are laid out in approximate frequency of use order. */
Craig Tillera82950e2015-09-22 12:33:20 -0700110typedef struct {
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800111 /* Called to eg. send/receive data on a call.
112 See grpc_call_next_op on how to call the next element in the stack */
Craig Tillera82950e2015-09-22 12:33:20 -0700113 void (*start_transport_stream_op)(grpc_exec_ctx *exec_ctx,
114 grpc_call_element *elem,
115 grpc_transport_stream_op *op);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800116 /* Called to handle channel level operations - e.g. new calls, or transport
117 closure.
118 See grpc_channel_next_op on how to call the next element in the stack */
Craig Tillera82950e2015-09-22 12:33:20 -0700119 void (*start_transport_op)(grpc_exec_ctx *exec_ctx,
120 grpc_channel_element *elem, grpc_transport_op *op);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800121
122 /* sizeof(per call data) */
123 size_t sizeof_call_data;
124 /* Initialize per call data.
125 elem is initialized at the start of the call, and elem->call_data is what
126 needs initializing.
127 The filter does not need to do any chaining.
128 server_transport_data is an opaque pointer. If it is NULL, this call is
129 on a client; if it is non-NULL, then it points to memory owned by the
130 transport and is on the server. Most filters want to ignore this
Craig Tiller45724b32015-09-22 10:42:19 -0700131 argument. */
Mark D. Roth76d24422016-06-23 13:22:10 -0700132 grpc_error *(*init_call_elem)(grpc_exec_ctx *exec_ctx,
Mark D. Roth0badbe82016-06-23 10:15:12 -0700133 grpc_call_element *elem,
134 grpc_call_element_args *args);
David Garcia Quintas4afce7e2016-04-18 16:25:17 -0700135 void (*set_pollset_or_pollset_set)(grpc_exec_ctx *exec_ctx,
David Garcia Quintas2a50dfe2016-05-31 15:09:12 -0700136 grpc_call_element *elem,
137 grpc_polling_entity *pollent);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800138 /* Destroy per call data.
Craig Tiller2c8063c2016-03-22 22:12:15 -0700139 The filter does not need to do any chaining.
140 The bottom filter of a stack will be passed a non-NULL pointer to
141 \a and_free_memory that should be passed to gpr_free when destruction
David Garcia Quintas6eee24c2016-07-11 22:56:50 -0700142 is complete. \a final_info contains data about the completed call, mainly
David Garcia Quintas01c4d992016-07-07 20:11:27 -0700143 for reporting purposes. */
Craig Tiller2c8063c2016-03-22 22:12:15 -0700144 void (*destroy_call_elem)(grpc_exec_ctx *exec_ctx, grpc_call_element *elem,
David Garcia Quintas5dde14c2016-07-28 17:29:27 -0700145 const grpc_call_final_info *final_info,
Craig Tiller2c8063c2016-03-22 22:12:15 -0700146 void *and_free_memory);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800147
148 /* sizeof(per channel data) */
149 size_t sizeof_channel_data;
150 /* Initialize per-channel data.
David Garcia Quintas01c4d992016-07-07 20:11:27 -0700151 elem is initialized at the creating of the channel, and elem->channel_data
152 is what needs initializing.
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800153 is_first, is_last designate this elements position in the stack, and are
154 useful for asserting correct configuration by upper layer code.
155 The filter does not need to do any chaining */
Mark D. Roth5e2566e2016-11-18 10:53:13 -0800156 grpc_error *(*init_channel_elem)(grpc_exec_ctx *exec_ctx,
157 grpc_channel_element *elem,
158 grpc_channel_element_args *args);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800159 /* Destroy per channel data.
160 The filter does not need to do any chaining */
Craig Tillera82950e2015-09-22 12:33:20 -0700161 void (*destroy_channel_elem)(grpc_exec_ctx *exec_ctx,
162 grpc_channel_element *elem);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800163
Craig Tiller1b22b9d2015-07-20 13:42:22 -0700164 /* Implement grpc_call_get_peer() */
Craig Tillera82950e2015-09-22 12:33:20 -0700165 char *(*get_peer)(grpc_exec_ctx *exec_ctx, grpc_call_element *elem);
Craig Tiller1b22b9d2015-07-20 13:42:22 -0700166
Mark D. Rothb2d24882016-10-27 15:44:07 -0700167 /* Implement grpc_channel_get_info() */
168 void (*get_channel_info)(grpc_exec_ctx *exec_ctx, grpc_channel_element *elem,
Mark D. Rothf79ce7d2016-11-04 08:43:36 -0700169 const grpc_channel_info *channel_info);
Mark D. Rothb2d24882016-10-27 15:44:07 -0700170
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800171 /* The name of this filter */
172 const char *name;
173} grpc_channel_filter;
174
175/* A channel_element tracks its filter and the filter requested memory within
176 a channel allocation */
Craig Tillera82950e2015-09-22 12:33:20 -0700177struct grpc_channel_element {
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800178 const grpc_channel_filter *filter;
179 void *channel_data;
180};
181
182/* A call_element tracks its filter, the filter requested memory within
183 a channel allocation, and the filter requested memory within a call
184 allocation */
Craig Tillera82950e2015-09-22 12:33:20 -0700185struct grpc_call_element {
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800186 const grpc_channel_filter *filter;
187 void *channel_data;
188 void *call_data;
189};
190
191/* A channel stack tracks a set of related filters for one channel, and
192 guarantees they live within a single malloc() allocation */
Craig Tiller906e3bc2015-11-24 07:31:31 -0800193struct grpc_channel_stack {
194 grpc_stream_refcount refcount;
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800195 size_t count;
196 /* Memory required for a call stack (computed at channel stack
197 initialization) */
198 size_t call_stack_size;
Craig Tiller906e3bc2015-11-24 07:31:31 -0800199};
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800200
201/* A call stack tracks a set of related filters for one call, and guarantees
202 they live within a single malloc() allocation */
Craig Tiller906e3bc2015-11-24 07:31:31 -0800203struct grpc_call_stack {
Craig Tiller577c9b22015-11-02 14:11:15 -0800204 /* shared refcount for this channel stack.
205 MUST be the first element: the underlying code calls destroy
206 with the address of the refcount, but higher layers prefer to think
207 about the address of the call stack itself. */
208 grpc_stream_refcount refcount;
209 size_t count;
Craig Tiller906e3bc2015-11-24 07:31:31 -0800210};
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800211
212/* Get a channel element given a channel stack and its index */
Craig Tillera82950e2015-09-22 12:33:20 -0700213grpc_channel_element *grpc_channel_stack_element(grpc_channel_stack *stack,
214 size_t i);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800215/* Get the last channel element in a channel stack */
Craig Tillera82950e2015-09-22 12:33:20 -0700216grpc_channel_element *grpc_channel_stack_last_element(
217 grpc_channel_stack *stack);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800218/* Get a call stack element given a call stack and an index */
Craig Tillera82950e2015-09-22 12:33:20 -0700219grpc_call_element *grpc_call_stack_element(grpc_call_stack *stack, size_t i);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800220
221/* Determine memory required for a channel stack containing a set of filters */
Craig Tillera82950e2015-09-22 12:33:20 -0700222size_t grpc_channel_stack_size(const grpc_channel_filter **filters,
223 size_t filter_count);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800224/* Initialize a channel stack given some filters */
Mark D. Rothc1087882016-11-18 10:54:45 -0800225grpc_error *grpc_channel_stack_init(
Mark D. Roth5e2566e2016-11-18 10:53:13 -0800226 grpc_exec_ctx *exec_ctx, int initial_refs, grpc_iomgr_cb_func destroy,
Mark D. Rothc1087882016-11-18 10:54:45 -0800227 void *destroy_arg, const grpc_channel_filter **filters, size_t filter_count,
228 const grpc_channel_args *args, grpc_transport *optional_transport,
229 const char *name, grpc_channel_stack *stack);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800230/* Destroy a channel stack */
Craig Tillera82950e2015-09-22 12:33:20 -0700231void grpc_channel_stack_destroy(grpc_exec_ctx *exec_ctx,
232 grpc_channel_stack *stack);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800233
234/* Initialize a call stack given a channel stack. transport_server_data is
235 expected to be NULL on a client, or an opaque transport owned pointer on the
236 server. */
Mark D. Rothf28763c2016-09-14 15:18:40 -0700237grpc_error *grpc_call_stack_init(
238 grpc_exec_ctx *exec_ctx, grpc_channel_stack *channel_stack,
239 int initial_refs, grpc_iomgr_cb_func destroy, void *destroy_arg,
240 grpc_call_context_element *context, const void *transport_server_data,
Mark D. Roth3d883412016-11-07 13:42:54 -0800241 grpc_mdstr *path, gpr_timespec start_time, gpr_timespec deadline,
242 grpc_call_stack *call_stack);
David Garcia Quintas4afce7e2016-04-18 16:25:17 -0700243/* Set a pollset or a pollset_set for a call stack: must occur before the first
244 * op is started */
David Garcia Quintasf72eb972016-05-03 18:28:09 -0700245void grpc_call_stack_set_pollset_or_pollset_set(grpc_exec_ctx *exec_ctx,
246 grpc_call_stack *call_stack,
David Garcia Quintas2a50dfe2016-05-31 15:09:12 -0700247 grpc_polling_entity *pollent);
Craig Tiller577c9b22015-11-02 14:11:15 -0800248
249#ifdef GRPC_STREAM_REFCOUNT_DEBUG
Craig Tiller906e3bc2015-11-24 07:31:31 -0800250#define GRPC_CALL_STACK_REF(call_stack, reason) \
Craig Tiller577c9b22015-11-02 14:11:15 -0800251 grpc_stream_ref(&(call_stack)->refcount, reason)
Craig Tiller906e3bc2015-11-24 07:31:31 -0800252#define GRPC_CALL_STACK_UNREF(exec_ctx, call_stack, reason) \
Craig Tiller577c9b22015-11-02 14:11:15 -0800253 grpc_stream_unref(exec_ctx, &(call_stack)->refcount, reason)
Craig Tiller906e3bc2015-11-24 07:31:31 -0800254#define GRPC_CHANNEL_STACK_REF(channel_stack, reason) \
255 grpc_stream_ref(&(channel_stack)->refcount, reason)
256#define GRPC_CHANNEL_STACK_UNREF(exec_ctx, channel_stack, reason) \
257 grpc_stream_unref(exec_ctx, &(channel_stack)->refcount, reason)
Craig Tiller577c9b22015-11-02 14:11:15 -0800258#else
Craig Tiller7b435612015-11-24 08:15:05 -0800259#define GRPC_CALL_STACK_REF(call_stack, reason) \
260 grpc_stream_ref(&(call_stack)->refcount)
Craig Tiller906e3bc2015-11-24 07:31:31 -0800261#define GRPC_CALL_STACK_UNREF(exec_ctx, call_stack, reason) \
Craig Tiller577c9b22015-11-02 14:11:15 -0800262 grpc_stream_unref(exec_ctx, &(call_stack)->refcount)
Craig Tiller7b435612015-11-24 08:15:05 -0800263#define GRPC_CHANNEL_STACK_REF(channel_stack, reason) \
264 grpc_stream_ref(&(channel_stack)->refcount)
Craig Tiller906e3bc2015-11-24 07:31:31 -0800265#define GRPC_CHANNEL_STACK_UNREF(exec_ctx, channel_stack, reason) \
266 grpc_stream_unref(exec_ctx, &(channel_stack)->refcount)
Craig Tiller577c9b22015-11-02 14:11:15 -0800267#endif
268
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800269/* Destroy a call stack */
Craig Tiller2c8063c2016-03-22 22:12:15 -0700270void grpc_call_stack_destroy(grpc_exec_ctx *exec_ctx, grpc_call_stack *stack,
David Garcia Quintas01c4d992016-07-07 20:11:27 -0700271 const grpc_call_final_info *final_info,
Craig Tiller2c8063c2016-03-22 22:12:15 -0700272 void *and_free_memory);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800273
David Garcia Quintasf72eb972016-05-03 18:28:09 -0700274/* Ignore set pollset{_set} - used by filters if they don't care about pollsets
275 * at all. Does nothing. */
David Garcia Quintas2a50dfe2016-05-31 15:09:12 -0700276void grpc_call_stack_ignore_set_pollset_or_pollset_set(
277 grpc_exec_ctx *exec_ctx, grpc_call_element *elem,
278 grpc_polling_entity *pollent);
Craig Tiller83f88d92015-04-21 16:02:05 -0700279/* Call the next operation in a call stack */
Craig Tillera82950e2015-09-22 12:33:20 -0700280void grpc_call_next_op(grpc_exec_ctx *exec_ctx, grpc_call_element *elem,
281 grpc_transport_stream_op *op);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800282/* Call the next operation (depending on call directionality) in a channel
283 stack */
Craig Tillera82950e2015-09-22 12:33:20 -0700284void grpc_channel_next_op(grpc_exec_ctx *exec_ctx, grpc_channel_element *elem,
285 grpc_transport_op *op);
Craig Tiller1b22b9d2015-07-20 13:42:22 -0700286/* Pass through a request to get_peer to the next child element */
Craig Tillera82950e2015-09-22 12:33:20 -0700287char *grpc_call_next_get_peer(grpc_exec_ctx *exec_ctx, grpc_call_element *elem);
Mark D. Rothb2d24882016-10-27 15:44:07 -0700288/* Pass through a request to get_channel_info() to the next child element */
289void grpc_channel_next_get_info(grpc_exec_ctx *exec_ctx,
290 grpc_channel_element *elem,
Mark D. Rothf79ce7d2016-11-04 08:43:36 -0700291 const grpc_channel_info *channel_info);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800292
293/* Given the top element of a channel stack, get the channel stack itself */
Craig Tillera82950e2015-09-22 12:33:20 -0700294grpc_channel_stack *grpc_channel_stack_from_top_element(
295 grpc_channel_element *elem);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800296/* Given the top element of a call stack, get the call stack itself */
Craig Tillera82950e2015-09-22 12:33:20 -0700297grpc_call_stack *grpc_call_stack_from_top_element(grpc_call_element *elem);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800298
Craig Tillera82950e2015-09-22 12:33:20 -0700299void grpc_call_log_op(char *file, int line, gpr_log_severity severity,
300 grpc_call_element *elem, grpc_transport_stream_op *op);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800301
Craig Tillera82950e2015-09-22 12:33:20 -0700302void grpc_call_element_send_cancel(grpc_exec_ctx *exec_ctx,
303 grpc_call_element *cur_elem);
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800304
Yuchen Zengec066b32016-06-13 18:10:23 -0700305void grpc_call_element_send_cancel_with_message(grpc_exec_ctx *exec_ctx,
306 grpc_call_element *cur_elem,
307 grpc_status_code status,
Craig Tillerd41a4a72016-10-26 16:16:06 -0700308 grpc_slice *optional_message);
Yuchen Zengec066b32016-06-13 18:10:23 -0700309
Mark D. Roth75d74782016-09-09 07:46:01 -0700310void grpc_call_element_send_close_with_message(grpc_exec_ctx *exec_ctx,
311 grpc_call_element *cur_elem,
312 grpc_status_code status,
Craig Tillerd41a4a72016-10-26 16:16:06 -0700313 grpc_slice *optional_message);
Mark D. Roth75d74782016-09-09 07:46:01 -0700314
Craig Tillerfaa84802015-03-01 21:56:38 -0800315extern int grpc_trace_channel;
316
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800317#define GRPC_CALL_LOG_OP(sev, elem, op) \
Craig Tillerfaa84802015-03-01 21:56:38 -0800318 if (grpc_trace_channel) grpc_call_log_op(sev, elem, op)
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -0800319
Mark D. Rothc459ecf2016-06-16 09:17:49 -0700320#ifdef __cplusplus
321}
322#endif
323
Craig Tiller9a4dddd2016-03-25 17:08:13 -0700324#endif /* GRPC_CORE_LIB_CHANNEL_CHANNEL_STACK_H */