#ifndef _VIKING_DOWNLOAD_H
#define _VIKING_DOWNLOAD_H
+
+typedef struct {
+ /**
+ * Indicates if we should send hostname on the GET request.
+ * (see http.c)
+ */
+ int sendhostname;
+ /**
+ * The REFERER string to use.
+ * Could be NULL.
+ */
+ gchar *referer;
+} DownloadOptions;
+
/* TODO: convert to Glib */
-int a_http_download_get_url ( const char *hostname, const char *uri, const char *fn );
-int a_http_download_get_url_nohostname ( const char *hostname, const char *uri, const char *fn );
+int a_http_download_get_url ( const char *hostname, const char *uri, const char *fn, DownloadOptions *opt );
#endif