summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.c
diff options
context:
space:
mode:
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;