summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-10 21:59:03 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-10 21:59:03 +0100
commit6ac65a367462367addea548be8bd0051980feead (patch)
treee917ed7d9b6360c49f2bb584ee6159118e6d8842 /frontends/amiga/gui.c
parent24b910f4ff72b24a871c7d66f9e5f5992625c975 (diff)
downloadnetsurf-6ac65a367462367addea548be8bd0051980feead.tar.gz
netsurf-6ac65a367462367addea548be8bd0051980feead.tar.bz2
Hide the message port which is shared amongst all Amiga NetSurf windows
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r--frontends/amiga/gui.c8
1 files changed, 7 insertions, 1 deletions
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;