From 6ac65a367462367addea548be8bd0051980feead Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 10 May 2019 21:59:03 +0100 Subject: Hide the message port which is shared amongst all Amiga NetSurf windows --- frontends/amiga/gui.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'frontends/amiga/gui.c') diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index ba6244f66..7f1578c15 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -313,7 +313,7 @@ struct ami_gui_tb_userdata { static struct MinList *window_list = NULL; static struct Screen *scrn = NULL; -struct MsgPort *sport = NULL; +static struct MsgPort *sport = NULL; static struct gui_window *cur_gw = NULL; static bool ami_quit = false; @@ -378,6 +378,12 @@ static void gui_window_place_caret(struct gui_window *g, int x, int y, int heigh nsoptions_default[NSOPTION_##OPTION].value.i = VALUE /* Functions documented in gui.h */ +struct MsgPort *ami_gui_get_shared_msgport(void) +{ + assert(sport != NULL); + return sport; +} + struct gui_window *ami_gui_get_active_gw(void) { return cur_gw; -- cgit v1.2.3