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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 
20     motif.h: written by Vincent Pagel (pagel@loria.fr) 10/4/95
21 
22     */
23 
24 #ifndef ___MOTIF_H_
25 #define ___MOTIF_H_
26 
27 /*
28  * MESSAGE FROM KERNEL TO MOTIF
29  */
30 #define ERROR_MESSAGE -1
31 #define REFRESH_MESSAGE 1
32 #define HELPMODE_MESSAGE 2
33 #define TOTALTIME_MESSAGE 3
34 #define MASTERVOL_MESSAGE 4
35 #define FILENAME_MESSAGE 5
36 #define CURTIME_MESSAGE 6
37 #define NOTE_MESSAGE 7
38 #define PROGRAM_MESSAGE 8
39 #define VOLUME_MESSAGE 9
40 #define EXPRESSION_MESSAGE 10
41 #define PANNING_MESSAGE 11
42 #define SUSTAIN_MESSAGE 12
43 #define PITCH_MESSAGE 13
44 #define RESET_MESSAGE 14
45 #define CLOSE_MESSAGE 15
46 #define CMSG_MESSAGE 16
47 #define FILE_LIST_MESSAGE 17
48 #define NEXT_FILE_MESSAGE 18
49 #define PREV_FILE_MESSAGE 19
50 #define TUNE_END_MESSAGE 20
51 #define LYRIC_MESSAGE 21
52 
53 /*
54  * MESSAGE ON THE PIPE FROM MOTIF TOWARD KERNEL
55  */
56 #define MOTIF_CHANGE_VOLUME 1
57 #define MOTIF_CHANGE_LOCATOR 2
58 #define MOTIF_QUIT 3
59 #define MOTIF_PLAY_FILE 4
60 #define MOTIF_NEXT 5
61 #define MOTIF_PREV 6
62 #define MOTIF_RESTART 7
63 #define MOTIF_FWD 8
64 #define MOTIF_RWD 9
65 #define MOTIF_PAUSE 10
66 #define MOTIF_EXPAND 11
67 
68 
69 /*
70  * CONSTANTS FOR MOTIF MENUS
71  */
72 #define MENU_OPEN 1
73 #define MENU_QUIT 2
74 #define MENU_TOGGLE 3
75 
76 #define DIALOG_CANCEL 1
77 #define DIALOG_OK 2
78 #define DIALOG_ALL 3
79 
80 
81 /*
82  * Pipe function interfaces
83  */
84 extern void m_pipe_int_write(int c);
85 extern void m_pipe_int_read(int *c);
86 
87 extern void m_pipe_string_write(char *str);
88 extern void m_pipe_string_read(char *str);
89 
90 extern void m_pipe_open(void);
91 extern int  m_pipe_read_ready(void);
92 
93 void Launch_Motif_Process(int pipe_number);
94 
95 #endif /* ___MOTIF_H_ */
96