diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-04 12:41:19 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-04 12:41:19 +0000 |
commit | 79ce683b4e6d34fe327b00f1e427e476016cfab0 (patch) | |
tree | 2ed3ba800e8f570000f97588ce668eb47168565a /content/content.h | |
parent | 3daffe3d6b07be7bbeedbcb2586f11edd872cbd6 (diff) | |
download | netsurf-79ce683b4e6d34fe327b00f1e427e476016cfab0.tar.gz netsurf-79ce683b4e6d34fe327b00f1e427e476016cfab0.tar.bz2 |
Most of a stop implementation.
Remaining work:
1) Clone content_html_data
2) Cloning content_css_data requires the charset of the old content
3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context.
svn path=/trunk/netsurf/; revision=10236
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/content/content.h b/content/content.h index 1dd7f83cd..61fc6346f 100644 --- a/content/content.h +++ b/content/content.h @@ -29,6 +29,7 @@ #include <stdbool.h> #include "utils/config.h" +#include "utils/errors.h" #include "content/content_type.h" #include "desktop/plot_style.h" @@ -112,8 +113,13 @@ void content_remove_user(struct content *c, union content_msg_data data, void *pw), void *pw); +uint32_t content_count_users(struct content *c); + const struct llcache_handle *content_get_llcache_handle(struct content *c); +struct content *content_clone(struct content *c); + +nserror content_abort(struct content *c); /* Client functions */ bool content_can_reformat(struct hlcache_handle *h); @@ -129,10 +135,6 @@ bool content_redraw_tiled(struct hlcache_handle *h, int x, int y, int clip_x0, int clip_y0, int clip_x1, int clip_y1, float scale, colour background_colour, bool repeat_x, bool repeat_y); -void content_stop(struct hlcache_handle *h, - void (*callback)(struct content *c, content_msg msg, - union content_msg_data data, void *pw), - void *pw); void content_open(struct hlcache_handle *h, struct browser_window *bw, struct content *page, unsigned int index, struct box *box, struct object_params *params); |