diff options
Diffstat (limited to 'utils/nsurl/private.h')
-rw-r--r-- | utils/nsurl/private.h | 75 |
1 files changed, 4 insertions, 71 deletions
diff --git a/utils/nsurl/private.h b/utils/nsurl/private.h index bc6737cd6..b099a451c 100644 --- a/utils/nsurl/private.h +++ b/utils/nsurl/private.h @@ -25,21 +25,6 @@ #include "utils/utils.h" -/* Define to enable NSURL debugging */ -#undef NSURL_DEBUG - - -/** A type for URL schemes */ -enum nsurl_scheme_type { - NSURL_SCHEME_OTHER, - NSURL_SCHEME_HTTP, - NSURL_SCHEME_HTTPS, - NSURL_SCHEME_FILE, - NSURL_SCHEME_FTP, - NSURL_SCHEME_MAILTO -}; - - /** * nsurl components * @@ -108,9 +93,10 @@ enum nsurl_string_flags { NSURL_F_HOST | NSURL_F_PORT), NSURL_F_PATH = (1 << 8), - NSURL_F_QUERY = (1 << 9), - NSURL_F_FRAGMENT_PUNCTUATION = (1 << 10), - NSURL_F_FRAGMENT = (1 << 11) + NSURL_F_QUERY_PUNCTUATION = (1 << 9), + NSURL_F_QUERY = (1 << 10), + NSURL_F_FRAGMENT_PUNCTUATION = (1 << 11), + NSURL_F_FRAGMENT = (1 << 12) }; /** @@ -176,57 +162,4 @@ static inline void nsurl__components_destroy(struct nsurl_components *c) lwc_string_unref(c->fragment); } - - -#ifdef NSURL_DEBUG -/** - * Dump a NetSurf URL's internal components - * - * \param url The NetSurf URL to dump components of - */ -static inline void nsurl__dump(const nsurl *url) -{ - if (url->components.scheme) - NSLOG(netsurf, INFO,netsurf, INFO, - " Scheme: %s", - lwc_string_data(url->components.scheme)); - - if (url->components.username) - NSLOG(netsurf, INFO, - "Username: %s", - lwc_string_data(url->components.username)); - - if (url->components.password) - NSLOG(netsurf, INFO, - "Password: %s", - lwc_string_data(url->components.password)); - - if (url->components.host) - NSLOG(netsurf, INFO, - " Host: %s", - lwc_string_data(url->components.host)); - - if (url->components.port) - NSLOG(netsurf, INFO, - " Port: %s", - lwc_string_data(url->components.port)); - - if (url->components.path) - NSLOG(netsurf, INFO, - " Path: %s", - lwc_string_data(url->components.path)); - - if (url->components.query) - NSLOG(netsurf, INFO, - " Query: %s", - lwc_string_data(url->components.query)); - - if (url->components.fragment) - NSLOG(netsurf, INFO, - "Fragment: %s", - lwc_string_data(url->components.fragment)); -} -#endif - - #endif |