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.
|
Definition of a persistent handle factory. More...
#include <php_raphf.h>
Data Fields | |
php_persistent_handle_provider_t * | provider |
The persistent handle provider. More... | |
php_persistent_handle_wakeup_t | wakeup |
The persistent handle wakeup routine; may be NULL. More... | |
php_persistent_handle_retire_t | retire |
The persistent handle retire routine; may be NULL. More... | |
struct { | |
char * str | |
ident string More... | |
size_t len | |
ident length More... | |
} | ident |
The ident for which this factory manages resources. More... | |
unsigned | free_on_abandon:1 |
Whether it has to be free'd on php_persistent_handle_abandon() More... | |
Definition of a persistent handle factory.
php_persistent_handle_concede() will return a pointer to a php_persistent_handle_factory if a provider for the name_str has been registered with php_persistent_handle_provide().
unsigned php_persistent_handle_factory::free_on_abandon |
Whether it has to be free'd on php_persistent_handle_abandon()
struct { ... } php_persistent_handle_factory::ident |
The ident for which this factory manages resources.
size_t php_persistent_handle_factory::len |
ident length
php_persistent_handle_provider_t* php_persistent_handle_factory::provider |
The persistent handle provider.
php_persistent_handle_retire_t php_persistent_handle_factory::retire |
The persistent handle retire routine; may be NULL.
char* php_persistent_handle_factory::str |
ident string
php_persistent_handle_wakeup_t php_persistent_handle_factory::wakeup |
The persistent handle wakeup routine; may be NULL.