Resource and persistent handle factory API
A facility to manage possibly persistent resources with a comprehensible API. Provides simliar functionality like the zend_list API, but with more flexiblity and freedom.
|
The resource factory. More...
#include <php_raphf_api.h>
Data Fields | |
php_resource_factory_ops_t | fops |
The resource ops. More... | |
void * | data |
Opaque user data. More... | |
void(* | dtor )(void *data) |
User data destructor. More... | |
unsigned | refcount |
How often this factory is referenced. More... | |
The resource factory.
void* php_resource_factory::data |
Opaque user data.
Referenced by php_resource_factory_dtor(), php_resource_factory_handle_copy(), php_resource_factory_handle_ctor(), php_resource_factory_handle_dtor(), and php_resource_factory_init().
void(* php_resource_factory::dtor) (void *data) |
User data destructor.
Referenced by php_resource_factory_dtor(), php_resource_factory_init(), and php_resource_factory_is_persistent().
php_resource_factory_ops_t php_resource_factory::fops |
The resource ops.
Referenced by php_resource_factory_handle_copy(), php_resource_factory_handle_ctor(), php_resource_factory_handle_dtor(), and php_resource_factory_init().
unsigned php_resource_factory::refcount |
How often this factory is referenced.
Referenced by php_resource_factory_addref(), php_resource_factory_dtor(), and php_resource_factory_init().