File: Mapper_ZILOG.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 (28 lines) | stat: -rw-r--r-- 650 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
#ifndef _MAPPER_ZILOG_H_
#define _MAPPER_ZILOG_H_

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

/* 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;
} DeviceMidiInfo;

typedef struct _DeviceData {
    DeviceMidiInfo Midi;
} DeviceData;

typedef struct _DeviceInformation {
    DeviceType Type;
    DeviceData Data;
    int fd;
} DeviceInformation;

#endif