disc.h

Go to the documentation of this file.
00001 /* -*- c -*-
00002     $Id: disc_8h-source.html,v 1.9 2006/10/27 11:16:41 rocky Exp $
00003 
00004     Copyright (C) 2004, 2005, 2006 Rocky Bernstein <rocky@panix.com>
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 2 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, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 */
00020 
00024 #ifndef __CDIO_DISC_H__
00025 #define __CDIO_DISC_H__
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif /* __cplusplus */
00030 
00034   typedef enum {
00035     CDIO_DISC_MODE_CD_DA,           
00036     CDIO_DISC_MODE_CD_DATA,         
00037     CDIO_DISC_MODE_CD_XA,           
00038     CDIO_DISC_MODE_CD_MIXED,        
00039     CDIO_DISC_MODE_DVD_ROM,         
00040     CDIO_DISC_MODE_DVD_RAM,         
00041     CDIO_DISC_MODE_DVD_R,           
00042     CDIO_DISC_MODE_DVD_RW,          
00043     CDIO_DISC_MODE_DVD_PR,          
00044     CDIO_DISC_MODE_DVD_PRW,         
00045     CDIO_DISC_MODE_DVD_OTHER,       
00046     CDIO_DISC_MODE_NO_INFO,
00047     CDIO_DISC_MODE_ERROR,
00048     CDIO_DISC_MODE_CD_I         
00049   } discmode_t;
00050 
00051   extern const char *discmode2str[];
00052   
00058   discmode_t cdio_get_discmode (CdIo_t *p_cdio);
00059 
00065   lsn_t cdio_get_disc_last_lsn(const CdIo_t *p_cdio);
00066   
00070   uint8_t cdio_get_joliet_level(const CdIo_t *p_cdio);
00071 
00082   char * cdio_get_mcn (const CdIo_t *p_cdio);
00083 
00090   track_t cdio_get_num_tracks (const CdIo_t *p_cdio);
00091   
00095   bool cdio_is_discmode_cdrom (discmode_t discmode);
00096   
00100   bool cdio_is_discmode_dvd (discmode_t discmode);
00101   
00103 #define cdio_stat_size cdio_get_disc_last_lsn
00104 
00105 #ifdef __cplusplus
00106 }
00107 #endif /* __cplusplus */
00108 
00109 #endif /* __CDIO_DISC_H__ */

Generated on Fri Oct 27 06:38:08 2006 for libcdio by  doxygen 1.4.6