X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_version.h;fp=src%2Fphp_http_version.h;h=6f51a47074946c16649947e04d486645359e679f;hb=57e944b102006abfa4005337b0ac5901425f4289;hp=0000000000000000000000000000000000000000;hpb=95433e1b55cd256df3fe3b6240ded359e8ba09a6;p=m6w6%2Fext-http diff --git a/src/php_http_version.h b/src/php_http_version.h new file mode 100644 index 0000000..6f51a47 --- /dev/null +++ b/src/php_http_version.h @@ -0,0 +1,38 @@ +/* + +--------------------------------------------------------------------+ + | 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-2014, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +#ifndef PHP_HTTP_VERSION_H +#define PHP_HTTP_VERSION_H + +typedef struct php_http_version { + unsigned major; + unsigned minor; +} php_http_version_t; + +PHP_HTTP_API php_http_version_t *php_http_version_init(php_http_version_t *v, unsigned major, unsigned minor); +PHP_HTTP_API php_http_version_t *php_http_version_parse(php_http_version_t *v, const char *str); +PHP_HTTP_API void php_http_version_to_string(php_http_version_t *v, char **str, size_t *len, const char *pre, const char *post); +PHP_HTTP_API void php_http_version_dtor(php_http_version_t *v); +PHP_HTTP_API void php_http_version_free(php_http_version_t **v); + +#endif /* PHP_HTTP_VERSION_H */ + + +/* + * 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 + */ +