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-2010, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
13 /* $Id: php_http_api.h 298891 2010-05-03 08:26:38Z mike $ */
15 #ifndef PHP_HTTP_PARAMS_H
16 #define PHP_HTTP_PARAMS_H
18 #define PHP_HTTP_PARAMS_ALLOW_COMMA 0x01
19 #define PHP_HTTP_PARAMS_ALLOW_FAILURE 0x02
20 #define PHP_HTTP_PARAMS_RAISE_ERROR 0x04
21 #define PHP_HTTP_PARAMS_DEFAULT (PHP_HTTP_PARAMS_ALLOW_COMMA|PHP_HTTP_PARAMS_ALLOW_FAILURE|PHP_HTTP_PARAMS_RAISE_ERROR)
22 #define PHP_HTTP_PARAMS_COLON_SEPARATOR 0x10
24 typedef void (*php_http_params_parse_func_t
)(void *cb_arg
, const char *key
, int keylen
, const char *val
, int vallen TSRMLS_DC
);
26 PHP_HTTP_API
void php_http_params_parse_default_func(void *ht
, const char *key
, int keylen
, const char *val
, int vallen TSRMLS_DC
);
27 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
);
36 * vim600: noet sw=4 ts=4 fdm=marker
37 * vim<600: noet sw=4 ts=4