diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-02-23 00:54:29 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-02-23 00:54:29 +0000 |
commit | 6878eba2953bc2374425d5931b4c87d27aea213b (patch) | |
tree | ff171cc870b8db8c63da1ce3aad3e108c5ddc106 /desktop/download.h | |
parent | e8ce7bd953095f0120b6a04db424c51989e97572 (diff) | |
download | netsurf-6878eba2953bc2374425d5931b4c87d27aea213b.tar.gz netsurf-6878eba2953bc2374425d5931b4c87d27aea213b.tar.bz2 |
Consider filename in Content-Disposition header when downloading, or generate reasonably sane default if there isn't one.
svn path=/trunk/netsurf/; revision=11767
Diffstat (limited to 'desktop/download.h')
-rw-r--r-- | desktop/download.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/download.h b/desktop/download.h index 206253602..cbdf96718 100644 --- a/desktop/download.h +++ b/desktop/download.h @@ -87,4 +87,12 @@ const char *download_context_get_mime_type(const download_context *ctx); */ unsigned long download_context_get_total_length(const download_context *ctx); +/** + * Retrieve the filename for a download + * + * \param ctx Context to retrieve filename from + * \return Filename string + */ +const char *download_context_get_filename(const download_context *ctx); + #endif |