more separation

pull/6610/head
Adam Michalik 9 years ago
parent 3a3e14ca09
commit 8cf5303e8c
  1. 4
      include/grpc/grpc_posix.h
  2. 28
      src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c

@ -34,7 +34,10 @@
#ifndef GRPC_GRPC_POSIX_H
#define GRPC_GRPC_POSIX_H
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/support/port_platform.h>
#include <stddef.h>
#ifdef __cplusplus
@ -47,7 +50,6 @@ extern "C" {
* functionality on top of GRPC Core.
*/
#ifdef GPR_POSIX_SOCKET
/** Create a client channel to 'target' using file descriptor 'fd'. The 'target'

@ -31,28 +31,22 @@
*
*/
#include <grpc/support/port_platform.h>
#ifdef GPR_POSIX_SOCKET
#include <grpc/grpc.h>
// #include <fcntl.h>
// #include <stdlib.h>
// #include <string.h>
// #include <grpc/support/alloc.h>
// #include <grpc/support/slice.h>
// #include <grpc/support/slice_buffer.h>
#include <fcntl.h>
// #include "src/core/ext/client_config/client_channel.h"
// #include "src/core/ext/client_config/resolver_registry.h"
// #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"
// #include "src/core/lib/channel/channel_args.h"
// #include "src/core/lib/channel/compress_filter.h"
// #include "src/core/lib/channel/http_client_filter.h"
// #include "src/core/lib/iomgr/tcp_client.h"
// #include "src/core/lib/iomgr/tcp_posix.h"
// #include "src/core/lib/surface/api_trace.h"
// #include "src/core/lib/surface/channel.h"
#include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/transport/transport.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/tcp_posix.h"
#include "src/core/lib/surface/api_trace.h"
#include "src/core/lib/surface/channel.h"
grpc_channel *grpc_insecure_channel_create_from_fd(

Loading…
Cancel
Save