summaryrefslogtreecommitdiff
path: root/include/netsurf
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-02-22 16:31:24 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2020-02-22 16:37:37 +0000
commit194dfad4a5ca36bf39bd1c20c874747991f9281c (patch)
tree704a9a760a16b7a86c1e1ed93abadab5ff1c917b /include/netsurf
parente87bc1bfdacd145f106bc2598997b91f4b177092 (diff)
downloadnetsurf-194dfad4a5ca36bf39bd1c20c874747991f9281c.tar.gz
netsurf-194dfad4a5ca36bf39bd1c20c874747991f9281c.tar.bz2
Core window: Constify the core_window handle through the getters.
Diffstat (limited to 'include/netsurf')
-rw-r--r--include/netsurf/core_window.h4
1 files changed, 2 insertions, 2 deletions
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);
/**