]> git.street.me.uk Git - andy/viking.git/commitdiff
Add etag to struct DownloadFileOptions
authorJocelyn Jaubert <jocelyn.jaubert@gmail.com>
Sun, 21 Feb 2010 13:21:46 +0000 (14:21 +0100)
committerJocelyn Jaubert <jocelyn.jaubert@gmail.com>
Sun, 18 Jul 2010 17:32:45 +0000 (19:32 +0200)
src/download.c
src/download.h

index 957ba324eeceda2d3c40f8b5d54b9991c49bbc4f..3a7f447896f1151e968ef3885b09ddfacb1bcdec 100644 (file)
@@ -147,7 +147,7 @@ static int download( const char *hostname, const char *uri, const char *fn, Down
   int ret;
   gchar *tmpfilename;
   gboolean failure = FALSE;
-  DownloadFileOptions file_options = {0};
+  DownloadFileOptions file_options = {0, NULL, NULL};
 
   /* Check file */
   if ( g_file_test ( fn, G_FILE_TEST_EXISTS ) == TRUE )
index 810da554dce891d7aca61e01018b3d579f9b07e0..d846b17fdea9d548e6ad91f24d4994ebe6f051b2 100644 (file)
@@ -61,6 +61,14 @@ typedef struct {
    * Time sent to server on header If-Modified-Since
    */
   time_t time_condition;
+  /**
+   * Etag sent by server on previous download
+   */
+  char *etag;
+  /**
+   * Etag sent by server on this download
+   */
+  char *new_etag;
 
 } DownloadFileOptions;