aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/endpoint.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-08-27 07:38:01 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-08-27 07:38:01 -0700
commitb029859e580bfb7281c623622cdc32daf9846769 (patch)
treee3e12c253230021f57fb88f09c36e913cfd02f50 /src/core/iomgr/endpoint.c
parent4ff47d9ea361251274247998625808305c7f7c4a (diff)
Revert "Revert "Refactor Endpoint API""
Diffstat (limited to 'src/core/iomgr/endpoint.c')
-rw-r--r--src/core/iomgr/endpoint.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/iomgr/endpoint.c b/src/core/iomgr/endpoint.c
index 8ee14bce9b..a7878e31dd 100644
--- a/src/core/iomgr/endpoint.c
+++ b/src/core/iomgr/endpoint.c
@@ -33,17 +33,16 @@
#include "src/core/iomgr/endpoint.h"
-void grpc_endpoint_notify_on_read(grpc_endpoint *ep, grpc_endpoint_read_cb cb,
- void *user_data) {
- ep->vtable->notify_on_read(ep, cb, user_data);
+grpc_endpoint_op_status grpc_endpoint_read(grpc_endpoint *ep,
+ gpr_slice_buffer *slices,
+ grpc_iomgr_closure *cb) {
+ return ep->vtable->read(ep, slices, cb);
}
-grpc_endpoint_write_status grpc_endpoint_write(grpc_endpoint *ep,
- gpr_slice *slices,
- size_t nslices,
- grpc_endpoint_write_cb cb,
- void *user_data) {
- return ep->vtable->write(ep, slices, nslices, cb, user_data);
+grpc_endpoint_op_status grpc_endpoint_write(grpc_endpoint *ep,
+ gpr_slice_buffer *slices,
+ grpc_iomgr_closure *cb) {
+ return ep->vtable->write(ep, slices, cb);
}
void grpc_endpoint_add_to_pollset(grpc_endpoint *ep, grpc_pollset *pollset) {