From 9c4425a4d5302f567075ca08a18c7bfbcfde6458 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Tue, 24 Mar 2015 09:43:41 -0700 Subject: [PATCH] Added comments to new functions in call.c --- src/php/ext/grpc/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/php/ext/grpc/call.c b/src/php/ext/grpc/call.c index 08f4f2b1eb6..d0e324e2ccd 100644 --- a/src/php/ext/grpc/call.c +++ b/src/php/ext/grpc/call.c @@ -112,6 +112,8 @@ zval *grpc_php_wrap_call(grpc_call *wrapped, grpc_completion_queue *queue, return call_object; } +/* Creates and returns a PHP array object with the data in a + * grpc_metadata_array. Returns NULL on failure */ zval *grpc_parse_metadata_array(grpc_metadata_array *metadata_array) { int count = metadata_array->count; grpc_metadata *elements = metadata_array->metadata; @@ -155,6 +157,8 @@ zval *grpc_parse_metadata_array(grpc_metadata_array *metadata_array) { return array; } +/* Populates a grpc_metadata_array with the data in a PHP array object. + Returns true on success and false on failure */ bool create_metadata_array(zval *array, grpc_metadata_array *metadata) { zval **inner_array; zval **value;