libcdio  2.1.0
About: GNU libcdio is a library for CD-ROM and CD image access.
  Fossies Dox: libcdio-2.1.0.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

cdtext.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2018 Thomas Schmitt
3  Copyright (C) 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
25 const char *field2str (cdtext_field_t i)
26 {
27  return cdtext_field2str (i);
28 }
29 
30 const char *genre2str (cdtext_genre_t i)
31 {
32  return cdtext_genre2str (i);
33 }
34 
35 const char *lang2str (cdtext_lang_t i)
36 {
37  return cdtext_lang2str (i);
38 }
39 
49 char *get (cdtext_field_t key, track_t i_track)
50 {
51  return cdtext_get (p_cdtext, key, i_track);
52 }
53 
64 const char *getConst (cdtext_field_t key, track_t i_track)
65 {
66  return cdtext_get_const (p_cdtext, key, i_track);
67 }
68 
72 void set (cdtext_field_t key, track_t i_track, const uint8_t *value, const char *charset)
73 {
74  cdtext_set (p_cdtext, key, value, i_track, charset);
75 }
76 
81 {
82  return cdtext_get_language(p_cdtext);
83 }
84 
89 {
90  return cdtext_select_language(p_cdtext, lang);
91 }
92 
96 bool setLanguageIndex(int idx)
97 {
98  return cdtext_set_language_index(p_cdtext, idx);
99 }
100 
108 {
109  return cdtext_list_languages(p_cdtext);
110 }
111 
117 {
118  return cdtext_list_languages_v2(p_cdtext);
119 }
120 
121 
122 /*
123  * Local variables:
124  * c-file-style: "gnu"
125  * tab-width: 8
126  * indent-tabs-mode: nil
127  * End:
128  */
cdtext_get_const
const char * cdtext_get_const(const cdtext_t *p_cdtext, cdtext_field_t field, track_t track)
Definition: cdtext.c:289
getLanguage
cdtext_lang_t getLanguage()
Definition: cdtext.hpp:80
get
char * get(cdtext_field_t key, track_t i_track)
Definition: cdtext.hpp:49
cdtext_get
char * cdtext_get(const cdtext_t *p_cdtext, cdtext_field_t key, track_t track)
Definition: cdtext.c:269
listLanguagesV2
cdtext_lang_t * listLanguagesV2()
Definition: cdtext.hpp:116
cdtext_list_languages_v2
cdtext_lang_t * cdtext_list_languages_v2(cdtext_t *p_cdtext)
Definition: cdtext.c:411
set
void set(cdtext_field_t key, track_t i_track, const uint8_t *value, const char *charset)
Definition: cdtext.hpp:72
cdtext_genre_t
cdtext_genre_t
Enumeration of possible genre codes.
Definition: cdtext.h:62
track_t
uint8_t track_t
Definition: types.h:276
listLanguages
cdtext_lang_t * listLanguages()
Definition: cdtext.hpp:107
i
int i
Definition: cdinfo-linux.c:194
cdtext_select_language
bool cdtext_select_language(cdtext_t *p_cdtext, cdtext_lang_t language)
Definition: cdtext.c:459
cdtext_genre2str
const char * cdtext_genre2str(cdtext_genre_t i)
Definition: cdtext.c:215
field2str
const char * field2str(cdtext_field_t i)
Definition: cdtext.hpp:25
cdtext_set
void cdtext_set(cdtext_t *p_cdtext, cdtext_field_t key, const uint8_t *value, track_t track, const char *charset)
Definition: cdtext.c:568
cdtext_field2str
const char * cdtext_field2str(cdtext_field_t i)
Definition: cdtext.c:203
genre2str
const char * genre2str(cdtext_genre_t i)
Definition: cdtext.hpp:30
setLanguageIndex
bool setLanguageIndex(int idx)
Definition: cdtext.hpp:96
cdtext_set_language_index
bool cdtext_set_language_index(cdtext_t *p_cdtext, int idx)
Definition: cdtext.c:435
cdtext_lang2str
const char * cdtext_lang2str(cdtext_lang_t i)
Definition: cdtext.c:227
getConst
const char * getConst(cdtext_field_t key, track_t i_track)
Definition: cdtext.hpp:64
cdtext_list_languages
cdtext_lang_t * cdtext_list_languages(const cdtext_t *p_cdtext)
Definition: cdtext.c:369
cdtext_lang_t
cdtext_lang_t
Enumeration of possible CD-TEXT languages.
Definition: cdtext.h:101
selectLanguage
bool selectLanguage(cdtext_lang_t lang)
Definition: cdtext.hpp:88
lang2str
const char * lang2str(cdtext_lang_t i)
Definition: cdtext.hpp:35
cdtext_field_t
cdtext_field_t
Enumeration of CD-TEXT text fields.
Definition: cdtext.h:44
cdtext_get_language
cdtext_lang_t cdtext_get_language(const cdtext_t *p_cdtext)
Definition: cdtext.c:318