libcdio  2.1.0
disc.h
Go to the documentation of this file.
1 /* -*- c -*-
2 
3  Copyright (C) 2018 Thomas Schmitt
4  Copyright (C) 2004, 2005, 2006, 2008, 2010, 2012, 2014
5  Rocky Bernstein <rocky@gnu.org>
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
25 #ifndef CDIO_DISC_H_
26 #define CDIO_DISC_H_
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31 
37  typedef enum {
57  } discmode_t;
58 
59  extern const char *discmode2str[];
60 
72  uint8_t * cdio_get_cdtext_raw (CdIo_t *p_cdio);
73 
85  cdtext_t *cdio_get_cdtext (CdIo_t *p_cdio);
86 
92  discmode_t cdio_get_discmode (CdIo_t *p_cdio);
93 
99  lsn_t cdio_get_disc_last_lsn(const CdIo_t *p_cdio);
100 
104  uint8_t cdio_get_joliet_level(const CdIo_t *p_cdio);
105 
116  char * cdio_get_mcn (const CdIo_t *p_cdio);
117 
124  track_t cdio_get_num_tracks (const CdIo_t *p_cdio);
125 
129  bool cdio_is_discmode_cdrom (discmode_t discmode);
130 
134  bool cdio_is_discmode_dvd (discmode_t discmode);
135 
139 #define cdio_stat_size cdio_get_disc_last_lsn
140 
141 #ifdef __cplusplus
142 }
143 #endif /* __cplusplus */
144 
145 #endif /* CDIO_DISC_H_ */
char * cdio_get_mcn(const CdIo_t *p_cdio)
Definition: disc.h:50
Definition: disc.h:44
Definition: disc.h:42
int32_t lsn_t
Definition: types.h:266
Definition: disc.h:53
lsn_t cdio_get_disc_last_lsn(const CdIo_t *p_cdio)
Definition: disc.h:46
const char * discmode2str[]
Definition: disc.h:48
uint8_t track_t
Definition: types.h:276
Definition: disc.h:41
discmode_t cdio_get_discmode(CdIo_t *p_cdio)
cdtext_t * cdio_get_cdtext(CdIo_t *p_cdio)
Definition: disc.h:51
Definition: disc.h:43
Definition: disc.h:55
Definition: disc.h:40
track_t cdio_get_num_tracks(const CdIo_t *p_cdio)
struct _CdIo CdIo_t
Definition: cdio.h:47
Definition: disc.h:38
Definition: disc.h:45
Definition: disc.h:54
Definition: disc.h:56
Definition: disc.h:49
uint8_t * cdio_get_cdtext_raw(CdIo_t *p_cdio)
Definition: disc.h:39
struct cdtext_s cdtext_t
Opaque type for CD-Text.
Definition: cdtext.h:218
discmode_t
Definition: disc.h:37
uint8_t cdio_get_joliet_level(const CdIo_t *p_cdio)
bool cdio_is_discmode_cdrom(discmode_t discmode)
Definition: disc.h:52
bool cdio_is_discmode_dvd(discmode_t discmode)
Definition: disc.h:47