libcdio
0.83
Main Page
Data Structures
Files
File List
Globals
include
cdio
cdtext.h
Go to the documentation of this file.
1
/*
2
$Id: cdtext.h,v 1.14 2008/03/25 15:59:08 karl Exp $
3
4
Copyright (C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>
5
adapted from cuetools
6
Copyright (C) 2003 Svend Sanjay Sorensen <ssorensen@fastmail.fm>
7
8
This program is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*/
28
29
#ifndef __CDIO_CDTEXT_H__
30
#define __CDIO_CDTEXT_H__
31
32
#include <
cdio/cdio.h
>
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
/* __cplusplus */
37
38
#define MAX_CDTEXT_FIELDS 13
39
#define MIN_CDTEXT_FIELD 0
40
45
struct
cdtext
{
46
char
*
field
[
MAX_CDTEXT_FIELDS
];
47
};
48
52
typedef
enum
{
53
CDTEXT_ARRANGER
= 0,
54
CDTEXT_COMPOSER
= 1,
55
CDTEXT_DISCID
= 2,
56
CDTEXT_GENRE
= 3,
57
CDTEXT_MESSAGE
= 4,
58
CDTEXT_ISRC
= 5,
59
CDTEXT_PERFORMER
= 6,
60
CDTEXT_SIZE_INFO
= 7,
61
CDTEXT_SONGWRITER
= 8,
62
CDTEXT_TITLE
= 9,
63
CDTEXT_TOC_INFO
= 10,
64
CDTEXT_TOC_INFO2
= 11,
65
CDTEXT_UPC_EAN
= 12,
66
CDTEXT_INVALID
=
MAX_CDTEXT_FIELDS
67
}
cdtext_field_t
;
68
70
const
char
*
cdtext_field2str
(
cdtext_field_t
i);
71
76
void
cdtext_init
(
cdtext_t
*
cdtext
);
77
79
void
cdtext_destroy
(
cdtext_t
*
cdtext
);
80
89
char
*
cdtext_get
(
cdtext_field_t
key,
const
cdtext_t
*
cdtext
);
90
100
const
char
*
cdtext_get_const
(
cdtext_field_t
key,
const
cdtext_t
*
cdtext
);
101
106
cdtext_field_t
cdtext_is_keyword
(
const
char
*key);
107
111
void
cdtext_set
(
cdtext_field_t
key,
const
char
*value,
cdtext_t
*
cdtext
);
112
113
#ifdef __cplusplus
114
}
115
#endif
/* __cplusplus */
116
117
#endif
/* __CDIO_CDTEXT_H__ */
118
119
/*
120
* Local variables:
121
* c-file-style: "gnu"
122
* tab-width: 8
123
* indent-tabs-mode: nil
124
* End:
125
*/
Generated for libcdio by
1.8.1.1