cddb_track.h

Go to the documentation of this file.
00001 /*
00002     $Id: cddb_track.h,v 1.20 2006/10/15 06:51:11 airborne Exp $
00003 
00004     Copyright (C) 2003, 2004, 2005 Kris Verbeeck <airborne@advalvas.be>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library 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 GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public
00017     License along with this library; if not, write to the
00018     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019     Boston, MA  02111-1307, USA.
00020 */
00021 
00022 #ifndef CDDB_TRACK_H
00023 #define CDDB_TRACK_H 1
00024 
00025 #ifdef __cplusplus
00026     extern "C" {
00027 #endif
00028 
00029 
00035 typedef struct cddb_track_s cddb_track_t;
00036 
00037 
00038 /* --- construction / destruction */
00039 
00040 
00046 cddb_track_t *cddb_track_new(void);
00047 
00056 void cddb_track_destroy(cddb_track_t *track);
00057 
00063 cddb_track_t *cddb_track_clone(const cddb_track_t *track);
00064 
00065 
00066 /* --- getters & setters --- */
00067 
00068 
00077 int cddb_track_get_number(const cddb_track_t *track);
00078 
00086 int cddb_track_get_frame_offset(const cddb_track_t *track);
00087 
00095 void cddb_track_set_frame_offset(cddb_track_t *track, int offset);
00096 
00109 int cddb_track_get_length(cddb_track_t *track);
00110 
00119 void cddb_track_set_length(cddb_track_t *track, int length);
00120 
00128 const char *cddb_track_get_title(const cddb_track_t *track);
00129 
00139 void cddb_track_set_title(cddb_track_t *track, const char *title);
00140 
00149 void cddb_track_append_title(cddb_track_t *track, const char *title);
00150 
00158 const char *cddb_track_get_artist(cddb_track_t *track);
00159 
00169 void cddb_track_set_artist(cddb_track_t *track, const char *artist);
00170 
00179 void cddb_track_append_artist(cddb_track_t *track, const char *artist);
00180 
00188 const char *cddb_track_get_ext_data(cddb_track_t *track);
00189 
00200 void cddb_track_set_ext_data(cddb_track_t *track, const char *ext_data);
00201 
00211 void cddb_track_append_ext_data(cddb_track_t *track, const char *ext_data);
00212 
00213 
00214 /* --- miscellaneous */
00215 
00216 
00228 void cddb_track_copy(cddb_track_t *dst, cddb_track_t *src);
00229 
00237 void cddb_track_print(cddb_track_t *track);
00238 
00239 
00240 #ifdef __cplusplus
00241     }
00242 #endif
00243 
00244 #endif /* CDDB_TRACK_H */

Generated on Sun Oct 15 14:49:14 2006 for libcddb by  doxygen 1.4.6