@ -99,7 +99,7 @@ static void call_read_cb(secure_endpoint *ep, gpr_slice *slices, size_t nslices,
size_t i ;
for ( i = 0 ; i < nslices ; i + + ) {
char * data =
gpr_hexdump ( ( char * ) GPR_SLICE_START_PTR ( slices [ i ] ) ,
gpr_hexdump ( ( char * ) GPR_SLICE_START_PTR ( slices [ i ] ) ,
GPR_SLICE_LENGTH ( slices [ i ] ) , GPR_HEXDUMP_PLAINTEXT ) ;
gpr_log ( GPR_DEBUG , " READ %p: %s " , ep , data ) ;
gpr_free ( data ) ;
@ -183,7 +183,7 @@ static void on_read(void *user_data, gpr_slice *slices, size_t nslices,
call_read_cb ( ep , ep - > input_buffer . slices , input_buffer_count , error ) ;
}
static void notify_on_read ( grpc_endpoint * secure_ep , grpc_endpoint_read_cb cb ,
static void notify_on_read_m ( grpc_endpoint * secure_ep , grpc_endpoint_read_cb cb ,
void * user_data , gpr_timespec deadline ) {
secure_endpoint * ep = ( secure_endpoint * ) secure_ep ;
ep - > read_cb = cb ;
@ -216,7 +216,7 @@ static void on_write(void *data, grpc_endpoint_cb_status error) {
secure_endpoint_unref ( ep ) ;
}
static grpc_endpoint_write_status write ( grpc_endpoint * secure_ep ,
static grpc_endpoint_write_status write_m ( grpc_endpoint * secure_ep ,
gpr_slice * slices , size_t nslices ,
grpc_endpoint_write_cb cb ,
void * user_data ,
@ -233,7 +233,7 @@ static grpc_endpoint_write_status write(grpc_endpoint *secure_ep,
# ifdef GRPC_TRACE_SECURE_TRANSPORT
for ( i = 0 ; i < nslices ; i + + ) {
char * data =
gpr_hexdump ( ( char * ) GPR_SLICE_START_PTR ( slices [ i ] ) ,
gpr_hexdump ( ( char * ) GPR_SLICE_START_PTR ( slices [ i ] ) ,
GPR_SLICE_LENGTH ( slices [ i ] ) , GPR_HEXDUMP_PLAINTEXT ) ;
gpr_log ( GPR_DEBUG , " WRITE %p: %s " , ep , data ) ;
gpr_free ( data ) ;
@ -316,18 +316,18 @@ static grpc_endpoint_write_status write(grpc_endpoint *secure_ep,
return status ;
}
static void shutdown ( grpc_endpoint * secure_ep ) {
static void shutdown_m ( grpc_endpoint * secure_ep ) {
secure_endpoint * ep = ( secure_endpoint * ) secure_ep ;
grpc_endpoint_shutdown ( ep - > wrapped_ep ) ;
}
static void unref ( grpc_endpoint * secure_ep ) {
static void unref_m ( grpc_endpoint * secure_ep ) {
secure_endpoint * ep = ( secure_endpoint * ) secure_ep ;
secure_endpoint_unref ( ep ) ;
}
static const grpc_endpoint_vtable vtable = { notify_on_read , write , shutdown ,
unref } ;
static const grpc_endpoint_vtable vtable = { notify_on_read_m , write_m ,
shutdown_m , unref_m } ;
grpc_endpoint * grpc_secure_endpoint_create (
struct tsi_frame_protector * protector , grpc_endpoint * transport ,