merge php_http.h with touch
[m6w6/ext-http] / php_http_version.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
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 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_VERSION_H
14 #define PHP_HTTP_VERSION_H
15
16 typedef struct php_http_version {
17 unsigned major;
18 unsigned minor;
19 } php_http_version_t;
20
21 PHP_HTTP_API php_http_version_t *php_http_version_init(php_http_version_t *v, unsigned major, unsigned minor TSRMLS_DC);
22 PHP_HTTP_API php_http_version_t *php_http_version_parse(php_http_version_t *v, const char *str TSRMLS_DC);
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 TSRMLS_DC);
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);
26
27 #endif /* PHP_HTTP_VERSION_H */
28
29
30 /*
31 * Local variables:
32 * tab-width: 4
33 * c-basic-offset: 4
34 * End:
35 * vim600: noet sw=4 ts=4 fdm=marker
36 * vim<600: noet sw=4 ts=4
37 */
38