summaryrefslogtreecommitdiff
path: root/Zend/zend_llist.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-04-29 10:20:40 +0000
committerZeev Suraski <zeev@php.net>2000-04-29 10:20:40 +0000
commit8aac6e7d3d94b2a180de0c13ea4fa6aee1a02605 (patch)
tree4480c65a36f915e79f77b537e64796ae3eda0656 /Zend/zend_llist.h
parent0118f62195a1a5a4c0c4ce0313e9deb201dfaa15 (diff)
downloadphp-git-8aac6e7d3d94b2a180de0c13ea4fa6aee1a02605.tar.gz
- Add zend_llist_apply_with_arguments()
- Add a message handler to the extensions
Diffstat (limited to 'Zend/zend_llist.h')
-rw-r--r--Zend/zend_llist.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zend/zend_llist.h b/Zend/zend_llist.h
index 805859a8ff..0ca19b7abe 100644
--- a/Zend/zend_llist.h
+++ b/Zend/zend_llist.h
@@ -38,7 +38,10 @@ typedef struct _zend_llist {
zend_llist_element *traverse_ptr;
} zend_llist;
-typedef int (*llist_compare_func_t) (const zend_llist_element *, const zend_llist_element *);
+typedef int (*llist_compare_func_t)(const zend_llist_element *, const zend_llist_element *);
+typedef void(*llist_apply_with_arg_func_t)(void *data, void *arg);
+typedef void(*llist_apply_with_args_func_t)(void *data, int num_args, va_list args);
+
typedef zend_llist_element* zend_llist_position;
BEGIN_EXTERN_C()
@@ -52,6 +55,7 @@ ZEND_API void zend_llist_remove_tail(zend_llist *l);
ZEND_API void zend_llist_copy(zend_llist *dst, zend_llist *src);
ZEND_API void zend_llist_apply(zend_llist *l, void (*func)(void *data));
ZEND_API void zend_llist_apply_with_argument(zend_llist *l, void (*func)(void *data, void *arg), void *arg);
+ZEND_API void zend_llist_apply_with_arguments(zend_llist *l, llist_apply_with_args_func_t func, int num_args, ...);
ZEND_API int zend_llist_count(zend_llist *l);
ZEND_API void zend_llist_sort(zend_llist *l, llist_compare_func_t comp_func);