X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fdata%2Fgis-http.h;h=489bf51ec44e8543bc8ab2e9fb089778cb183ad3;hp=051df0bfb7540cdd8b1857c066fd04274c032b32;hb=bbf8154058e9cbae03ebb55cd92f804db4f490aa;hpb=50fd58d421d4b632d0980a5a22ed3506776f00ab diff --git a/src/data/gis-http.h b/src/data/gis-http.h index 051df0b..489bf51 100644 --- a/src/data/gis-http.h +++ b/src/data/gis-http.h @@ -24,27 +24,21 @@ #include "gis-data.h" typedef struct _GisHttp { - gchar *prefix; SoupSession *soup; + gchar *prefix; } GisHttp; -/** - * @param prefix The cache prefix: e.g. /nexrad/level2/ - * @return The HTTP connection handle - */ GisHttp *gis_http_new(const gchar *prefix); -/** - * @param http GisHttp connection to use - * @param uri The uri to fetch - * @param mode Update type - * @param callback Callback to call when a chunck is recieved - * @param user_data Data to pass to callback - * @return The local path to the complete file - */ +void gis_http_free(GisHttp *http); + gchar *gis_http_fetch(GisHttp *http, const gchar *uri, const gchar *local, GisCacheType mode, GisChunkCallback callback, gpointer user_data); +GList *gis_http_available(GisHttp *http, + gchar *filter, gchar *cache, + gchar *extract, gchar *index); + #endif