summaryrefslogtreecommitdiff
path: root/src/input/http_helper.h
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2009-10-10 14:50:31 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2009-10-10 14:50:31 +0100
commitac4a311c81c5d01cfbc332d248907bb833ecfed3 (patch)
tree1019df995b3db215778237b5d7cc4cace176eb99 /src/input/http_helper.h
parentc579d6f6fb0fd0075faf02a80be1a24f7f75071a (diff)
parent556f8d0d0799bd05f38cfb454fdb80de85dd2f7c (diff)
downloadxine-lib-ac4a311c81c5d01cfbc332d248907bb833ecfed3.tar.gz
xine-lib-ac4a311c81c5d01cfbc332d248907bb833ecfed3.tar.bz2
Merge from 1.1.
Diffstat (limited to 'src/input/http_helper.h')
-rw-r--r--src/input/http_helper.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/input/http_helper.h b/src/input/http_helper.h
index 9baa05235..7ca3ac150 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