X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fdata.h;h=dacde3bc2c877aff10268f082691d1f28c1f5def;hp=b0ecf61e81cc847da742252108f8aae8859ba566;hb=5ffc3c31ece77d1debfc619a1e5817b7398209e8;hpb=678a6fa08ee7cdc98a631b9b6a6fef87be63deab diff --git a/src/data.h b/src/data.h index b0ecf61..dacde3b 100644 --- a/src/data.h +++ b/src/data.h @@ -19,15 +19,15 @@ #define __DATA_H__ typedef enum { - AWEATHER_ALWAYS, - AWEATHER_AUTOMATIC, - AWEATHER_NEVER, -} AWeatherPolicyType; + AWEATHER_ONCE, // Cache the file if it does not exist + AWEATHER_UPDATE, // Append additional data to cached copy (resume) + AWEATHER_REFRESH, // Delete existing file and cache a new copy +} AWeatherCacheType; typedef void (*AWeatherCacheDoneCallback)(gchar *file, gboolean updated, gpointer user_data); -void cache_file(char *base, char *path, AWeatherPolicyType update, +void cache_file(char *base, char *path, AWeatherCacheType update, AWeatherCacheDoneCallback callback, gpointer user_data); #endif