summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/midi/midi.h
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2001-02-18 15:58:56 +0000
committertanimura <tanimura@FreeBSD.org>2001-02-18 15:58:56 +0000
commit548e16646ad1b2c4238bf0ca29ed5c33e1efff74 (patch)
tree5bc45e68b007a71e18767b83c5849c71b745ecdb /sys/dev/sound/midi/midi.h
parent18d474781ff1acbc67429e2db4fa0cf9a0d3c51e (diff)
downloadFreeBSD-src-548e16646ad1b2c4238bf0ca29ed5c33e1efff74.zip
FreeBSD-src-548e16646ad1b2c4238bf0ca29ed5c33e1efff74.tar.gz
Encapselate midi_info, nmidi and nsynth into midi.c.
Diffstat (limited to 'sys/dev/sound/midi/midi.h')
-rw-r--r--sys/dev/sound/midi/midi.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/sound/midi/midi.h b/sys/dev/sound/midi/midi.h
index a702222..b0982c8 100644
--- a/sys/dev/sound/midi/midi.h
+++ b/sys/dev/sound/midi/midi.h
@@ -257,16 +257,16 @@ struct _mididev_info {
#define DEB(x)
#endif
- extern mididev_info midi_info[NMIDI_MAX];
-
- extern u_long nmidi;
- extern u_long nsynth;
-
/* This is the generic midi drvier initializer. */
int midiinit(mididev_info *d, device_t dev);
/* This provides an access to the mididev_info. */
mididev_info *get_mididev_info(dev_t i_dev, int *unit);
+ mididev_info *get_mididev_info_unit(int unit);
+ mididev_info *create_mididev_info_unit(int *unit, int type);
+ int mididev_info_number(void);
+#define MDT_MIDI (0)
+#define MDT_SYNTH (1)
/* These are the generic methods for a midi driver. */
d_open_t midi_open;
OpenPOWER on IntegriCloud