File: types.h

package info (click to toggle)
libmirage 3.2.10-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,540 kB
  • sloc: ansic: 25,454; xml: 108; makefile: 11
file content (67 lines) | stat: -rw-r--r-- 2,229 bytes parent folder | download
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 *  libMirage: type definitions
 *  Copyright (C) 2013-2014 Rok Mandeljc
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef __MIRAGE_TYPES_H__
#define __MIRAGE_TYPES_H__

/* For now, only definitions that are shared among several headers are
   listed here, and the rest are kept in their corresponding headers. */

G_BEGIN_DECLS

typedef struct _MirageDisc MirageDisc;
typedef struct _MirageFragment MirageFragment;
typedef struct _MirageIndex MirageIndex;
typedef struct _MirageLanguage MirageLanguage;
typedef struct _MirageSector MirageSector;
typedef struct _MirageSession MirageSession;
typedef struct _MirageTrack MirageTrack;


/**
 * MirageSectorType:
 * @MIRAGE_SECTOR_MODE0: Mode 0 sector
 * @MIRAGE_SECTOR_AUDIO: Audio sector
 * @MIRAGE_SECTOR_MODE1: Mode 1 sector
 * @MIRAGE_SECTOR_MODE2: Mode 2 Formless sector
 * @MIRAGE_SECTOR_MODE2_FORM1: Mode 2 Form 1 sector
 * @MIRAGE_SECTOR_MODE2_FORM2: Mode 2 Form 2 sector
 * @MIRAGE_SECTOR_MODE2_MIXED: Mode 2 Mixed sector
 * @MIRAGE_SECTOR_RAW: raw sector (automatic sector type detection)
 * @MIRAGE_SECTOR_RAW_SCRAMBLED: scrambled raw sector (automatic sector type detection)
 *
 * Sector type. Also implies track mode.
 */
typedef enum _MirageSectorType
{
    MIRAGE_SECTOR_MODE0,
    MIRAGE_SECTOR_AUDIO,
    MIRAGE_SECTOR_MODE1,
    MIRAGE_SECTOR_MODE2,
    MIRAGE_SECTOR_MODE2_FORM1,
    MIRAGE_SECTOR_MODE2_FORM2,
    MIRAGE_SECTOR_MODE2_MIXED,
    MIRAGE_SECTOR_RAW,
    MIRAGE_SECTOR_RAW_SCRAMBLED,
} MirageSectorType;


G_END_DECLS

#endif /* __MIRAGE_TYPES_H__ */