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-2011, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
13 #ifndef PHP_HTTP_PARAMS_H
14 #define PHP_HTTP_PARAMS_H
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
22 typedef void (*php_http_params_parse_func_t
)(void *cb_arg
, const char *key
, int keylen
, const char *val
, int vallen TSRMLS_DC
);
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
);
34 * vim600: noet sw=4 ts=4 fdm=marker
35 * vim<600: noet sw=4 ts=4