aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-15 22:57:02 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-15 22:57:02 -0800
commitc8c8bfa4034486f7991222e24c472a4ae08f6643 (patch)
treec18f1b2f72d8e09f37b8c22531ab776c3ab2110f /include
parentcffd920c3f64948df4106a5a455d808c4946842c (diff)
parentea36ba3285f21a798ddefb68a9a465a108e1ffbb (diff)
Merge branch 'new_invoke_api' of github.com:google/grpc into update
Conflicts: src/core/surface/call.c test/core/end2end/tests/thread_stress.c tools/run_tests/run_tests.py
Diffstat (limited to 'include')
-rw-r--r--include/grpc/grpc.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index 40a3d2acb5..3f4f349f30 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -158,6 +158,7 @@ typedef struct grpc_byte_buffer grpc_byte_buffer;
/* Sample helpers to obtain byte buffers (these will certainly move place */
grpc_byte_buffer *grpc_byte_buffer_create(gpr_slice *slices, size_t nslices);
+grpc_byte_buffer *grpc_byte_buffer_copy(grpc_byte_buffer *bb);
size_t grpc_byte_buffer_length(grpc_byte_buffer *bb);
void grpc_byte_buffer_destroy(grpc_byte_buffer *byte_buffer);
@@ -312,18 +313,14 @@ grpc_call_error grpc_call_add_metadata(grpc_call *call, grpc_metadata *metadata,
flags is a bit-field combination of the write flags defined above.
REQUIRES: Can be called at most once per call.
Can only be called on the client.
- Produces a GRPC_INVOKE_ACCEPTED event with invoke_accepted_tag when the
- call has been invoked (meaning bytes can start flowing to the wire).
Produces a GRPC_CLIENT_METADATA_READ event with metadata_read_tag when
the servers initial metadata has been read.
Produces a GRPC_FINISHED event with finished_tag when the call has been
completed (there may be other events for the call pending at this
time) */
-grpc_call_error grpc_call_start_invoke(grpc_call *call,
- grpc_completion_queue *cq,
- void *invoke_accepted_tag,
- void *metadata_read_tag,
- void *finished_tag, gpr_uint32 flags);
+grpc_call_error grpc_call_invoke(grpc_call *call, grpc_completion_queue *cq,
+ void *metadata_read_tag, void *finished_tag,
+ gpr_uint32 flags);
/* Accept an incoming RPC, binding a completion queue to it.
To be called before sending or receiving messages.