5555 * type definitions
5656 */
5757
58- typedef struct seq_oss_devinfo_t seq_oss_devinfo_t ;
59- typedef struct seq_oss_writeq_t seq_oss_writeq_t ;
60- typedef struct seq_oss_readq_t seq_oss_readq_t ;
61- typedef struct seq_oss_timer_t seq_oss_timer_t ;
62- typedef struct seq_oss_synthinfo_t seq_oss_synthinfo_t ;
63- typedef struct seq_oss_synth_sysex_t seq_oss_synth_sysex_t ;
64- typedef struct seq_oss_chinfo_t seq_oss_chinfo_t ;
6558typedef unsigned int reltime_t ;
6659typedef unsigned int abstime_t ;
67- typedef union evrec_t evrec_t ;
6860
6961
7062/*
7163 * synthesizer channel information
7264 */
73- struct seq_oss_chinfo_t {
65+ struct seq_oss_chinfo {
7466 int note , vel ;
7567};
7668
7769/*
7870 * synthesizer information
7971 */
80- struct seq_oss_synthinfo_t {
81- snd_seq_oss_arg_t arg ;
82- seq_oss_chinfo_t * ch ;
83- seq_oss_synth_sysex_t * sysex ;
72+ struct seq_oss_synthinfo {
73+ struct snd_seq_oss_arg arg ;
74+ struct seq_oss_chinfo * ch ;
75+ struct seq_oss_synth_sysex * sysex ;
8476 int nr_voices ;
8577 int opened ;
8678 int is_midi ;
@@ -92,14 +84,14 @@ struct seq_oss_synthinfo_t {
9284 * sequencer client information
9385 */
9486
95- struct seq_oss_devinfo_t {
87+ struct seq_oss_devinfo {
9688
9789 int index ; /* application index */
9890 int cseq ; /* sequencer client number */
9991 int port ; /* sequencer port number */
10092 int queue ; /* sequencer queue number */
10193
102- snd_seq_addr_t addr ; /* address of this device */
94+ struct snd_seq_addr addr ; /* address of this device */
10395
10496 int seq_mode ; /* sequencer mode */
10597 int file_mode ; /* file access */
@@ -109,17 +101,17 @@ struct seq_oss_devinfo_t {
109101
110102 /* synth device table */
111103 int max_synthdev ;
112- seq_oss_synthinfo_t synths [SNDRV_SEQ_OSS_MAX_SYNTH_DEVS ];
104+ struct seq_oss_synthinfo synths [SNDRV_SEQ_OSS_MAX_SYNTH_DEVS ];
113105 int synth_opened ;
114106
115107 /* output queue */
116- seq_oss_writeq_t * writeq ;
108+ struct seq_oss_writeq * writeq ;
117109
118110 /* midi input queue */
119- seq_oss_readq_t * readq ;
111+ struct seq_oss_readq * readq ;
120112
121113 /* timer */
122- seq_oss_timer_t * timer ;
114+ struct seq_oss_timer * timer ;
123115};
124116
125117
@@ -133,24 +125,24 @@ int snd_seq_oss_delete_client(void);
133125
134126/* device file interface */
135127int snd_seq_oss_open (struct file * file , int level );
136- void snd_seq_oss_release (seq_oss_devinfo_t * dp );
137- int snd_seq_oss_ioctl (seq_oss_devinfo_t * dp , unsigned int cmd , unsigned long arg );
138- int snd_seq_oss_read (seq_oss_devinfo_t * dev , char __user * buf , int count );
139- int snd_seq_oss_write (seq_oss_devinfo_t * dp , const char __user * buf , int count , struct file * opt );
140- unsigned int snd_seq_oss_poll (seq_oss_devinfo_t * dp , struct file * file , poll_table * wait );
128+ void snd_seq_oss_release (struct seq_oss_devinfo * dp );
129+ int snd_seq_oss_ioctl (struct seq_oss_devinfo * dp , unsigned int cmd , unsigned long arg );
130+ int snd_seq_oss_read (struct seq_oss_devinfo * dev , char __user * buf , int count );
131+ int snd_seq_oss_write (struct seq_oss_devinfo * dp , const char __user * buf , int count , struct file * opt );
132+ unsigned int snd_seq_oss_poll (struct seq_oss_devinfo * dp , struct file * file , poll_table * wait );
141133
142- void snd_seq_oss_reset (seq_oss_devinfo_t * dp );
143- void snd_seq_oss_drain_write (seq_oss_devinfo_t * dp );
134+ void snd_seq_oss_reset (struct seq_oss_devinfo * dp );
135+ void snd_seq_oss_drain_write (struct seq_oss_devinfo * dp );
144136
145137/* */
146- void snd_seq_oss_process_queue (seq_oss_devinfo_t * dp , abstime_t time );
138+ void snd_seq_oss_process_queue (struct seq_oss_devinfo * dp , abstime_t time );
147139
148140
149141/* proc interface */
150- void snd_seq_oss_system_info_read (snd_info_buffer_t * buf );
151- void snd_seq_oss_midi_info_read (snd_info_buffer_t * buf );
152- void snd_seq_oss_synth_info_read (snd_info_buffer_t * buf );
153- void snd_seq_oss_readq_info_read (seq_oss_readq_t * q , snd_info_buffer_t * buf );
142+ void snd_seq_oss_system_info_read (struct snd_info_buffer * buf );
143+ void snd_seq_oss_midi_info_read (struct snd_info_buffer * buf );
144+ void snd_seq_oss_synth_info_read (struct snd_info_buffer * buf );
145+ void snd_seq_oss_readq_info_read (struct seq_oss_readq * q , struct snd_info_buffer * buf );
154146
155147/* file mode macros */
156148#define is_read_mode (mode ) ((mode) & SNDRV_SEQ_OSS_FILE_READ)
@@ -159,21 +151,21 @@ void snd_seq_oss_readq_info_read(seq_oss_readq_t *q, snd_info_buffer_t *buf);
159151
160152/* dispatch event */
161153static inline int
162- snd_seq_oss_dispatch (seq_oss_devinfo_t * dp , snd_seq_event_t * ev , int atomic , int hop )
154+ snd_seq_oss_dispatch (struct seq_oss_devinfo * dp , struct snd_seq_event * ev , int atomic , int hop )
163155{
164156 return snd_seq_kernel_client_dispatch (dp -> cseq , ev , atomic , hop );
165157}
166158
167159/* ioctl */
168160static inline int
169- snd_seq_oss_control (seq_oss_devinfo_t * dp , unsigned int type , void * arg )
161+ snd_seq_oss_control (struct seq_oss_devinfo * dp , unsigned int type , void * arg )
170162{
171163 return snd_seq_kernel_client_ctl (dp -> cseq , type , arg );
172164}
173165
174166/* fill the addresses in header */
175167static inline void
176- snd_seq_oss_fill_addr (seq_oss_devinfo_t * dp , snd_seq_event_t * ev ,
168+ snd_seq_oss_fill_addr (struct seq_oss_devinfo * dp , struct snd_seq_event * ev ,
177169 int dest_client , int dest_port )
178170{
179171 ev -> queue = dp -> queue ;
0 commit comments