X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_raphf.h;h=2c356ec940ff83234165734615543cee96c67af3;hb=a8ac64570a2287dec91756bdfef3ee351842727d;hp=5f0d8ecdd59539b181cdc0cc8fae1f6aa8c55e9d;hpb=49fb7f8c3cbeb940efe03e2b20e00651d9291848;p=m6w6%2Fext-raphf diff --git a/php_raphf.h b/php_raphf.h index 5f0d8ec..2c356ec 100644 --- a/php_raphf.h +++ b/php_raphf.h @@ -16,7 +16,7 @@ extern zend_module_entry raphf_module_entry; #define phpext_raphf_ptr &raphf_module_entry -#define PHP_RAPHF_VERSION "1.0.0" +#define PHP_RAPHF_VERSION "0.1.0" #ifdef PHP_WIN32 # define PHP_RAPHF_API __declspec(dllexport) @@ -85,18 +85,14 @@ struct php_persistent_handle_factory { } ident; unsigned free_on_abandon:1; -} php_persistent_handle_factory_t; +}; struct php_persistent_handle_globals { ulong limit; - struct { - ulong h; - char *s; - size_t l; - } ident; + HashTable hash; }; -PHP_RAPHF_API int /* SUCCESS|FAILURE */ php_persistent_handle_provide(const char *name_str, size_t name_len, php_resource_factory_ops_t *fops, void *data, void (*dtor)(void *)); +PHP_RAPHF_API int /* SUCCESS|FAILURE */ php_persistent_handle_provide(const char *name_str, size_t name_len, php_resource_factory_ops_t *fops, void *data, void (*dtor)(void *) TSRMLS_DC); PHP_RAPHF_API php_persistent_handle_factory_t *php_persistent_handle_concede(php_persistent_handle_factory_t *a, const char *name_str, size_t name_len, const char *ident_str, size_t ident_len,php_persistent_handle_wakeup_t wakeup, php_persistent_handle_retire_t retire TSRMLS_DC); PHP_RAPHF_API void php_persistent_handle_abandon(php_persistent_handle_factory_t *a); PHP_RAPHF_API void *php_persistent_handle_acquire(php_persistent_handle_factory_t *a, void *init_arg TSRMLS_DC);