path: root/render/textplain.h
diff options
authorJohn Mark Bell <>2010-04-04 12:41:19 +0000
committerJohn Mark Bell <>2010-04-04 12:41:19 +0000
commit79ce683b4e6d34fe327b00f1e427e476016cfab0 (patch)
tree2ed3ba800e8f570000f97588ce668eb47168565a /render/textplain.h
parent3daffe3d6b07be7bbeedbcb2586f11edd872cbd6 (diff)
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 'render/textplain.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/render/textplain.h b/render/textplain.h
index ec4882800..61a1c0c9a 100644
--- a/render/textplain.h
+++ b/render/textplain.h
@@ -37,7 +37,7 @@ struct textplain_line {
struct content_textplain_data {
- const char *encoding;
+ char *encoding;
iconv_t iconv_cd;
size_t converted;
char *utf8_data;
@@ -58,6 +58,7 @@ bool textplain_redraw(struct content *c, int x, int y,
int width, int height,
int clip_x0, int clip_y0, int clip_x1, int clip_y1,
float scale, colour background_colour);
+bool textplain_clone(const struct content *old, struct content *new_content);
/* access to lines for text selection and searching */
unsigned long textplain_line_count(struct hlcache_handle *h);