summaryrefslogtreecommitdiff
path: root/desktop/download.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-08 17:54:44 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-08 17:54:44 +0100
commitcd7f1eceea81a69e5b4dcdef90d45aab44f8a11f (patch)
treeaa9ac5ffab173f59b590b39f665356e7127e02bf /desktop/download.h
parent096bd47ab0018e7b9c3affd58b6134463e2aaa65 (diff)
downloadnetsurf-cd7f1eceea81a69e5b4dcdef90d45aab44f8a11f.tar.gz
netsurf-cd7f1eceea81a69e5b4dcdef90d45aab44f8a11f.tar.bz2
make download_context_get_url() return an nsurl and adapt callers to cope
Diffstat (limited to 'desktop/download.h')
-rw-r--r--desktop/download.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/download.h b/desktop/download.h
index f53f38b95..4084fa148 100644
--- a/desktop/download.h
+++ b/desktop/download.h
@@ -67,10 +67,14 @@ void download_context_abort(download_context *ctx);
/**
* Retrieve the URL for a download
*
- * \param ctx Context to retrieve URL from
- * \return URL string
+ * The caller is borrowing the url reference from the underlying low
+ * level cache object. If it is used beyond the immediate scope of the
+ * caller an additional reference should be made.
+ *
+ * \param ctx Context to retrieve URL from
+ * \return URL object
*/
-const char *download_context_get_url(const download_context *ctx);
+nsurl *download_context_get_url(const download_context *ctx);
/**
* Retrieve the MIME type for a download