aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-06-20 13:33:11 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-06-20 13:33:11 -0700
commit083afc225d298db97b37c28034dad1d024bfb0f5 (patch)
tree4b7406b3f5342e4254ec4cdee172d26e28d66089
parent3da684dcacac1b5d523897b76a00d5e62e1163bd (diff)
Add comments indicating what the grpc_call_context_element values are for
each array index.
-rw-r--r--src/core/lib/channel/context.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/lib/channel/context.h b/src/core/lib/channel/context.h
index c50e84279d..22f4cb62f3 100644
--- a/src/core/lib/channel/context.h
+++ b/src/core/lib/channel/context.h
@@ -34,10 +34,19 @@
#ifndef GRPC_CORE_LIB_CHANNEL_CONTEXT_H
#define GRPC_CORE_LIB_CHANNEL_CONTEXT_H
-/* Call object context pointers */
+// Call object context pointers.
+
+// Call context is represented as an array of grpc_call_context_elements.
+// This enum represents the indexes into the array, where each index
+// contains a different type of value.
typedef enum {
+ // Value is either a grpc_client_security_context or a
+ // grpc_server_security_context.
GRPC_CONTEXT_SECURITY = 0,
+
+ // Value is a census_context.
GRPC_CONTEXT_TRACING,
+
GRPC_CONTEXT_COUNT
} grpc_context_index;