Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / usb / classes / simplemidi / simplemidi.h
blobc93c88d41444200f116b6b8fd744b0ca78e4a8a9
1 #ifndef SIMPLEMIDI_H
2 #define SIMPLEMIDI_H
4 #include <intuition/intuition.h>
5 #include <intuition/intuitionbase.h>
6 #include <libraries/mui.h>
7 #include <libraries/gadtools.h>
9 #define ID_ABOUT 0x55555555
10 #define ID_STORE_CONFIG 0xaaaaaaaa
12 struct ClsGlobalCfg
14 ULONG cgc_ChunkID;
15 ULONG cgc_Length;
16 ULONG cgc_MidiMinOctave;
17 ULONG cgc_KeyMaxOctave;
18 ULONG cgc_AutoKeyUp;
21 struct NepHidBase
23 struct Library nh_Library; /* standard */
24 UWORD nh_Flags; /* various flags */
25 struct Library *nh_UtilityBase; /* utility base */
27 struct Library *nh_MUIBase; /* MUI master base */
28 struct Library *nh_PsdBase; /* Poseidon base */
29 struct Library *nh_IntBase; /* Intuition base */
30 struct Task *nh_GUITask; /* GUI Task */
32 struct ClsGlobalCfg nh_CurrentCGC;
34 BOOL nh_UsingDefaultCfg;
35 Object *nh_App;
36 Object *nh_MainWindow;
37 Object *nh_MidiMinOctaveObj;
38 Object *nh_KeyMaxOctaveObj;
39 Object *nh_AutoKeyUpObj;
40 Object *nh_UseObj;
41 Object *nh_CloseObj;
43 Object *nh_AboutMI;
44 Object *nh_UseMI;
45 Object *nh_MUIPrefsMI;
48 struct NepClassHid
50 struct Node nch_Node; /* Node linkage */
51 struct NepHidBase *nch_ClsBase; /* Up linkage */
52 struct Library *nch_Base; /* Poseidon base */
53 struct PsdDevice *nch_Device; /* Up linkage */
54 struct PsdConfig *nch_Config; /* Up linkage */
55 struct PsdInterface *nch_Interface; /* Up linkage */
56 struct PsdPipe *nch_EP0Pipe; /* Endpoint 0 pipe */
57 struct PsdEndpoint *nch_EPIn; /* Endpoint 1 */
58 struct PsdPipe *nch_EPInPipe; /* Endpoint 1 pipe */
59 UBYTE *nch_EPInBuf; /* Packet buffer for EP1 */
60 struct Task *nch_ReadySigTask; /* Task to send ready signal to */
61 LONG nch_ReadySignal; /* Signal to send when ready */
62 struct Task *nch_Task; /* Subtask */
63 struct MsgPort *nch_TaskMsgPort; /* Message Port of Subtask */
64 struct MsgPort *nch_InpMsgPort; /* input.device MsgPort */
65 struct IOStdReq *nch_InpIOReq; /* input.device IORequest */
66 struct InputEvent nch_FakeEvent; /* Input Event */
67 struct Library *nch_InputBase; /* Pointer to input.device base */
68 IPTR nch_IfNum; /* Interface Number */
70 UWORD nch_LastOctave; /* Last octave used */
73 #endif /* SIMPLEMIDI_H */