aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/endpoint.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-08-27 07:37:48 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-08-27 07:37:48 -0700
commit4ff47d9ea361251274247998625808305c7f7c4a (patch)
tree8396780e126a8db360700b182ed2722eef2527a9 /src/core/iomgr/endpoint.c
parentb6c912b75b14cebc0527ccbac91964af347e7df7 (diff)
parent99d7b661bede39143d1be6040fb67c81b8117ae3 (diff)
Merge pull request #3095 from grpc/revert-3025-endpoints
Revert "Refactor Endpoint API"
Diffstat (limited to 'src/core/iomgr/endpoint.c')
-rw-r--r--src/core/iomgr/endpoint.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/core/iomgr/endpoint.c b/src/core/iomgr/endpoint.c
index a7878e31dd..8ee14bce9b 100644
--- a/src/core/iomgr/endpoint.c
+++ b/src/core/iomgr/endpoint.c
@@ -33,16 +33,17 @@
#include "src/core/iomgr/endpoint.h"
-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);
+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_write(grpc_endpoint *ep,
- gpr_slice_buffer *slices,
- grpc_iomgr_closure *cb) {
- return ep->vtable->write(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);
}
void grpc_endpoint_add_to_pollset(grpc_endpoint *ep, grpc_pollset *pollset) {