summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-10-17 21:52:43 +0100
committerVincent Sanders <vince@netsurf-browser.org>2012-10-17 21:52:43 +0100
commitf18bbd48c7265ef68e8559f20a74bd1b57a4d1cb (patch)
tree42dcc9af966f2e6a96a57803962976f08bc08c49 /content
parent35eb251244ee360cedef6ec1143e65b59da604a8 (diff)
downloadnetsurf-f18bbd48c7265ef68e8559f20a74bd1b57a4d1cb.tar.gz
netsurf-f18bbd48c7265ef68e8559f20a74bd1b57a4d1cb.tar.bz2
Improve error handling in html content
Diffstat (limited to 'content')
-rw-r--r--content/content.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h
index b07af4fe1..649f54dfa 100644
--- a/content/content.h
+++ b/content/content.h
@@ -67,6 +67,7 @@ typedef enum {
CONTENT_MSG_READY, /**< may be displayed */
CONTENT_MSG_DONE, /**< finished */
CONTENT_MSG_ERROR, /**< error occurred */
+ CONTENT_MSG_ERRORCODE, /**< error occurred return nserror */
CONTENT_MSG_STATUS, /**< new status string */
CONTENT_MSG_REFORMAT, /**< content_reformat done */
CONTENT_MSG_REDRAW, /**< needs redraw (eg. new animation frame) */
@@ -96,7 +97,9 @@ struct content_rfc5988_link {
/** Extra data for some content_msg messages. */
union content_msg_data {
/** CONTENT_MSG_ERROR - Error message */
- const char *error;
+ const char *error;
+ /** CONTENT_MSG_ERRORCODE - Error code */
+ nserror errorcode;
/** CONTENT_MSG_REDRAW - Area of content which needs redrawing */
struct {
int x, y, width, height;