X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis%2Fgis-data.h;h=5fe9067dbb9dc6be509e40a55ef197f995fbcae0;hp=f08f9365c335125abfa773eb29df70a1217cfbe4;hb=42eaa69adc4578f47225ce8e1a7f89fdfaedffa4;hpb=ca898105ec4018b54ac2f6f1327200624169103e diff --git a/src/gis/gis-data.h b/src/gis/gis-data.h index f08f936..5fe9067 100644 --- a/src/gis/gis-data.h +++ b/src/gis/gis-data.h @@ -21,20 +21,20 @@ #include typedef enum { - 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; + GIS_ONCE, // Cache the file if it does not exist + GIS_UPDATE, // Append additional data to cached copy (resume) + GIS_REFRESH, // Delete existing file and cache a new copy +} GisDataCacheType; -typedef void (*AWeatherCacheDoneCallback)(gchar *file, gboolean updated, +typedef void (*GisDataCacheDoneCallback)(gchar *file, gboolean updated, gpointer user_data); -typedef void (*AWeatherCacheChunkCallback)(gchar *file, goffset cur, +typedef void (*GisDataCacheChunkCallback)(gchar *file, goffset cur, goffset total, gpointer user_data); -SoupSession *cache_file(char *base, char *path, AWeatherCacheType update, - AWeatherCacheChunkCallback user_chunk_cb, - AWeatherCacheDoneCallback user_done_cb, +SoupSession *cache_file(char *base, char *path, GisDataCacheType update, + GisDataCacheChunkCallback user_chunk_cb, + GisDataCacheDoneCallback user_done_cb, gpointer user_data); #endif