aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext/grpc/call.h
diff options
context:
space:
mode:
authorGravatar thinkerou <thinkerou@gmail.com>2016-07-22 02:43:19 +0800
committerGravatar thinkerou <thinkerou@gmail.com>2016-07-22 02:43:19 +0800
commit193046819c5f30ace064884393effea054b2f54f (patch)
tree142d8d1228f957a00d5132435df8762d9715061c /src/php/ext/grpc/call.h
parent1f45b40f5c6d32f2171830a59bcb36a7af01cf05 (diff)
use php7_wrapper to reduce dup-codes
Diffstat (limited to 'src/php/ext/grpc/call.h')
-rw-r--r--src/php/ext/grpc/call.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/php/ext/grpc/call.h b/src/php/ext/grpc/call.h
index 9fc52d7820..4931bf392e 100644
--- a/src/php/ext/grpc/call.h
+++ b/src/php/ext/grpc/call.h
@@ -64,6 +64,9 @@ zval *grpc_php_wrap_call(grpc_call *wrapped, bool owned TSRMLS_DC);
* call metadata */
zval *grpc_parse_metadata_array(grpc_metadata_array *metadata_array TSRMLS_DC);
+#define Z_WRAPPED_GRPC_CALL_P(zv) \
+ (wrapped_grpc_call *)zend_object_store_get_object(zv TSRMLS_CC)
+
#else
/* Wrapper struct for grpc_call that can be associated with a PHP object */