diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-06-23 17:22:28 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-06-23 17:22:28 +0000 |
commit | b88a81b9d9570c3219dc924c3dd2b424d99ee4c3 (patch) | |
tree | 9c82002745ad96d5c7ef88e3824f77b3956254ea /content/url_store.h | |
parent | ede57892c6ceb1ecc9c75cbc21d22ce92704ebd4 (diff) | |
download | netsurf-b88a81b9d9570c3219dc924c3dd2b424d99ee4c3.tar.gz netsurf-b88a81b9d9570c3219dc924c3dd2b424d99ee4c3.tar.bz2 |
[project @ 2005-06-23 17:22:28 by rjw]
Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2.
svn path=/import/netsurf/; revision=1761
Diffstat (limited to 'content/url_store.h')
-rw-r--r-- | content/url_store.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/url_store.h b/content/url_store.h index 6a101cfe8..412aef438 100644 --- a/content/url_store.h +++ b/content/url_store.h @@ -12,7 +12,11 @@ #ifndef _NETSURF_CONTENT_URLSTORE_H_ #define _NETSURF_CONTENT_URLSTORE_H_ +#include "netsurf/image/bitmap.h" + + struct url_content { + struct bitmap *thumbnail; /** Thumbnail, or NULL */ char *url; /** URL (including hostname) */ int url_length; /** Length of URL (including hostname) */ int visits; /** Number of times visited */ @@ -31,6 +35,9 @@ struct url_content *url_store_find(const char *url); char *url_store_match(const char *url, struct url_data **reference); char *url_store_match_string(const char *text); +void url_store_add_thumbnail(const char *url, struct bitmap *bitmap); +struct bitmap *url_store_get_thumbnail(const char *url); + void url_store_load(const char *file); void url_store_save(const char *file); |