#ident " @(#)midiwrite.h 1.1 91/09/17 Copyright 1991, Sun Microsystems, Inc."
/*
 * Copyright (c) 1991 by Sun Microsystems, Inc. 
 *		extensions 5/92--stp@nomad
 */
/*
 * header declaration for midiwrite and mplay options, used by midiopts.[hc].
 */
#include <stdio.h>
#include <sys/types.h>
#include <sys/stropts.h>
#include <sys/stream.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/errno.h>
#include <signal.h>
#include "option.h"
#include "../sys/midi.h"

#ifdef STREAMSENVIRON
#include "streamsenv.h"
#endif

extern errno;

#define ARG_OUTPUT			8
#define ARG_INPUT			9
#define ARG_DEVICE			16

#define ARG_base 100
#define	ARGP_mpmclockRate		(ARG_base + 1)
#define	ARGM_mpmclockRate		(ARG_base + 2)
#define	ARGP_mpmclockMod		(ARG_base + 3)
#define	ARGM_mpmclockMod		(ARG_base + 4)
#define	ARGP_mpmointc			(ARG_base + 5)
#define	ARGM_mpmointc			(ARG_base + 6)
#define	ARGP_mpmoautoStart		(ARG_base + 7)
#define	ARGM_mpmoautoStart		(ARG_base + 8)
#define	ARGP_mpmoautoStop		(ARG_base + 9)
#define	ARGM_mpmoautoStop		(ARG_base + 10)
#define	ARGP_mpmoinhibitClock	(ARG_base + 11)
#define	ARGM_mpmoinhibitClock	(ARG_base + 12)
#define	ARGP_mpmoinhibitMTC		(ARG_base + 13)
#define	ARGM_mpmoinhibitMTC		(ARG_base + 14)
#define	ARGP_mpmoinhSongPointer	(ARG_base + 15)
#define	ARGM_mpmoinhSongPointer	(ARG_base + 16)
#define	ARGP_mpmid				(ARG_base + 17)
#define	ARGM_mpmid				(ARG_base + 18)
#define	ARGP_mpmmtcChannel		(ARG_base + 19)
#define	ARGM_mpmmtcChannel		(ARG_base + 20)
#define	ARGP_mpirs				(ARG_base + 21)
#define	ARGM_mpirs				(ARG_base + 22)
#define	ARGP_mpiloop			(ARG_base + 23)
#define	ARGM_mpiloop			(ARG_base + 24)
#define	ARGP_mpors				(ARG_base + 25)
#define	ARGM_mpors				(ARG_base + 26)
#define	ARGP_mpoloop			(ARG_base + 27)
#define	ARGM_mpoloop			(ARG_base + 28)
#define	ARGP_mpstclockRate		(ARG_base + 29)
#define	ARGM_mpstclockRate		(ARG_base + 30)
#define	ARGP_mpstf24			(ARG_base + 31)
#define	ARGM_mpstf24			(ARG_base + 32)
#define	ARGP_mpstf25			(ARG_base + 33)
#define	ARGM_mpstf25			(ARG_base + 34)
#define	ARGP_mpstf30			(ARG_base + 35)
#define	ARGM_mpstf30			(ARG_base + 36)
#define	ARGP_mpstf30drop		(ARG_base + 37)
#define	ARGM_mpstf30drop		(ARG_base + 38)
#define	ARGP_mpsoint			(ARG_base + 39)
#define	ARGM_mpsoint			(ARG_base + 40)
#define	ARGP_mpsoautoStart		(ARG_base + 41)
#define	ARGM_mpsoautoStart		(ARG_base + 42)
#define	ARGP_mpsoautoStop		(ARG_base + 43)
#define	ARGM_mpsoautoStop		(ARG_base + 44)
#define	ARGP_mpsodropFrame		(ARG_base + 45)
#define	ARGM_mpsodropFrame		(ARG_base + 46)
#define	ARGP_mpsoreverse		(ARG_base + 47)
#define	ARGM_mpsoreverse		(ARG_base + 48)
#define	ARGP_mpdebug			(ARG_base + 49)
#define	ARGM_mpdebug			(ARG_base + 50)

#define	ARG_device				(ARG_base + 51)
#define	ARG_input				(ARG_base + 52)
#define	ARG_output				(ARG_base + 53)

#define	ARGM_mvmclockTick		(ARG_base + 54)
#define	ARGP_mvmclockTick		(ARG_base + 55)
#define	ARGM_mvmsongPointer		(ARG_base + 56)
#define	ARGP_mvmsongPointer		(ARG_base + 57)
#define	ARGM_mvmfrunning		(ARG_base + 58)
#define	ARGP_mvmfrunning		(ARG_base + 59)
#define	ARGM_mvrclock			(ARG_base + 60)
#define	ARGP_mvrclock			(ARG_base + 61)
#define	ARGM_mvrstart			(ARG_base + 62)
#define	ARGP_mvrstart			(ARG_base + 63)
#define	ARGM_mvrstop			(ARG_base + 64)
#define	ARGP_mvrstop			(ARG_base + 65)
#define	ARGM_mvrcontinue		(ARG_base + 66)
#define	ARGP_mvrcontinue		(ARG_base + 67)
#define	ARGM_mvractive			(ARG_base + 68)
#define	ARGP_mvractive			(ARG_base + 69)
#define	ARGM_mvrreset			(ARG_base + 70)
#define	ARGP_mvrreset			(ARG_base + 71)
#define	ARGM_mvrmtc				(ARG_base + 72)
#define	ARGP_mvrmtc				(ARG_base + 73)
#define	ARGM_mvrsongPointer		(ARG_base + 74)
#define	ARGP_mvrsongPointer		(ARG_base + 75)
#define	ARGM_mvstime			(ARG_base + 76)
#define	ARGP_mvstime			(ARG_base + 77)
#define	ARGM_mvsfrunning		(ARG_base + 78)
#define	ARGP_mvsfrunning		(ARG_base + 79)
#define	ARGM_mvsfqframe			(ARG_base + 80)
#define	ARGP_mvsfqframe			(ARG_base + 81)

					/******stp additions--5/92******/
#define	ARG_startTick			(ARG_base + 101)
#define	ARG_durTick				(ARG_base + 102)
#define	ARG_endTick				(ARG_base + 103)
#define	ARG_playOrPrint			(ARG_base + 104)
#define	ARG_printStatus			(ARG_base + 105)
#define	ARG_tickRate			(ARG_base + 106)
#define	ARG_verbose				(ARG_base + 107)
#define	ARG_usage				(ARG_base + 108)
#define	ARG_silent				(ARG_base + 109)
#define	ARG_compact				(ARG_base + 110)

#define OPTDEF(name, argc, key) { name, argc, (char **) 0, 0, 0, key }
