mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-06-30 22:18:19 -04:00
Indentation again, don't mind me
svn path=/trunk/httpp/; revision=4252
This commit is contained in:
parent
3a0b895baa
commit
d9682b5dec
@ -469,7 +469,7 @@ char *httpp_get_query_param(http_parser_t *parser, char *name)
|
|||||||
http_var_t *found;
|
http_var_t *found;
|
||||||
|
|
||||||
var.name = name;
|
var.name = name;
|
||||||
var.value = NULL;
|
var.value = NULL;
|
||||||
|
|
||||||
if (avl_get_by_key(parser->queryvars, (void *)&var, (void **)&found) == 0)
|
if (avl_get_by_key(parser->queryvars, (void *)&var, (void **)&found) == 0)
|
||||||
return found->value;
|
return found->value;
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
#define HTTPP_VAR_ERROR_CODE "__errorcode"
|
#define HTTPP_VAR_ERROR_CODE "__errorcode"
|
||||||
|
|
||||||
typedef enum httpp_request_type_tag {
|
typedef enum httpp_request_type_tag {
|
||||||
httpp_req_none, httpp_req_get, httpp_req_post, httpp_req_head, httpp_req_source, httpp_req_play, httpp_req_stats, httpp_req_unknown
|
httpp_req_none, httpp_req_get, httpp_req_post, httpp_req_head,
|
||||||
|
httpp_req_source, httpp_req_play, httpp_req_stats, httpp_req_unknown
|
||||||
} httpp_request_type_e;
|
} httpp_request_type_e;
|
||||||
|
|
||||||
typedef struct http_var_tag {
|
typedef struct http_var_tag {
|
||||||
@ -33,7 +34,7 @@ typedef struct http_parser_tag {
|
|||||||
httpp_request_type_e req_type;
|
httpp_request_type_e req_type;
|
||||||
char *uri;
|
char *uri;
|
||||||
avl_tree *vars;
|
avl_tree *vars;
|
||||||
avl_tree *queryvars;
|
avl_tree *queryvars;
|
||||||
} http_parser_t;
|
} http_parser_t;
|
||||||
|
|
||||||
http_parser_t *httpp_create_parser(void);
|
http_parser_t *httpp_create_parser(void);
|
||||||
@ -48,6 +49,3 @@ void httpp_destroy(http_parser_t *parser);
|
|||||||
void httpp_clear(http_parser_t *parser);
|
void httpp_clear(http_parser_t *parser);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user