Logo Search packages:      
Sourcecode: tcd version File versions  Download package

cddb.h

/* This file is part of TCD 2.0.
   cddb.h - Header file for CDDB routines.

   Copyright (C) 1997-98 Tim P. Gerla <timg@rrv.net>
   
   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., 675 Mass Ave, Cambridge, MA 02139, USA.
                                    
   Tim P. Gerla
   RR 1, Box 40
   Climax, MN  56523
   timg@rrv.net
*/

#ifndef TCD_CDDB_H
#define TCD_CDDB_H

#include <SDL/SDL.h>

#include "tcd.h"

/**
 * Reads the disc and track information from a CDDB data base.
 * Preconditions:
 * - the expression CD_INDRIVE(cdrom->status) shall be true.
 */
extern int tcd_readdiscinfo(struct cd_info *cd, const SDL_CD *cdrom);

/**
 * Writes the disc and track information into a CDDB data base.
 * Preconditions:
 * - the expression CD_INDRIVE(cdrom->status) shall be true.
 */
extern int tcd_writediscinfo(struct cd_info *cd, const SDL_CD *cdrom);

/**
 * Clears the disc and track information.
 */
extern void tcd_cleardiscinfo(struct cd_info *cd);

#endif /* TCD_CDDB_H */

Generated by  Doxygen 1.6.0   Back to index