|
|
|
@ -139,7 +139,8 @@ void grpc_sopb_add_begin_message(grpc_stream_op_buffer *sopb, gpr_uint32 length, |
|
|
|
|
assert_contained_metadata_ok(sopb->ops, sopb->nops); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void grpc_sopb_add_metadata(grpc_stream_op_buffer *sopb, grpc_metadata_batch b) { |
|
|
|
|
void grpc_sopb_add_metadata(grpc_stream_op_buffer *sopb, |
|
|
|
|
grpc_metadata_batch b) { |
|
|
|
|
grpc_stream_op *op = add(sopb); |
|
|
|
|
grpc_metadata_batch_assert_ok(&b); |
|
|
|
|
op->type = GRPC_OP_METADATA; |
|
|
|
@ -181,7 +182,6 @@ void grpc_sopb_append(grpc_stream_op_buffer *sopb, grpc_stream_op *ops, |
|
|
|
|
assert_contained_metadata_ok(sopb->ops, sopb->nops); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void assert_valid_list(grpc_mdelem_list *list) { |
|
|
|
|
grpc_linked_mdelem *l; |
|
|
|
|
|
|
|
|
@ -206,7 +206,8 @@ void grpc_metadata_batch_assert_ok(grpc_metadata_batch *comd) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void grpc_metadata_batch_init(grpc_metadata_batch *comd) { |
|
|
|
|
comd->list.head = comd->list.tail = comd->garbage.head = comd->garbage.tail = NULL; |
|
|
|
|
comd->list.head = comd->list.tail = comd->garbage.head = comd->garbage.tail = |
|
|
|
|
NULL; |
|
|
|
|
comd->deadline = gpr_inf_future; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|