diff options
Diffstat (limited to 'download.h')
-rw-r--r-- | download.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -33,9 +33,19 @@ #include <kcgi.h> +#include "file.h" + #define DOWNLOAD_URL "download" /* + * Build the URL to download a file and assigns it to the file's action_url. + * All parameters are required + * Returns the length of the created URL, or 0 in case of failure. + */ +size_t +build_download_url(struct kreq *, struct file *); + +/* * Return a requested file. * The KCGI request is required. */ |