libcdio  0.93
disc.h
Go to the documentation of this file.
1 /* -*- c -*-
2 
3  Copyright (C) 2004, 2005, 2006, 2008, 2010, 2012, 2014
4  Rocky Bernstein <rocky@gnu.org>
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
24 #ifndef CDIO_DISC_H_
25 #define CDIO_DISC_H_
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30 
36  typedef enum {
56  } discmode_t;
57 
58  extern const char *discmode2str[];
59 
68  uint8_t * cdio_get_cdtext_raw (CdIo_t *p_cdio);
69 
77  cdtext_t *cdio_get_cdtext (CdIo_t *p_cdio);
78 
85 
91  lsn_t cdio_get_disc_last_lsn(const CdIo_t *p_cdio);
92 
96  uint8_t cdio_get_joliet_level(const CdIo_t *p_cdio);
97 
108  char * cdio_get_mcn (const CdIo_t *p_cdio);
109 
116  track_t cdio_get_num_tracks (const CdIo_t *p_cdio);
117 
121  bool cdio_is_discmode_cdrom (discmode_t discmode);
122 
126  bool cdio_is_discmode_dvd (discmode_t discmode);
127 
131 #define cdio_stat_size cdio_get_disc_last_lsn
132 
133 #ifdef __cplusplus
134 }
135 #endif /* __cplusplus */
136 
137 #endif /* CDIO_DISC_H_ */
char * cdio_get_mcn(const CdIo_t *p_cdio)
Definition: disc.h:49
Definition: disc.h:43
Definition: disc.h:41
int32_t lsn_t
Definition: types.h:265
Definition: disc.h:52
lsn_t cdio_get_disc_last_lsn(const CdIo_t *p_cdio)
Definition: disc.h:45
const char * discmode2str[]
Definition: disc.h:47
uint8_t track_t
Definition: types.h:275
Definition: disc.h:40
discmode_t cdio_get_discmode(CdIo_t *p_cdio)
cdtext_t * cdio_get_cdtext(CdIo_t *p_cdio)
Definition: disc.h:50
Definition: disc.h:42
Definition: disc.h:54
Definition: disc.h:39
track_t cdio_get_num_tracks(const CdIo_t *p_cdio)
struct _CdIo CdIo_t
Definition: cdio.h:47
Definition: disc.h:37
struct cdtext_s cdtext_t
Definition: cdtext.h:201
Definition: disc.h:44
Definition: disc.h:53
Definition: disc.h:55
Definition: disc.h:48
uint8_t * cdio_get_cdtext_raw(CdIo_t *p_cdio)
Definition: disc.h:38
discmode_t
Definition: disc.h:36
uint8_t cdio_get_joliet_level(const CdIo_t *p_cdio)
bool cdio_is_discmode_cdrom(discmode_t discmode)
Definition: disc.h:51
bool cdio_is_discmode_dvd(discmode_t discmode)
Definition: disc.h:46