]> git.street.me.uk Git - andy/viking.git/blobdiff - src/http.h
Add referer to DownloadOptions
[andy/viking.git] / src / http.h
index 6544e745a7ea515aff475e09774802802fede7dd..d9aac4ab8578c35774726333f9db504588e1df1f 100644 (file)
 
 #ifndef _VIKING_HTTP_H
 #define _VIKING_HTTP_H
 
 #ifndef _VIKING_HTTP_H
 #define _VIKING_HTTP_H
-/* 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 );
+
+#include <stdio.h>
+
+#include "download.h"
+
+int http_download_get_url ( const char *hostname, const char *uri, FILE *f, int already_redirected, DownloadOptions *options );
 
 #endif
 
 #endif