+typedef struct php_persistent_handle_list {
+ HashTable free;
+ ulong used;
+} php_persistent_handle_list_t;
+
+typedef struct php_persistent_handle_provider {
+ php_persistent_handle_list_t list; /* "ident" => array(handles) entries */
+ php_resource_factory_t rf;
+} php_persistent_handle_provider_t;
+
+typedef struct php_persistent_handle_factory php_persistent_handle_factory_t;
+
+typedef void (*php_persistent_handle_wakeup_t)(php_persistent_handle_factory_t *f, void **handle TSRMLS_DC);
+typedef void (*php_persistent_handle_retire_t)(php_persistent_handle_factory_t *f, void **handle TSRMLS_DC);
+
+struct php_persistent_handle_factory {
+ php_persistent_handle_provider_t *provider;
+
+ php_persistent_handle_wakeup_t wakeup;
+ php_persistent_handle_retire_t retire;