X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_options.h;h=fd72ebd0eb5da31fa6a1a998d1acc1ecb41852f9;hp=2475383c3800f303e026c35b6ca230734c9cd214;hb=640b762aa5a5fdf571e44f7a66725c097b7dc0f1;hpb=bdd6edb59194cda9e5fcb393c48ab4230fceb32a diff --git a/src/php_http_options.h b/src/php_http_options.h index 2475383..fd72ebd 100644 --- a/src/php_http_options.h +++ b/src/php_http_options.h @@ -31,18 +31,14 @@ struct php_http_options { struct php_http_option { php_http_options_t suboptions; - struct { - const char *s; - size_t l; - ulong h; - } name; - - ulong option; + zend_string *name; + unsigned long option; zend_uchar type; unsigned flags; zval defval; php_http_option_set_callback_t setter; + unsigned persistent:1; }; PHP_HTTP_API php_http_options_t *php_http_options_init(php_http_options_t *registry, zend_bool persistent); @@ -50,7 +46,7 @@ PHP_HTTP_API ZEND_RESULT_CODE php_http_options_apply(php_http_options_t *registr PHP_HTTP_API void php_http_options_dtor(php_http_options_t *registry); PHP_HTTP_API void php_http_options_free(php_http_options_t **registry); -PHP_HTTP_API php_http_option_t *php_http_option_register(php_http_options_t *registry, const char *name_str, size_t name_len, ulong option, zend_uchar type); +PHP_HTTP_API php_http_option_t *php_http_option_register(php_http_options_t *registry, const char *name_str, size_t name_len, unsigned long option, zend_uchar type); PHP_HTTP_API zval *php_http_option_get(php_http_option_t *opt, HashTable *options, void *userdata); #endif /* PHP_HTTP_OPTIONS_H */