Commit 533772ff authored by brendan's avatar brendan

httpp goes through the rinse cycle

svn path=/trunk/httpp/; revision=5085
parent a9e67108
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment