diff options
author | 2016-08-11 08:52:02 -0700 | |
---|---|---|
committer | 2016-08-11 08:52:02 -0700 | |
commit | fddb3d3451940c35990da8191a4345723a90da2d (patch) | |
tree | 48e0630c57e9cdf20577bd3153a24b50743a324e /src/core/lib/transport/transport.h | |
parent | a3e7bd85c064da9a1011fd31209e5af6a7ff8f38 (diff) | |
parent | 2c779d64db4b4e460c697b59170f85135d552db5 (diff) |
Merge remote-tracking branch 'upstream/master' into handshaker_api
Diffstat (limited to 'src/core/lib/transport/transport.h')
-rw-r--r-- | src/core/lib/transport/transport.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/lib/transport/transport.h b/src/core/lib/transport/transport.h index e33fc5c761..1705e6e582 100644 --- a/src/core/lib/transport/transport.h +++ b/src/core/lib/transport/transport.h @@ -43,6 +43,10 @@ #include "src/core/lib/transport/byte_stream.h" #include "src/core/lib/transport/metadata_batch.h" +#ifdef __cplusplus +extern "C" { +#endif + /* forward declarations */ typedef struct grpc_transport grpc_transport; @@ -158,7 +162,7 @@ typedef struct grpc_transport_op { /** should we send a goaway? after a goaway is sent, once there are no more active calls on the transport, the transport should disconnect */ - int send_goaway; + bool send_goaway; /** what should the goaway contain? */ grpc_status_code goaway_status; gpr_slice *goaway_message; @@ -268,4 +272,8 @@ void grpc_transport_destroy(grpc_exec_ctx *exec_ctx, grpc_transport *transport); char *grpc_transport_get_peer(grpc_exec_ctx *exec_ctx, grpc_transport *transport); +#ifdef __cplusplus +} +#endif + #endif /* GRPC_CORE_LIB_TRANSPORT_TRANSPORT_H */ |