summaryrefslogtreecommitdiff
path: root/amiga/arexx.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/arexx.c')
-rwxr-xr-xamiga/arexx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/amiga/arexx.c b/amiga/arexx.c
index 3c3c77c35..51fe0b835 100755
--- a/amiga/arexx.c
+++ b/amiga/arexx.c
@@ -21,17 +21,21 @@
#include <string.h>
#include <proto/intuition.h>
#include "desktop/browser.h"
+#include "amiga/gui.h"
enum
{
RX_OPEN=0,
+ RX_QUIT,
};
STATIC VOID rx_open(struct ARexxCmd *, struct RexxMsg *);
+STATIC VOID rx_quit(struct ARexxCmd *, struct RexxMsg *);
STATIC struct ARexxCmd Commands[] =
{
{"OPEN",RX_OPEN,rx_open,"URL/A", 0, NULL, 0, 0, NULL },
+ {"QUIT",RX_QUIT,rx_quit,NULL, 0, NULL, 0, 0, NULL },
{ NULL, 0, NULL, NULL, 0, NULL, 0, 0, NULL }
};
@@ -63,3 +67,8 @@ STATIC VOID rx_open(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unu
{
browser_window_create((char *)cmd->ac_ArgList[0],NULL,NULL,true,false);
}
+
+STATIC VOID rx_quit(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unused)))
+{
+ ami_quit_netsurf();
+}