summaryrefslogtreecommitdiff
path: root/Zend/zend_objects_API.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2004-02-04 09:56:20 +0000
committerZeev Suraski <zeev@php.net>2004-02-04 09:56:20 +0000
commitf5f7d569a0dc42d4469f4091ecf7d71a7152efc4 (patch)
treeac12861e33048635195e15c600bc4f456ff9fa65 /Zend/zend_objects_API.h
parent24eb1f6eb26417bfbaa300fdcd639ab0b4e1cc0c (diff)
downloadphp-git-f5f7d569a0dc42d4469f4091ecf7d71a7152efc4.tar.gz
Change destructor implementation (details will follow on internals@)
Diffstat (limited to 'Zend/zend_objects_API.h')
-rw-r--r--Zend/zend_objects_API.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Zend/zend_objects_API.h b/Zend/zend_objects_API.h
index efad9b122a..3b23d6bb54 100644
--- a/Zend/zend_objects_API.h
+++ b/Zend/zend_objects_API.h
@@ -25,6 +25,8 @@
#include "zend.h"
typedef void (*zend_objects_store_dtor_t)(void *object, zend_object_handle handle TSRMLS_DC);
+typedef void (*zend_objects_free_object_storage_t)(zend_object *object TSRMLS_DC);
+
typedef void (*zend_objects_store_clone_t)(void *object, void **object_clone TSRMLS_DC);
typedef struct _zend_object_store_bucket {
@@ -33,6 +35,7 @@ typedef struct _zend_object_store_bucket {
struct _store_object {
void *object;
zend_objects_store_dtor_t dtor;
+ zend_objects_free_object_storage_t free_storage;
zend_objects_store_clone_t clone;
zend_uint refcount;
} obj;
@@ -55,14 +58,15 @@ ZEND_API void zend_objects_store_call_destructors(zend_objects_store *objects TS
ZEND_API void zend_objects_store_destroy(zend_objects_store *objects);
/* Store API functions */
-ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_store_clone_t clone TSRMLS_DC);
+ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_store_dtor_t dtor, zend_objects_free_object_storage_t storage, zend_objects_store_clone_t clone TSRMLS_DC);
ZEND_API void zend_objects_store_add_ref(zval *object TSRMLS_DC);
ZEND_API void zend_objects_store_del_ref(zval *object TSRMLS_DC);
ZEND_API void zend_objects_store_delete_obj(zval *object TSRMLS_DC);
ZEND_API zend_object_value zend_objects_store_clone_obj(zval *object TSRMLS_DC);
ZEND_API void *zend_object_store_get_object(zval *object TSRMLS_DC);
-
+ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects TSRMLS_DC);
+
#define ZEND_OBJECTS_STORE_HANDLERS zend_objects_store_add_ref, zend_objects_store_del_ref, zend_objects_store_clone_obj
ZEND_API zval **zend_object_create_proxy(zval *object, zval *member TSRMLS_DC);