aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport/transport.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-08-09 09:09:33 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-08-09 09:09:33 -0700
commitacad79f0c87dd1855020c39238a12476c904da51 (patch)
tree54317c576effa957702eb99670c80fbf1effb1fe /src/core/lib/transport/transport.h
parent4103a1b0f2e70ac6eee07f87f35c6b9c0a8562d1 (diff)
parent3e104bbe5ccba7a5c4fd30be598da32074ea95aa (diff)
Merge github.com:grpc/grpc into grand-unified-closures
Diffstat (limited to 'src/core/lib/transport/transport.h')
-rw-r--r--src/core/lib/transport/transport.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/lib/transport/transport.h b/src/core/lib/transport/transport.h
index 4f82794235..d0d0c2a461 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;
@@ -169,7 +173,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;
@@ -289,4 +293,8 @@ char *grpc_transport_get_peer(grpc_exec_ctx *exec_ctx,
\a on_consumed and then delete the returned transport op */
grpc_transport_op *grpc_make_transport_op(grpc_closure *on_consumed);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* GRPC_CORE_LIB_TRANSPORT_TRANSPORT_H */