summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-02-11 21:12:49 +0000
committerAndrei Zmievski <andrei@php.net>2000-02-11 21:12:49 +0000
commit94be61fde5f580b305537b54df17b0257ed1378f (patch)
treecd07bc8f22ae743f8306d5ee643d8f28c75129a1 /Zend/zend_hash.h
parent0f4b9aa812fbca823d53aee06452de300cf4b8cb (diff)
downloadphp-git-94be61fde5f580b305537b54df17b0257ed1378f.tar.gz
Made a couple of typedefs for zend_hash_apply_*() calls.
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 4ec035e26b..8b85a24b67 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -37,6 +37,8 @@
typedef int (*compare_func_t)(const void *, const void *);
typedef void (*sort_func_t)(void *, size_t, register size_t, compare_func_t);
typedef void (*dtor_func_t)(void *pDest);
+typedef int (*apply_func_t)(void *pDest);
+typedef int (*apply_func_arg_t)(void *pDest, void *argument);
typedef ulong (*hash_func_t)(char *arKey, uint nKeyLength);
typedef void (*copy_ctor_func_t)(void *pElement);
@@ -115,8 +117,8 @@ typedef struct _zend_hash_key {
int (*)(void *element, int num_args, va_list args, zend_hash_key *hash_key)
ZEND_API void zend_hash_graceful_destroy(HashTable *ht);
-ZEND_API void zend_hash_apply(HashTable *ht,int (*destruct)(void *));
-ZEND_API void zend_hash_apply_with_argument(HashTable *ht,int (*destruct)(void *, void *), void *);
+ZEND_API void zend_hash_apply(HashTable *ht, apply_func_t apply_func);
+ZEND_API void zend_hash_apply_with_argument(HashTable *ht, apply_func_arg_t apply_func, void *);
ZEND_API void zend_hash_apply_with_arguments(HashTable *ht, ZEND_STD_HASH_APPLIER, int, ...);