diff options
author | Vijay Pai <vpai@google.com> | 2016-08-25 14:49:18 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2016-08-25 14:49:18 -0700 |
commit | ac4113bef128abd57cc166a4921063b0b4c5278d (patch) | |
tree | f5b0b4a72310252d86c502659283c6ad76a47539 /src/core/lib/transport/transport.h | |
parent | 326d939873eb96c68d3ebb859c12b4bf022dadc6 (diff) | |
parent | c931305c398e7e87013da52a5c2697d0fb14ad7f (diff) |
Merge branch 'master' into fc_unary
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 */ |