Mercurial > audlegacy
annotate Plugins/Input/cdaudio/cdinfo.h @ 1458:f12d7e208b43 trunk
[svn] Update FSF address in copyright notices. Update autotools templates.
author | chainsaw |
---|---|
date | Wed, 02 Aug 2006 15:44:07 -0700 |
parents | fa848bd484d8 |
children | 705d4c089fce |
rev | line source |
---|---|
61 | 1 /* |
2 * cdinfo.h Copyright 1999 Espen Skoglund <esk@ira.uka.de> | |
3 * Copyright 1999 Håvard Kvålen <havardk@sol.no> | |
4 * | |
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 2 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, write to the Free Software | |
1458
f12d7e208b43
[svn] Update FSF address in copyright notices. Update autotools templates.
chainsaw
parents:
61
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. |
61 | 19 */ |
20 #ifndef CDINFO_H | |
21 #define CDINFO_H | |
22 | |
23 #include <glib.h> | |
24 | |
25 /* | |
26 * For holding info on a single CD track. | |
27 */ | |
28 typedef struct { | |
29 gchar *artist; | |
30 gchar *title; | |
31 gint num; | |
32 } trackinfo_t; | |
33 | |
34 /* | |
35 * For holding info on a complete CD. | |
36 */ | |
37 typedef struct { | |
38 gboolean is_valid; | |
39 gchar *albname; | |
40 gchar *artname; | |
41 trackinfo_t tracks[100]; | |
42 } cdinfo_t; | |
43 | |
44 void cdda_cdinfo_flush(cdinfo_t * cdinfo); | |
45 cdinfo_t *cdda_cdinfo_new(void); | |
46 void cdda_cdinfo_delete(cdinfo_t * info); | |
47 void cdda_cdinfo_track_set(cdinfo_t * cdinfo, gint, gchar *, gchar *); | |
48 void cdda_cdinfo_cd_set(cdinfo_t * cdinfo, gchar *, gchar *); | |
49 gint cdda_cdinfo_get(cdinfo_t * cdinfo, gint num, gchar **, gchar **, | |
50 gchar **); | |
51 gboolean cdda_cdinfo_read_file(guint32 cddb_discid, cdinfo_t * cdinfo); | |
52 void cdda_cdinfo_write_file(guint32 cddb_discid, cdinfo_t * cdinfo); | |
53 | |
54 | |
55 #endif |