X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_options.c;h=1ba987a2b0c12b864c5f244e874029ea8614593f;hp=07a5d7bb28f1ffa1dc7b982ce2bfd73086378837;hb=791511f3bc18cdc68b3f27b43d9396cf56d99e5a;hpb=0b83632b2b0a03eeca090f993259ccd95ab646fb diff --git a/php_http_options.c b/php_http_options.c index 07a5d7b..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-2013, 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;