libcdio  0.82
disc.h
Go to the documentation of this file.
00001 /* -*- c -*-
00002     $Id: disc.h,v 1.9 2008/03/25 15:59:09 karl Exp $
00003 
00004     Copyright (C) 2004, 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
00005 
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00023 #ifndef __CDIO_DISC_H__
00024 #define __CDIO_DISC_H__
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif /* __cplusplus */
00029 
00033   typedef enum {
00034     CDIO_DISC_MODE_CD_DA,           
00035     CDIO_DISC_MODE_CD_DATA,         
00036     CDIO_DISC_MODE_CD_XA,           
00037     CDIO_DISC_MODE_CD_MIXED,        
00038     CDIO_DISC_MODE_DVD_ROM,         
00039     CDIO_DISC_MODE_DVD_RAM,         
00040     CDIO_DISC_MODE_DVD_R,           
00041     CDIO_DISC_MODE_DVD_RW,          
00042     CDIO_DISC_MODE_DVD_PR,          
00043     CDIO_DISC_MODE_DVD_PRW,         
00044     CDIO_DISC_MODE_DVD_OTHER,       
00045     CDIO_DISC_MODE_NO_INFO,
00046     CDIO_DISC_MODE_ERROR,
00047     CDIO_DISC_MODE_CD_I         
00048   } discmode_t;
00049 
00050   extern const char *discmode2str[];
00051   
00057   discmode_t cdio_get_discmode (CdIo_t *p_cdio);
00058 
00064   lsn_t cdio_get_disc_last_lsn(const CdIo_t *p_cdio);
00065   
00069   uint8_t cdio_get_joliet_level(const CdIo_t *p_cdio);
00070 
00081   char * cdio_get_mcn (const CdIo_t *p_cdio);
00082 
00089   track_t cdio_get_num_tracks (const CdIo_t *p_cdio);
00090   
00094   bool cdio_is_discmode_cdrom (discmode_t discmode);
00095   
00099   bool cdio_is_discmode_dvd (discmode_t discmode);
00100   
00102 #define cdio_stat_size cdio_get_disc_last_lsn
00103 
00104 #ifdef __cplusplus
00105 }
00106 #endif /* __cplusplus */
00107 
00108 #endif /* __CDIO_DISC_H__ */

Generated for libcdio by doxygen 1.7.6.1