From 79ce683b4e6d34fe327b00f1e427e476016cfab0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Apr 2010 12:41:19 +0000 Subject: 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 --- content/content.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'content/content.h') 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 #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); -- cgit v1.2.3