X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fdata%2Fgrits-http.h;h=55865bf1207559650d7523ece53e9926789e508a;hp=713c2c8bc1bd4debbef6a6f2d19e7a32e0380cbd;hb=fde5359a826dadb68cfe3f62f0f3c9e0c25f3438;hpb=d8948985b467a5cfd0447ae413ed1c5d01afb024 diff --git a/src/data/grits-http.h b/src/data/grits-http.h index 713c2c8..55865bf 100644 --- a/src/data/grits-http.h +++ b/src/data/grits-http.h @@ -15,29 +15,32 @@ * along with this program. If not, see . */ -#ifndef __GIS_HTTP_H__ -#define __GIS_HTTP_H__ +#ifndef __GRITS_HTTP_H__ +#define __GRITS_HTTP_H__ #include #include #include "grits-data.h" -typedef struct _GisHttp { +typedef struct _GritsHttp { SoupSession *soup; gchar *prefix; -} GisHttp; + gboolean aborted; +} GritsHttp; -GisHttp *gis_http_new(const gchar *prefix); +GritsHttp *grits_http_new(const gchar *prefix); -void gis_http_free(GisHttp *http); +void grits_http_abort(GritsHttp *http); -gchar *gis_http_fetch(GisHttp *http, const gchar *uri, const gchar *local, - GisCacheType mode, - GisChunkCallback callback, +void grits_http_free(GritsHttp *http); + +gchar *grits_http_fetch(GritsHttp *http, const gchar *uri, const gchar *local, + GritsCacheType mode, + GritsChunkCallback callback, gpointer user_data); -GList *gis_http_available(GisHttp *http, +GList *grits_http_available(GritsHttp *http, gchar *filter, gchar *cache, gchar *extract, gchar *index);