From 194dfad4a5ca36bf39bd1c20c874747991f9281c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 22 Feb 2020 16:31:24 +0000 Subject: Core window: Constify the core_window handle through the getters. --- include/netsurf/core_window.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/netsurf/core_window.h b/include/netsurf/core_window.h index 7eabda1d1..8cbd8efbf 100644 --- a/include/netsurf/core_window.h +++ b/include/netsurf/core_window.h @@ -100,7 +100,7 @@ struct core_window_callback_table { * \param[out] returns vertical scroll in px * \return NSERROR_OK on success or appropriate error code */ - nserror (*get_scroll)(struct core_window *cw, int *x, int *y); + nserror (*get_scroll)(const struct core_window *cw, int *x, int *y); /** * Get window viewport dimensions @@ -110,7 +110,7 @@ struct core_window_callback_table { * \param[out] height to be set to viewport height in px * \return NSERROR_OK on success or appropriate error code */ - nserror (*get_window_dimensions)(struct core_window *cw, + nserror (*get_window_dimensions)(const struct core_window *cw, int *width, int *height); /** -- cgit v1.2.3