1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-16 06:15:24 +00:00

httpp goes through the rinse cycle

svn path=/trunk/httpp/; revision=5085
This commit is contained in:
brendan 2003-07-07 01:49:27 +00:00
parent a9e671088c
commit 533772ff76
2 changed files with 18 additions and 4 deletions

View File

@ -31,8 +31,8 @@
static char *_lowercase(char *str);
/* for avl trees */
int _compare_vars(void *compare_arg, void *a, void *b);
int _free_vars(void *key);
static int _compare_vars(void *compare_arg, void *a, void *b);
static int _free_vars(void *key);
http_parser_t *httpp_create_parser(void)
{
@ -553,7 +553,7 @@ static char *_lowercase(char *str)
return str;
}
int _compare_vars(void *compare_arg, void *a, void *b)
static int _compare_vars(void *compare_arg, void *a, void *b)
{
http_var_t *vara, *varb;
@ -563,7 +563,7 @@ int _compare_vars(void *compare_arg, void *a, void *b)
return strcmp(vara->name, varb->name);
}
int _free_vars(void *key)
static int _free_vars(void *key)
{
http_var_t *var;

View File

@ -38,6 +38,20 @@ typedef struct http_parser_tag {
avl_tree *queryvars;
} http_parser_t;
#ifdef _mangle
# define httpp_create_parser _mangle(httpp_create_parser)
# define httpp_initialize _mangle(httpp_initialize)
# define httpp_parse _mangle(httpp_parse)
# define httpp_parse_icy _mangle(httpp_parse_icy)
# define httpp_parse_response _mangle(httpp_parse_response)
# define httpp_setvar _mangle(httpp_setvar)
# define httpp_getvar _mangle(httpp_getvar)
# define httpp_set_query_param _mangle(httpp_set_query_param)
# define httpp_get_query_param _mangle(httpp_get_query_param)
# define httpp_destroy _mangle(httpp_destroy)
# define httpp_clear _mangle(httpp_clear)
#endif
http_parser_t *httpp_create_parser(void);
void httpp_initialize(http_parser_t *parser, http_varlist_t *defaults);
int httpp_parse(http_parser_t *parser, char *http_data, unsigned long len);