aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-03-24 09:43:41 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-03-24 09:43:41 -0700
commit9c4425a4d5302f567075ca08a18c7bfbcfde6458 (patch)
tree86b9c7ee38da24d943e018c8a8265eddcb062daf /src
parent892c3cac050b2bbaae02891d284f50ea4863e4d8 (diff)
Added comments to new functions in call.c
Diffstat (limited to 'src')
-rw-r--r--src/php/ext/grpc/call.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/php/ext/grpc/call.c b/src/php/ext/grpc/call.c
index 08f4f2b1eb..d0e324e2cc 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;