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.
 All Data Structures Files Functions Variables Typedefs
php_persistent_handle_factory Struct Reference

Definition of a persistent handle factory. More...

#include <php_raphf.h>

Collaboration diagram for php_persistent_handle_factory:

Data Fields

php_persistent_handle_provider_tprovider
 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...
 

Detailed Description

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().

Field Documentation

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.


The documentation for this struct was generated from the following file: