From 24b910f4ff72b24a871c7d66f9e5f5992625c975 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 10 May 2019 21:49:00 +0100 Subject: Make the window list more private TODO: fix arexx.c to not need it --- frontends/amiga/gui.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'frontends/amiga/gui.h') diff --git a/frontends/amiga/gui.h b/frontends/amiga/gui.h index c4af98f93..1376495c7 100644 --- a/frontends/amiga/gui.h +++ b/frontends/amiga/gui.h @@ -75,8 +75,6 @@ struct ami_generic_window { const struct ami_win_event_table *tbl; }; - -extern struct MinList *window_list; /**\todo stop arexx.c poking about in here */ extern struct MsgPort *sport; #define IS_CURRENT_GW(GWIN,GW) (ami_gui2_get_gui_window(GWIN) == GW) @@ -105,6 +103,7 @@ int ami_gui_count_windows(int window, int *tabs); void ami_gui_set_scale(struct gui_window *gw, float scale); void ami_set_pointer(struct gui_window_2 *gwin, gui_pointer_shape shape, bool update); void ami_reset_pointer(struct gui_window_2 *gwin); +void *ami_window_at_pointer(int type); /** * Beep @@ -177,6 +176,15 @@ nserror ami_gui_win_list_add(void *win, int type, const struct ami_win_event_tab */ void ami_gui_win_list_remove(void *win); +/** + * Get the window list. + * + *\TODO: Nothing should be poking around in this list, but we aren't + * assigning unique IDs to windows (ARexx interface needs this) + * ami_find_gwin_by_id() is close but not ARexx-friendly + */ +struct MinList *ami_gui_get_window_list(void); + /** * Get which qualifier keys are being pressed */ -- cgit v1.2.3