diff options
author | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-20 22:14:16 +0000 |
---|---|---|
committer | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-20 22:14:16 +0000 |
commit | 9ea246653a396afc3d52bf6a494fdee70d89c99f (patch) | |
tree | 7ff4a4b7f927a18412217f1a3731414020aec88c /libmpdemux/http.h | |
parent | ba1e0116859530aa9f683eccb9ca765d9c8cf8dc (diff) | |
download | mpv-9ea246653a396afc3d52bf6a494fdee70d89c99f.tar.bz2 mpv-9ea246653a396afc3d52bf6a494fdee70d89c99f.tar.xz |
Removed the field number limitation.
We can add as much field as we want.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3040 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/http.h')
-rw-r--r-- | libmpdemux/http.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libmpdemux/http.h b/libmpdemux/http.h index 7f07264bbc..ebd0d9f8cb 100644 --- a/libmpdemux/http.h +++ b/libmpdemux/http.h @@ -7,7 +7,10 @@ #ifndef __HTTP_H #define __HTTP_H -#define HTTP_FIELD_MAX 20 +typedef struct HTTP_field_type { + char *field_name; + struct HTTP_field_type *next; +} HTTP_field_t; typedef struct { char *protocol; @@ -16,10 +19,13 @@ typedef struct { int status_code; char *reason_phrase; int http_minor_version; - char *fields[HTTP_FIELD_MAX]; + // Field variables + HTTP_field_t *first_field; + HTTP_field_t *last_field; int field_nb; char *field_search; - int search_pos; + HTTP_field_t *field_search_pos; + // Body varibles char *body; int body_size; char *buffer; @@ -35,7 +41,7 @@ int http_is_header_entire( HTTP_header_t *http_hdr ); char* http_build_request( HTTP_header_t *http_hdr ); char* http_get_field( HTTP_header_t *http_hdr, const char *field_name ); char* http_get_next_field( HTTP_header_t *http_hdr ); -void http_set_field( HTTP_header_t *http_hdr, const char *field ); +void http_set_field( HTTP_header_t *http_hdr, const char *field_name ); void http_set_method( HTTP_header_t *http_hdr, const char *method ); void http_set_uri( HTTP_header_t *http_hdr, const char *uri ); |