34 #ifndef GRPC_INTERNAL_CORE_SURFACE_CALL_H
35 #define GRPC_INTERNAL_CORE_SURFACE_CALL_H
67 } recv_status_details;
89 const void *server_transport_data,
91 size_t add_initial_metadata_count,
97 #ifdef GRPC_CALL_REF_COUNT_DEBUG
100 int allow_immediate_deletion);
101 #define GRPC_CALL_INTERNAL_REF(call, reason) \
102 grpc_call_internal_ref(call, reason)
103 #define GRPC_CALL_INTERNAL_UNREF(call, reason, allow_immediate_deletion) \
104 grpc_call_internal_unref(call, reason, allow_immediate_deletion)
108 #define GRPC_CALL_INTERNAL_REF(call, reason) grpc_call_internal_ref(call)
109 #define GRPC_CALL_INTERNAL_UNREF(call, reason, allow_immediate_deletion) \
110 grpc_call_internal_unref(call, allow_immediate_deletion)
144 void *
value,
void (*destroy)(
void *value));
148 #define GRPC_CALL_LOG_BATCH(sev, call, ops, nops, tag) \
149 if (grpc_trace_batch) grpc_call_log_batch(sev, call, ops, nops, tag)
151 #define GRPC_SERVER_LOG_REQUEST_CALL(sev, server, call, details, \
152 initial_metadata, cq_bound_to_call, \
153 cq_for_notifications, tag) \
154 if (grpc_trace_batch) \
155 grpc_server_log_request_call(sev, server, call, details, initial_metadata, \
156 cq_bound_to_call, cq_for_notifications, tag)
158 #define GRPC_SERVER_LOG_SHUTDOWN(sev, server, cq, tag) \
159 if (grpc_trace_batch) grpc_server_log_shutdown(sev, server, cq, tag)
const char * value
Definition: hpack_table.c:44
grpc_call * grpc_call_create(grpc_channel *channel, grpc_completion_queue *cq, const void *server_transport_data, grpc_mdelem **add_initial_metadata, size_t add_initial_metadata_count, gpr_timespec send_deadline)
Definition: call.c:293
void grpc_server_log_shutdown(char *file, int line, gpr_log_severity severity, grpc_server *server, grpc_completion_queue *cq, void *tag)
Definition: call_log_batch.c:140
size_t * details_capacity
Definition: call.h:66
Definition: metadata.h:70
void * grpc_call_context_get(grpc_call *call, grpc_context_index elem)
Definition: call.c:1583
Definition: byte_buffer.h:49
grpc_ioreq_op op
Definition: call.h:80
void(* grpc_ioreq_completion_func)(grpc_call *call, int success, void *user_data)
Definition: call.h:85
size_t count
Definition: call.h:69
gpr_log_severity
Definition: log.h:56
void grpc_server_log_request_call(char *file, int line, gpr_log_severity severity, grpc_server *server, grpc_call **call, grpc_call_details *details, grpc_metadata_array *initial_metadata, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag)
Definition: call_log_batch.c:124
grpc_call_error grpc_call_start_ioreq_and_call_back(grpc_call *call, const grpc_ioreq *reqs, size_t nreqs, grpc_ioreq_completion_func on_complete, void *user_data)
Definition: call.c:1167
grpc_call_error
Result of a grpc call.
Definition: grpc.h:156
grpc_status_code code
Definition: call.h:74
grpc_metadata * metadata
Definition: call.h:70
char ** details
Definition: call.h:65
grpc_call_stack * grpc_call_get_call_stack(grpc_call *call)
Definition: call.c:1397
void grpc_call_internal_ref(grpc_call *call)
Definition: call.c:399
Definition: metadata.h:78
Operation data: one field for each op type (except SEND_CLOSE_FROM_CLIENT which has no arguments) ...
Definition: grpc.h:287
grpc_ioreq_op
Definition: call.h:42
gpr_uint32 flags
A copy of the write flags from grpc_op.
Definition: call.h:81
gpr_uint8 grpc_call_is_client(grpc_call *call)
Definition: call.c:1587
grpc_metadata_array * recv_metadata
Definition: call.h:58
Definition: completion_queue.c:49
void grpc_call_set_completion_queue(grpc_call *call, grpc_completion_queue *cq)
Definition: call.c:357
void grpc_call_log_batch(char *file, int line, gpr_log_severity severity, grpc_call *call, const grpc_op *ops, size_t nops, void *tag)
Definition: call_log_batch.c:110
grpc_ioreq_data data
Definition: call.h:82
void grpc_call_context_set(grpc_call *call, grpc_context_index elem, void *value, void(*destroy)(void *value))
Definition: call.c:1574
Definition: channel_stack.h:141
void grpc_call_internal_unref(grpc_call *call, int allow_immediate_deletion)
Definition: call.c:447
grpc_context_index
Definition: context.h:38
grpc_byte_buffer ** recv_message
Definition: call.h:59
grpc_mdstr * details
Definition: call.h:75
grpc_byte_buffer * send_message
Definition: call.h:72
grpc_call * grpc_call_from_top_element(grpc_call_element *surface_element)
Definition: call.c:1261
grpc_status_code
Definition: status.h:41
Definition: channel_stack.h:124
grpc_completion_queue * grpc_call_get_completion_queue(grpc_call *call)
Definition: call.c:367
void * user_data
Definition: call.h:62
int grpc_trace_batch
Definition: call_log_batch.c:40