search for: guestfs_return_str

Displaying 1 result from an estimated 1 matches for "guestfs_return_str".

2016 Apr 11
1
[PATCH] RFC: php: support PHP 7
...1 file changed, 74 insertions(+), 22 deletions(-) diff --git a/generator/php.ml b/generator/php.ml index 926ac4f..5f06c0f 100644 --- a/generator/php.ml +++ b/generator/php.ml @@ -93,6 +93,32 @@ and generate_php_c () = static int res_guestfs_h; +#if ZEND_MODULE_API_NO >= 20151012 +# define GUESTFS_RETURN_STRING(x, duplicate) \\ + do { if (duplicate) RETURN_STRING(x) else { RETVAL_STRING(x); efree ((char *)x); return; } } while (0) +# define guestfs_add_assoc_string(arg, key, str, dup) \\ + add_assoc_string(arg, key, str) +# define guestfs_add_assoc_stringl(arg, key, str, len, dup) \\ + add_ass...