1 /*
2     TiMidity++ -- MIDI to WAVE converter and player
3     Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>
4     Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
5 
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10 
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 
20     xaw_p.h - defines for communiction between server and client for Xaw interface.
21        written by Yair Kalvariski (cesium2@gmail.com)
22 */
23 
24 #ifndef _XAW_P_H_
25 #define _XAW_P_H_
26 
27 typedef enum {
28   M_PAUSE = 'A',
29   M_TITLE = 'e',
30   M_LISTITEM = 'E',
31   M_LYRIC = 'L',
32   M_LOADING_DONE = 'l',
33   M_SET_MODE = 'm',
34   M_PLAY_END = 'O',
35   M_QUIT = 'Q',
36   M_SAVE_PLAYLIST = 's',
37   M_CUR_TIME = 't',
38   M_TOTAL_TIME = 'T',
39   M_VOLUME = 'V',
40   M_FILE_LIST = 'X',
41   M_CHECKPOST = 'Z', /* Should match CHECKPOST below */
42 
43 /* Used only when querying outputs at start */
44   M_FILE_OUTPUT = 'F',
45   M_FILE_CUR_OUTPUT = 'f',
46   M_DEVICE_OUTPUT = 'O',
47   M_DEVICE_CUR_OUTPUT = 'o'
48 } toclient_t;
49 
50 #define CHECKPOST "Z"
51 
52 /* Used by x_trace only, should be different from those above in toclient_t */
53 typedef enum {
54   MT_REDRAW_TRACE = 'R',
55   MT_VOICES = 'v',
56     MTV_LAST_VOICES_NUM = 'l',
57     MTV_TOTAL_VOICES = 'L',
58   MT_MUTE = 'M',
59   MT_NOTE = 'Y',
60   MT_INST_NAME = 'I',
61   MT_IS_DRUM = 'i',
62   MT_UPDATE_TIMER = 'U',
63   MT_PITCH_OFFSET = 'o',
64   MT_PITCH = 'p',
65   MT_PANEL_INFO = 'P',
66     MTP_PANNING = 'A',
67     MTP_PITCH_BEND = 'B',
68     MTP_TONEBANK = 'b',
69     MTP_REVERB = 'r',
70     MTP_CHORUS = 'c',
71     MTP_SUSTAIN = 'S',
72     MTP_PROGRAM = 'P',
73     MTP_EXPRESSION = 'E',
74     MTP_VOLUME = 'V',
75   MT_RATIO = 'q',
76   MT_TEMPO = 'r'
77 } totracer_t;
78 
79 /* Sent back to the interface control */
80 typedef enum {
81   S_DEL_CUR_PLAYLIST = 'A',
82   S_PREV = 'B',
83   S_BACK = 'b',
84   S_SET_CHORUS = 'C',
85   S_SET_RANDOM = 'D',
86   S_DEL_FROM_PLAYLIST = 'd',
87   S_SET_OPTIONS = 'E',
88   S_FWD = 'f',
89   S_TOGGLE_SPEC = 'g',
90   S_PLAY_FILE = 'L',
91   S_SET_MUTE = 'M',
92   S_NEXT = 'N',
93   S_INC_VOL = 'o',
94   S_DEC_VOL = 'O',
95   S_PLAY = 'P',
96   S_SET_PLAYMODE = 'p',
97   S_TOGGLE_AUTOQUIT = 'q',
98   S_SET_REPEAT = 'R',
99   S_STOP = 'S',
100   S_SAVE_PLAYLIST = 's',
101   S_ENABLE_TRACE = 't',
102     ST_RESET = 'R',
103   S_SET_TIME = 'T',
104   S_SET_VOL_BEFORE_PLAYING = 'v',
105   S_SET_VOL = 'V',
106   S_QUIT = 'Q',
107   S_TOGGLE_PAUSE = 'U',
108   S_SET_RECORDING = 'W',
109   S_STOP_RECORDING = 'w',
110     SR_USER_STOP = 'S',
111   S_ADD_TO_PLAYLIST = 'X',
112   S_INC_PITCH = '+',
113   S_DEC_PITCH = '-',
114   S_INC_SPEED = '>',
115   S_DEC_SPEED = '<',
116   S_SET_SOLO = '.'
117 } toserver_t;
118 
119 #define CH_END_TOKEN '|'
120 #endif /* _XAW_P_H_ */
121