From ad6fcea6b008638ca532436ecf8ba9fe7e41ffdd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 3 Feb 2008 12:04:48 +0000 Subject: Add url_fragment to extract fragment from URL Optionally allow url_compare to ignore fragments in comparison Fix handling of url_compare result in a few places Fix redirects which contain fragments in the Location header svn path=/trunk/netsurf/; revision=3826 --- content/content.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 324af952f..7fb11ca2a 100644 --- a/content/content.h +++ b/content/content.h @@ -84,7 +84,7 @@ typedef enum { CONTENT_MSG_STATUS, /**< new status string */ CONTENT_MSG_REFORMAT, /**< content_reformat done */ CONTENT_MSG_REDRAW, /**< needs redraw (eg. new animation frame) */ - CONTENT_MSG_NEWPTR, /**< address of structure has changed */ + CONTENT_MSG_NEWPTR, /**< structure has been replaced */ CONTENT_MSG_REFRESH, /**< wants refresh */ #ifdef WITH_AUTH CONTENT_MSG_AUTH, /**< authentication required */ @@ -97,7 +97,8 @@ typedef enum { /** Extra data for some content_msg messages. */ union content_msg_data { const char *error; /**< Error message, for CONTENT_MSG_ERROR. */ - char *redirect; /**< Redirect URL, for CONTENT_MSG_REDIRECT. */ + const char *new_url; /**< Replacement URL (or NULL if the same + * as previous), for CONTENT_MSG_NEWPTR. */ /** Area of content which needs redrawing, for CONTENT_MSG_REDRAW. */ struct { float x, y, width, height; -- cgit v1.2.3