/*
 * Source generated with ARexxBox 1.12 (May 18 1993)
 * which is Copyright (c) 1992,1993 Michael Balzer
 */

#include <exec/types.h>
#include <dos/dos.h>
#include <rexx/storage.h>

#define NO_GLOBALS
#include "TrackRexx.h"

#define RESINDEX(stype) (((long) &((struct stype *)0)->res) / sizeof(long))

char	RexxPortBaseName[80] = "QAMITRACK";
char	*rexx_extension = "QAMITRACK";

struct rxs_command rxs_commandlist[] =
{
	{ "CONNECT", "ACTION/K,ACTIONINDEX/K/N,HOST/K,HOSTINDEX/K/N,CONFIRM/K", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_connect, 1 },
	{ "GET", "CLIENTS/S,ACTIONS/S", "SERVER,PORT/N,CONFIRM/N,CONNECTED/N,NUMCLIENTS/N,ENABLED/N,NUMACTIONS/N,HIDDEN/N,COMMENT,LASTENTRYCLICKED/N,CLIENTS/M,COMMENTS/M,LASTCHANGED/M/N,ACTIONS/M,COMMANDS/M,CURRENTACTION/N,LOGFILE,LOGLEVEL,USERNAMES/M,REALNAMES/M,WINOPEN/M/N,VIEWBY,VISIBLETO,USERNAME,REALNAME,LOGVIEWLEVEL/N,LOGVIEWLENGTH/N,LOGONSCRIPT,LOGOFFSCRIPT,UPDATESCRIPT,CONNECTSCRIPT,ENDSCRIPT,DISCONNECTSCRIPT,STARTSCRIPT,DEFAULTSCRIPT,BEEPONLOG/N", RESINDEX(rxd_get), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_get, 1 },
	{ "QUIT", NULL, NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_quit, 1 },
	{ "REQUEST", "TITLE/K,MESSAGE/K,BUTTONS/K", "CLICKED/N", RESINDEX(rxd_request), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_request, 1 },
	{ "SET", "ENABLED/K,HIDDEN/K,CONFIRM/K,LEFT/K/N,TOP/K/N,WIDTH/K/N,HEIGHT/K/N,COMMENT/K,SERVER/K,WINDOWTITLE/K,CURRENTACTIONINDEX/K/N,ACTION/K,PORT/K/N,CURRENTACTION/K,LOGFILE/K,LOGLEVEL/K,VIEWBY/K,LOGVIEWLEVEL/K/N,LOGVIEWLENGTH/K/N,LOGONSCRIPT/K,LOGOFFSCRIPT/K,UPDATESCRIPT/K,CONNECTSCRIPT/K,ENDSCRIPT/K,DISCONNECTSCRIPT/K,STARTSCRIPT/K,DEFAULTSCRIPT/K,BEEPONLOG/K", "ACTIONINDEX/N", RESINDEX(rxd_set), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_set, 1 },
	{ NULL, NULL, NULL, NULL, NULL }
};

int		command_cnt = 5;

static struct arb_p_link link0[] = {
	{"SET", 1}, {"REQUEST", 2}, {"QUIT", 3}, {"GET", 4}, {"CONNECT", 5}, {NULL, 0} };

struct arb_p_state arb_p_state[] = {
	{-1, link0}, {4, NULL}, {3, NULL}, {2, NULL}, {1, NULL},
	{0, NULL}  };

