build and file maintenance
[m6w6/ext-http] / php_http_params.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-2011, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_PARAMS_H
14 #define PHP_HTTP_PARAMS_H
15
16 #define PHP_HTTP_PARAMS_ALLOW_COMMA 0x01
17 #define PHP_HTTP_PARAMS_ALLOW_FAILURE 0x02
18 #define PHP_HTTP_PARAMS_RAISE_ERROR 0x04
19 #define PHP_HTTP_PARAMS_DEFAULT (PHP_HTTP_PARAMS_ALLOW_COMMA|PHP_HTTP_PARAMS_ALLOW_FAILURE|PHP_HTTP_PARAMS_RAISE_ERROR)
20 #define PHP_HTTP_PARAMS_COLON_SEPARATOR 0x10
21
22 typedef void (*php_http_params_parse_func_t)(void *cb_arg, const char *key, int keylen, const char *val, int vallen TSRMLS_DC);
23
24 PHP_HTTP_API void php_http_params_parse_default_func(void *ht, const char *key, int keylen, const char *val, int vallen TSRMLS_DC);
25 PHP_HTTP_API STATUS php_http_params_parse(const char *params, int flags, php_http_params_parse_func_t cb, void *cb_arg TSRMLS_DC);
26
27 #endif
28
29 /*
30 * Local variables:
31 * tab-width: 4
32 * c-basic-offset: 4
33 * End:
34 * vim600: noet sw=4 ts=4 fdm=marker
35 * vim<600: noet sw=4 ts=4
36 */
37