2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2014, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
13 #ifndef PHP_HTTP_VERSION_H
14 #define PHP_HTTP_VERSION_H
16 typedef struct php_http_version
{
21 PHP_HTTP_API php_http_version_t
*php_http_version_init(php_http_version_t
*v
, unsigned major
, unsigned minor
);
22 PHP_HTTP_API php_http_version_t
*php_http_version_parse(php_http_version_t
*v
, const char *str
);
23 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
);
24 PHP_HTTP_API
void php_http_version_dtor(php_http_version_t
*v
);
25 PHP_HTTP_API
void php_http_version_free(php_http_version_t
**v
);
27 #endif /* PHP_HTTP_VERSION_H */
35 * vim600: noet sw=4 ts=4 fdm=marker
36 * vim<600: noet sw=4 ts=4