diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-08-26 15:45:59 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-08-26 15:45:59 +0100 |
commit | 556f8d0d0799bd05f38cfb454fdb80de85dd2f7c (patch) | |
tree | f36b5415d765427ead674dae5d4d61c077b3a638 /src/input/http_helper.h | |
parent | 8e334af88b6ac33adc19f6f274595b7e239684f5 (diff) | |
download | xine-lib-556f8d0d0799bd05f38cfb454fdb80de85dd2f7c.tar.gz xine-lib-556f8d0d0799bd05f38cfb454fdb80de85dd2f7c.tar.bz2 |
Add a user agent & protocol hack to allow viewing of Apple film trailers.
Diffstat (limited to 'src/input/http_helper.h')
-rw-r--r-- | src/input/http_helper.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/input/http_helper.h b/src/input/http_helper.h index 3ce3f2b7c..68299a2ea 100644 --- a/src/input/http_helper.h +++ b/src/input/http_helper.h @@ -24,6 +24,16 @@ #define HTTP_HELPER_H /* + * user agent finder, using modified protcol names + * {proto}://... + * e.g. "qthttp://example.com/foo.mov" → "QuickTime" + * + * return: + * NULL or user agent prefix + */ +const char *_x_url_user_agent (const char *url); + +/* * url parser * {proto}://{user}:{password}@{host}:{port}{uri} * {proto}://{user}:{password}@{[host]}:{port}{uri} @@ -33,7 +43,8 @@ * 1 valid url */ int _x_parse_url (char *url, char **proto, char** host, int *port, - char **user, char **password, char **uri); + char **user, char **password, char **uri, + const char **user_agent); /* * canonicalise url, given base |