summaryrefslogtreecommitdiff
path: root/include/netsurf/browser_window.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-07-23 11:08:15 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-07-23 11:33:43 +0100
commiteeb7be1cbf8069cc1304dac4136e7c2090d49e89 (patch)
tree57d70f99735a5437ca584e34ddba74946dd02837 /include/netsurf/browser_window.h
parent09b015bf11be087bdc50e740c2f8ce6a6ff5853e (diff)
downloadnetsurf-eeb7be1cbf8069cc1304dac4136e7c2090d49e89.tar.gz
netsurf-eeb7be1cbf8069cc1304dac4136e7c2090d49e89.tar.bz2
Browser: Add function to get bw URL with any fragment.
This returns a ref to the URL.
Diffstat (limited to 'include/netsurf/browser_window.h')
-rw-r--r--include/netsurf/browser_window.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/netsurf/browser_window.h b/include/netsurf/browser_window.h
index c3ff7997e..439b0785d 100644
--- a/include/netsurf/browser_window.h
+++ b/include/netsurf/browser_window.h
@@ -210,6 +210,19 @@ nserror browser_window_navigate_up(struct browser_window *bw, bool new_window);
struct nsurl* browser_window_access_url(struct browser_window *bw);
/**
+ * Access a browser window's URL.
+ *
+ * \param[in] bw browser window
+ * \param[in] fragment Whether to include any URL fragment.
+ * \param[out] url_out Returns a ref to the URL on success.
+ * \return NSERROR_OK, or appropriate error otherwise.
+ */
+nserror browser_window_get_url(
+ struct browser_window *bw,
+ bool fragment,
+ struct nsurl** url_out);
+
+/**
* Get the title of a browser_window.
*
* \param bw The browser window.