X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_options.c;h=1ba987a2b0c12b864c5f244e874029ea8614593f;hp=bbc10c9152cdfe571692747e0d43d57d85502a75;hb=046973e332c1475f9bf7717af9d33a75283deb37;hpb=7ba90c6d9d6843549fb9227d1a7aa05033e60772 diff --git a/php_http_options.c b/php_http_options.c index bbc10c9..1ba987a 100644 --- a/php_http_options.c +++ b/php_http_options.c @@ -6,13 +6,13 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2011, Michael Wallner | + | Copyright (c) 2004-2014, Michael Wallner | +--------------------------------------------------------------------+ */ #include "php_http_api.h" -PHP_HTTP_API php_http_options_t *php_http_options_init(php_http_options_t *registry, zend_bool persistent) +php_http_options_t *php_http_options_init(php_http_options_t *registry, zend_bool persistent) { if (!registry) { registry = pecalloc(1, sizeof(*registry), persistent); @@ -26,7 +26,7 @@ PHP_HTTP_API php_http_options_t *php_http_options_init(php_http_options_t *regis return registry; } -PHP_HTTP_API STATUS php_http_options_apply(php_http_options_t *registry, HashTable *options, void *userdata) +STATUS php_http_options_apply(php_http_options_t *registry, HashTable *options, void *userdata) { HashPosition pos; zval *val; @@ -47,12 +47,12 @@ PHP_HTTP_API STATUS php_http_options_apply(php_http_options_t *registry, HashTab return SUCCESS; } -PHP_HTTP_API void php_http_options_dtor(php_http_options_t *registry) +void php_http_options_dtor(php_http_options_t *registry) { zend_hash_destroy(®istry->options); } -PHP_HTTP_API void php_http_options_free(php_http_options_t **registry) +void php_http_options_free(php_http_options_t **registry) { if (*registry) { php_http_options_dtor(*registry); @@ -61,7 +61,7 @@ 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_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_option_t opt, *dst = NULL; @@ -102,7 +102,7 @@ PHP_HTTP_API php_http_option_t *php_http_option_register(php_http_options_t *reg return dst; } -PHP_HTTP_API zval *php_http_option_get(php_http_option_t *opt, HashTable *options, void *userdata) +zval *php_http_option_get(php_http_option_t *opt, HashTable *options, void *userdata) { if (options) { zval **zoption;