~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmidi/TIMIDITY/motif.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 
 
3
    TiMidity -- Experimental MIDI to WAVE converter
 
4
    Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.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., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
 
 
20
    motif.h: written by Vincent Pagel (pagel@loria.fr) 10/4/95
 
21
   
 
22
    */
 
23
 
 
24
/* 
 
25
 * MESSAGE FROM KERNEL TO MOTIF
 
26
 */
 
27
#define REFRESH_MESSAGE 1
 
28
#define HELPMODE_MESSAGE 2
 
29
#define TOTALTIME_MESSAGE 3
 
30
#define MASTERVOL_MESSAGE 4
 
31
#define FILENAME_MESSAGE 5
 
32
#define CURTIME_MESSAGE 6
 
33
#define NOTE_MESSAGE 7
 
34
#define PROGRAM_MESSAGE 8
 
35
#define VOLUME_MESSAGE 9
 
36
#define EXPRESSION_MESSAGE 10
 
37
#define PANNING_MESSAGE 11
 
38
#define SUSTAIN_MESSAGE 12
 
39
#define PITCH_MESSAGE 13
 
40
#define RESET_MESSAGE 14
 
41
#define CLOSE_MESSAGE 15
 
42
#define CMSG_MESSAGE 16
 
43
#define FILE_LIST_MESSAGE 17
 
44
#define NEXT_FILE_MESSAGE 18
 
45
#define PREV_FILE_MESSAGE 19
 
46
#define TUNE_END_MESSAGE 20
 
47
 
 
48
/* 
 
49
 * MESSAGE ON THE PIPE FROM MOTIF TOWARD KERNEL
 
50
 */
 
51
#define MOTIF_CHANGE_VOLUME 1
 
52
#define MOTIF_CHANGE_LOCATOR 2
 
53
#define MOTIF_QUIT 3
 
54
#define MOTIF_PLAY_FILE 4
 
55
#define MOTIF_NEXT 5
 
56
#define MOTIF_PREV 6
 
57
#define MOTIF_RESTART 7
 
58
#define MOTIF_FWD 8
 
59
#define MOTIF_RWD 9
 
60
#define MOTIF_PAUSE 10
 
61
 
 
62
 
 
63
/*
 
64
 * CONSTANTS FOR MOTIF MENUS
 
65
 */
 
66
#define MENU_OPEN 1
 
67
#define MENU_QUIT 2
 
68
#define MENU_TOGGLE 3
 
69
 
 
70
#define DIALOG_CANCEL 1
 
71
#define DIALOG_OK 2
 
72
#define DIALOG_ALL 3
 
73
 
 
74
 
 
75
/*
 
76
 * Pipe function interfaces
 
77
 */
 
78
void pipe_int_write(int c);
 
79
void pipe_int_read(int *c);
 
80
 
 
81
void pipe_string_write(const char *str);
 
82
void pipe_string_read(char *str);
 
83
 
 
84
void pipe_open(void);
 
85
int pipe_read_ready(void);
 
86
 
 
87
void Launch_Motif_Process(int pipe_number);
 
88