GRPC Core  9.0.0
channel_init.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_CORE_LIB_SURFACE_CHANNEL_INIT_H
20 #define GRPC_CORE_LIB_SURFACE_CHANNEL_INIT_H
21 
23 
27 
28 #define GRPC_CHANNEL_INIT_BUILTIN_PRIORITY 10000
29 
34 
38  void* arg);
39 
41 void grpc_channel_init_init(void);
42 
54  int priority,
55  grpc_channel_init_stage stage_fn,
56  void* stage_arg);
57 
63 
77 
78 #endif /* GRPC_CORE_LIB_SURFACE_CHANNEL_INIT_H */
void grpc_channel_init_finalize(void)
Finalize registration.
Definition: channel_init.cc:77
void grpc_channel_init_shutdown(void)
Shutdown the channel init system.
Definition: channel_init.cc:86
bool(* grpc_channel_init_stage)(grpc_channel_stack_builder *builder, void *arg)
This module provides a way for plugins (and the grpc core library itself) to register mutators for ch...
Definition: channel_init.h:37
bool grpc_channel_init_create_stack(grpc_channel_stack_builder *builder, grpc_channel_stack_type type)
Construct a channel stack of some sort: see channel_stack.h for details type is the type of channel s...
Definition: channel_init.cc:94
void grpc_channel_init_init(void)
Global initialization of the system.
Definition: channel_init.cc:41
void grpc_channel_init_register_stage(grpc_channel_stack_type type, int priority, grpc_channel_init_stage stage_fn, void *stage_arg)
Register one stage of mutators.
Definition: channel_init.cc:50
grpc_channel_stack_type
Definition: channel_stack_type.h:26
Definition: channel_stack_builder.cc:36