X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_version.c;h=41c849925bbe98062ba2c0d86eefa7047578ec7b;hp=8c1637c122002709b6c707a477062bc789b1aef4;hb=2a501676c41f8b78392fdf4cd33e9eeaf46736f4;hpb=d3485e3b28336153dca690e872ffe1ddc60fedd2 diff --git a/php_http_version.c b/php_http_version.c index 8c1637c..41c8499 100644 --- a/php_http_version.c +++ b/php_http_version.c @@ -1,4 +1,16 @@ -#include "php_http.h" +/* + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2011, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +#include "php_http_api.h" PHP_HTTP_API php_http_version_t *php_http_version_init(php_http_version_t *v, unsigned major, unsigned minor TSRMLS_DC) { @@ -35,15 +47,6 @@ PHP_HTTP_API void php_http_version_to_string(php_http_version_t *v, char **str, *len = spprintf(str, 0, "%s%u.%u%s", pre ? pre : "", v->major, v->minor, post ? post : ""); } -PHP_HTTP_API void php_http_version_to_struct(php_http_version_t *v, HashTable *strct TSRMLS_DC) -{ - zval tmp; - - INIT_PZVAL_ARRAY(&tmp, strct); - add_assoc_long(&tmp, "major", v->major); - add_assoc_long(&tmp, "minor", v->minor); -} - PHP_HTTP_API void php_http_version_dtor(php_http_version_t *v) { (void) v; @@ -57,3 +60,13 @@ PHP_HTTP_API void php_http_version_free(php_http_version_t **v) *v = NULL; } } + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ +