]> Pileus Git - grits/blobdiff - src/data/gis-http.h
Add gis_http_available function
[grits] / src / data / gis-http.h
index 051df0bfb7540cdd8b1857c066fd04274c032b32..489bf51ec44e8543bc8ab2e9fb089778cb183ad3 100644 (file)
 #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