libcdio  0.83
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 {
47  };
48 
52  typedef enum {
68 
70  const char *cdtext_field2str (cdtext_field_t i);
71 
76  void cdtext_init (cdtext_t *cdtext);
77 
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 doxygen 1.8.1.1