fixes based on a pass over everything with autoconf/automake
[platform/upstream/flac.git] / src / plugin_xmms / charset.h
1 /* libxmms-flac - XMMS FLAC input plugin
2  * Copyright (C) 2002  Daisuke Shimamura
3  *
4  * Almost from charset.h - 2001/12/04
5  *  EasyTAG - Tag editor for MP3 and OGG files
6  *  Copyright (C) 1999-2001  H蛆ard Kv虱en <havardk@xmms.org>
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 2 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, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  */
22
23
24 #ifndef __CHARSET_H__
25 #define __CHARSET_H__
26
27
28 /***************
29  * Declaration *
30  ***************/
31
32 typedef struct {
33         gchar *charset_title;
34         gchar *charset_name;
35 } CharsetInfo;
36
37 /* translated charset titles */
38 extern const CharsetInfo charset_trans_array[];
39
40 /**************
41  * Prototypes *
42  **************/
43
44 gchar* get_current_charset (void);
45
46 gchar* convert_from_file_to_user (const gchar *string);
47 gchar* convert_from_user_to_file (const gchar *string);
48
49 GList *Charset_Create_List (void);
50 gchar *Charset_Get_Name_From_Title (gchar *charset_title);
51 gchar *Charset_Get_Title_From_Name (gchar *charset_name);
52
53 gboolean test_conversion_charset (char *from, char *to);
54
55
56 #endif /* __CHARSET_H__ */
57