From cbd9d710a3bd62848eca3a519ac92f49ce229153 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 26 Feb 2015 16:13:41 +0000 Subject: Use forward declaration instead of #include for nsurl. --- content/content.h | 13 ++++++------- gtk/viewsource.c | 1 + 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/content.h b/content/content.h index c154d7a04..f0761d748 100644 --- a/content/content.h +++ b/content/content.h @@ -34,7 +34,6 @@ #include "utils/config.h" #include "utils/errors.h" #include "utils/http.h" -#include "utils/nsurl.h" #include "content/content_factory.h" #include "content/content_type.h" #include "desktop/search.h" @@ -105,7 +104,7 @@ struct content_rfc5988_link { struct content_rfc5988_link *next; /**< next rfc5988_link in list */ lwc_string *rel; /**< the link relationship - must be present */ - nsurl *href; /**< the link href - must be present */ + struct nsurl *href; /**< the link href - must be present */ lwc_string *hreflang; lwc_string *type; lwc_string *media; @@ -120,8 +119,8 @@ union content_msg_data { nserror errorcode; /** CONTENT_MSG_REDIRECT - Redirect info */ struct { - nsurl *from; /**< Redirect origin */ - nsurl *to; /**< Redirect target */ + struct nsurl *from; /**< Redirect origin */ + struct nsurl *to; /**< Redirect target */ } redirect; /**< Fetch URL redirect occured */ /** CONTENT_MSG_REDRAW - Area of content which needs redrawing */ struct { @@ -171,7 +170,7 @@ union content_msg_data { } dragsave; /** CONTENT_MSG_SAVELINK - Save a URL */ struct { - nsurl *url; + struct nsurl *url; const char *title; } savelink; /** CONTENT_MSG_POINTER - Mouse pointer to set */ @@ -252,7 +251,7 @@ bool content_matches_quirks(struct content *c, bool quirks); bool content_is_shareable(struct content *c); const struct llcache_handle *content_get_llcache_handle(struct content *c); -nsurl *content_get_url(struct content *c); +struct nsurl *content_get_url(struct content *c); struct content *content_clone(struct content *c); @@ -426,7 +425,7 @@ void content_invalidate_reuse_data(struct hlcache_handle *h); * \param h Content to retrieve refresh URL from * \return Pointer to URL, or NULL if none */ -nsurl *content_get_refresh_url(struct hlcache_handle *h); +struct nsurl *content_get_refresh_url(struct hlcache_handle *h); /** * Retrieve the bitmap contained in an image content diff --git a/gtk/viewsource.c b/gtk/viewsource.c index 364ec8156..abc9f9483 100644 --- a/gtk/viewsource.c +++ b/gtk/viewsource.c @@ -20,6 +20,7 @@ #include "utils/utils.h" #include "utils/utf8.h" +#include "utils/nsurl.h" #include "utils/messages.h" #include "desktop/browser.h" #include "content/content.h" -- cgit v1.2.3