File: Mapper_SGI.h

package info (click to toggle)
rosegarden 2.1-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,652 kB
  • ctags: 4,273
  • sloc: ansic: 42,081; makefile: 4,042; sh: 1,711; tcl: 320
file content (37 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _MAPPER_SGI_H_
#define _MAPPER_SGI_H_

#include <stdio.h>
#include <sys/bsd_types.h>
#include <sys/types.h>
#include <dmedia/midi.h>

#define SGIMidiPortClosed  0
#define SGIMidiPortOpenIn  1
#define SGIMidiPortOpenOut 2
#define SGIMidiPortFailed -1

/* All these wrapping structs for the device name are
   needed so as to provide a uniform appearance for code
   elsewhere (e.g. EventListWindow in the sequencer) that
   needs to get at the name field of a DeviceInformation
   object without knowing what sort it is */

typedef struct _DeviceMidiInfo {
    char *name;			/* as returned from mdGetName() */
} DeviceMidiInfo;

typedef struct _DeviceData {
    DeviceMidiInfo Midi;
} DeviceData;

typedef struct _DeviceInformation {

    DeviceType Type;
    DeviceData Data;
    MDport MidiPort;
    int MidiPortStatus;

} DeviceInformation;

#endif