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.h | |
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.h')
-rw-r--r-- | frontends/amiga/gui.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/frontends/amiga/gui.h b/frontends/amiga/gui.h index 6b0818920..6877bee9e 100644 --- a/frontends/amiga/gui.h +++ b/frontends/amiga/gui.h @@ -157,6 +157,8 @@ extern struct Screen *scrn; extern struct MsgPort *sport; extern struct gui_window *cur_gw; +#define IS_CURRENT_GW(GWIN,GW) (ami_gui2_get_gui_window(GWIN) == GW) + /* The return value for these functions must be deallocated using FreeVec() */ STRPTR ami_locale_langs(int *codeset); char *ami_gui_get_cache_favicon_name(struct nsurl *url, bool only_if_avail); @@ -262,11 +264,21 @@ void ami_gui_adjust_scale(struct gui_window *gw, float adjustment); struct browser_window *ami_gui_get_browser_window(struct gui_window *gw); /** + * Get browser window from gui_window_2 + */ +struct browser_window *ami_gui2_get_browser_window(struct gui_window_2 *gwin); + +/** * Get gui_window_2 from gui_window */ struct gui_window_2 *ami_gui_get_gui_window_2(struct gui_window *gw); /** + * Get gui_window from gui_window_2 + */ +struct gui_window *ami_gui2_get_gui_window(struct gui_window_2 *gwin); + +/** * Get download list from gui_window */ struct List *ami_gui_get_download_list(struct gui_window *gw); |