core/lib/channel/context.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 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_CHANNEL_CONTEXT_H
20 #define GRPC_CORE_LIB_CHANNEL_CONTEXT_H
21 
23 
25 
27 
31 typedef enum {
35 
38 
41 
44 
47 
50 
52  void* value = nullptr;
53  void (*destroy)(void*) = nullptr;
54 };
55 
56 namespace grpc_core {
57 // Bind the legacy context array into the new style structure
58 // TODO(ctiller): remove as we migrate these contexts to the new system.
59 template <>
61 } // namespace grpc_core
62 
63 #endif /* GRPC_CORE_LIB_CHANNEL_CONTEXT_H */
GRPC_CONTEXT_CALL_TRACER
@ GRPC_CONTEXT_CALL_TRACER
Value is a CallTracer object.
Definition: core/lib/channel/context.h:40
grpc_core
Definition: call_metric_recorder.h:31
GRPC_CONTEXT_COUNT
@ GRPC_CONTEXT_COUNT
Definition: core/lib/channel/context.h:48
GRPC_CONTEXT_SECURITY
@ GRPC_CONTEXT_SECURITY
Definition: core/lib/channel/context.h:34
grpc_core::ContextType
Definition: core/lib/promise/context.h:32
GRPC_CONTEXT_TRACING
@ GRPC_CONTEXT_TRACING
Value is a census_context.
Definition: core/lib/channel/context.h:37
grpc_call_context_element::value
void * value
Definition: core/lib/channel/context.h:52
GRPC_CONTEXT_SERVICE_CONFIG_CALL_DATA
@ GRPC_CONTEXT_SERVICE_CONFIG_CALL_DATA
Holds a pointer to ServiceConfigCallData associated with this call.
Definition: core/lib/channel/context.h:46
grpc_call_context_element
Definition: core/lib/channel/context.h:51
grpc_call_context_element::destroy
void(* destroy)(void *)
Definition: core/lib/channel/context.h:53
GRPC_CONTEXT_TRAFFIC
@ GRPC_CONTEXT_TRAFFIC
Reserved for traffic_class_context.
Definition: core/lib/channel/context.h:43
context.h
grpc_context_index
grpc_context_index
Call object context pointers.
Definition: core/lib/channel/context.h:31
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:02