aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/channel.h
diff options
context:
space:
mode:
authorGravatar Siddharth Rakesh <sidrakesh@google.com>2015-06-18 15:59:55 -0700
committerGravatar Siddharth Rakesh <sidrakesh@google.com>2015-06-18 15:59:55 -0700
commita31c9d27e084017d459bc5c72f96c1a37704dc0b (patch)
tree762773d259f8d73d16c9917b548181b59cf189d3 /src/core/surface/channel.h
parenteb973c8a856846eb52f36ba718758f1c50849288 (diff)
parent52c6142a30fc74d665bf6d7270c0d6835a9db38f (diff)
Merge branch 'we-dont-need-no-backup' of git://github.com/ctiller/grpc
Diffstat (limited to 'src/core/surface/channel.h')
-rw-r--r--src/core/surface/channel.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/surface/channel.h b/src/core/surface/channel.h
index 6d1ed87900..ba3c0abac9 100644
--- a/src/core/surface/channel.h
+++ b/src/core/surface/channel.h
@@ -58,7 +58,20 @@ gpr_uint32 grpc_channel_get_max_message_length(grpc_channel *channel);
void grpc_client_channel_closed(grpc_channel_element *elem);
+#ifdef GRPC_CHANNEL_REF_COUNT_DEBUG
+void grpc_channel_internal_ref(grpc_channel *channel, const char *reason);
+void grpc_channel_internal_unref(grpc_channel *channel, const char *reason);
+#define GRPC_CHANNEL_INTERNAL_REF(channel, reason) \
+ grpc_channel_internal_ref(channel, reason)
+#define GRPC_CHANNEL_INTERNAL_UNREF(channel, reason) \
+ grpc_channel_internal_unref(channel, reason)
+#else
void grpc_channel_internal_ref(grpc_channel *channel);
void grpc_channel_internal_unref(grpc_channel *channel);
+#define GRPC_CHANNEL_INTERNAL_REF(channel, reason) \
+ grpc_channel_internal_ref(channel)
+#define GRPC_CHANNEL_INTERNAL_UNREF(channel, reason) \
+ grpc_channel_internal_unref(channel)
+#endif
#endif /* GRPC_INTERNAL_CORE_SURFACE_CHANNEL_H */