mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-27 22:39:43 +03:00
Browser window: Rework constification of bw for show_certificates.
This commit is contained in:
parent
c8efbbc206
commit
82805f72e6
@ -283,7 +283,8 @@ struct browser_window {
|
|||||||
* \param existing The existing window if cloning, else NULL
|
* \param existing The existing window if cloning, else NULL
|
||||||
*/
|
*/
|
||||||
nserror browser_window_initialise_common(enum browser_window_create_flags flags,
|
nserror browser_window_initialise_common(enum browser_window_create_flags flags,
|
||||||
struct browser_window *bw, struct browser_window *existing);
|
struct browser_window *bw,
|
||||||
|
const struct browser_window *existing);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -331,7 +332,8 @@ void browser_window_set_status(struct browser_window *bw, const char *text);
|
|||||||
* \param bw browser window to set the type of the current drag for
|
* \param bw browser window to set the type of the current drag for
|
||||||
* \return root browser window
|
* \return root browser window
|
||||||
*/
|
*/
|
||||||
struct browser_window * browser_window_get_root(struct browser_window *bw);
|
struct browser_window * browser_window_get_root(
|
||||||
|
struct browser_window *bw);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3090,7 +3090,7 @@ browser_window_create(enum browser_window_create_flags flags,
|
|||||||
nserror
|
nserror
|
||||||
browser_window_initialise_common(enum browser_window_create_flags flags,
|
browser_window_initialise_common(enum browser_window_create_flags flags,
|
||||||
struct browser_window *bw,
|
struct browser_window *bw,
|
||||||
struct browser_window *existing)
|
const struct browser_window *existing)
|
||||||
{
|
{
|
||||||
nserror err;
|
nserror err;
|
||||||
assert(bw);
|
assert(bw);
|
||||||
@ -4765,7 +4765,7 @@ nserror browser_window_show_cookies(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Exported interface, documented in browser_window.h */
|
/* Exported interface, documented in browser_window.h */
|
||||||
nserror browser_window_show_certificates(const struct browser_window *bw)
|
nserror browser_window_show_certificates(struct browser_window *bw)
|
||||||
{
|
{
|
||||||
nserror res;
|
nserror res;
|
||||||
nsurl *url;
|
nsurl *url;
|
||||||
|
@ -817,6 +817,6 @@ nserror browser_window_show_cookies(
|
|||||||
* \return NSERROR_OK, or appropriate error otherwise.
|
* \return NSERROR_OK, or appropriate error otherwise.
|
||||||
*/
|
*/
|
||||||
nserror browser_window_show_certificates(
|
nserror browser_window_show_certificates(
|
||||||
const struct browser_window *bw);
|
struct browser_window *bw);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user