diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-08 00:08:35 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-08 00:08:35 +0100 |
commit | ca1a519cfad66978c18181b4a544b485f69aee90 (patch) | |
tree | 5da545d0978238de773a41c58a989d73474219fd /frontends/amiga/gui.c | |
parent | b9dd0a60c300b0de6b117500f67b6724b520652c (diff) | |
download | netsurf-ca1a519cfad66978c18181b4a544b485f69aee90.tar.gz netsurf-ca1a519cfad66978c18181b4a544b485f69aee90.tar.bz2 |
remove direct access to gui_window_2's gui_window
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 6db8434fb..55d57d52b 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -288,13 +288,19 @@ static void gui_window_place_caret(struct gui_window *g, int x, int y, int heigh nsoptions[NSOPTION_##OPTION].value.i = VALUE; \ nsoptions_default[NSOPTION_##OPTION].value.i = VALUE -/* Function documented in gui.h */ +/* Functions documented in gui.h */ struct browser_window *ami_gui_get_browser_window(struct gui_window *gw) { assert(gw != NULL); return gw->bw; } +struct browser_window *ami_gui2_get_browser_window(struct gui_window_2 *gwin) +{ + assert(gwin != NULL); + return ami_gui_get_browser_window(gwin->gw); +} + struct List *ami_gui_get_download_list(struct gui_window *gw) { assert(gw != NULL); @@ -307,6 +313,12 @@ struct gui_window_2 *ami_gui_get_gui_window_2(struct gui_window *gw) return gw->shared; } +struct gui_window *ami_gui2_get_gui_window(struct gui_window_2 *gwin) +{ + assert(gwin != NULL); + return gwin->gw; +} + const char *ami_gui_get_tab_title(struct gui_window *gw) { assert(gw != NULL); |