]> git.street.me.uk Git - andy/viking.git/blobdiff - src/download.h
Add referer to DownloadOptions
[andy/viking.git] / src / download.h
index 5439a4ce4124750df3afc5019182beac765db068..d31776ae63c15aa249455b6ed694926e6bcdadc5 100644 (file)
 #define _VIKING_DOWNLOAD_H
 
 typedef struct {
 #define _VIKING_DOWNLOAD_H
 
 typedef struct {
+  /**
+   * Indicates if we should send hostname on the GET request.
+   * (see http.c)
+   */
   int sendhostname;
   int sendhostname;
+  /**
+   * The REFERER string to use.
+   * Could be NULL.
+   */
+  gchar *referer;
 } DownloadOptions;
 
 /* TODO: convert to Glib */
 } DownloadOptions;
 
 /* TODO: convert to Glib */