add CURLINFO_RETRY_AFTER
[m6w6/ext-http] / src / php_http_options.h
index 2475383c3800f303e026c35b6ca230734c9cd214..fd72ebd0eb5da31fa6a1a998d1acc1ecb41852f9 100644 (file)
@@ -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 */