X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/0f08bd0dd39944f099a00af0ae8fe319d8bd9fa0..e13ab673e45ea48de49661f7838e75925f405514:/src/vikmapsource.h?ds=inline diff --git a/src/vikmapsource.h b/src/vikmapsource.h index c02fc5c1..2954be34 100644 --- a/src/vikmapsource.h +++ b/src/vikmapsource.h @@ -50,7 +50,9 @@ struct _VikMapSourceClass gboolean (* supports_if_modified_since) (VikMapSource * self); gboolean (* coord_to_mapcoord) (VikMapSource * self, const VikCoord * src, gdouble xzoom, gdouble yzoom, MapCoord * dest); void (* mapcoord_to_center_coord) (VikMapSource * self, MapCoord * src, VikCoord * dest); - int (* download) (VikMapSource * self, MapCoord * src, const gchar * dest_fn); + int (* download) (VikMapSource * self, MapCoord * src, const gchar * dest_fn, void * handle); + void * (* download_handle_init) (VikMapSource * self); + void (* download_handle_cleanup) (VikMapSource * self, void * handle); }; struct _VikMapSource @@ -68,7 +70,9 @@ VikViewportDrawMode vik_map_source_get_drawmode (VikMapSource * self); gboolean vik_map_source_supports_if_modified_since (VikMapSource * self); gboolean vik_map_source_coord_to_mapcoord (VikMapSource * self, const VikCoord *src, gdouble xzoom, gdouble yzoom, MapCoord *dest ); void vik_map_source_mapcoord_to_center_coord (VikMapSource * self, MapCoord *src, VikCoord *dest); -int vik_map_source_download (VikMapSource * self, MapCoord * src, const gchar * dest_fn); +int vik_map_source_download (VikMapSource * self, MapCoord * src, const gchar * dest_fn, void * handle); +void * vik_map_source_download_handle_init (VikMapSource * self); +void vik_map_source_download_handle_cleanup (VikMapSource * self, void * handle); G_END_DECLS