summaryrefslogtreecommitdiffstats
path: root/stream/url.h
diff options
context:
space:
mode:
authorcboesch <cboesch@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-02-26 11:57:18 +0000
committerwm4 <wm4@nowhere>2012-10-30 19:50:20 +0100
commit5a6dde54af8ce7208585a9e7ad0ef3ede26f24e0 (patch)
treea1ebd8ec492be4b2d809ab8b91bb5b6dd4b37b37 /stream/url.h
parenta0d7595206e8f536aaf14beb65015e50ceb4f32c (diff)
downloadmpv-5a6dde54af8ce7208585a9e7ad0ef3ede26f24e0.tar.bz2
mpv-5a6dde54af8ce7208585a9e7ad0ef3ede26f24e0.tar.xz
url: simplify
Use mp_asprintf in make_noauth_url and make_http_proxy_url. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32971 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: cboesch Conflicts: stream/url.c Note: the mp_asprintf() function was introduced in r32970, and put into its own files. We just put that directly into url.c, as we use talloc_asprintf() in general, and mp_asprintf() is for url.c code only. (Making url.c use talloc would probably result in a big mess.) Make proxy and url parameter const in get_noauth_url and get_http_proxy_url. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32972 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: cboesch
Diffstat (limited to 'stream/url.h')
-rw-r--r--stream/url.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/url.h b/stream/url.h
index b75978af2c..5954367c8a 100644
--- a/stream/url.h
+++ b/stream/url.h
@@ -38,7 +38,7 @@ typedef struct {
URL_t *url_redirect(URL_t **url, const char *redir);
-int make_http_proxy_url(URL_t *proxy, const char *host_url, char *dst, int dst_size);
+char *get_http_proxy_url(const URL_t *proxy, const char *host_url);
URL_t* url_new(const char* url);
void url_free(URL_t* url);