Josh Coalson | 412fa3b | 2002-07-11 06:15:30 +0000 | [diff] [blame] | 1 | /* libxmms-flac - XMMS FLAC input plugin |
Josh Coalson | dea0f5a | 2009-01-07 07:31:28 +0000 | [diff] [blame] | 2 | * Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009 Daisuke Shimamura |
Josh Coalson | 412fa3b | 2002-07-11 06:15:30 +0000 | [diff] [blame] | 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 | * |
Miroslav Lichvar | 6a1f59b | 2012-12-04 17:36:05 +0100 | [diff] [blame] | 18 | * You should have received a copy of the GNU General Public License along |
| 19 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 20 | * with this program; if not, write to the Free Software Foundation, Inc., |
Josh Coalson | 412fa3b | 2002-07-11 06:15:30 +0000 | [diff] [blame] | 21 | */ |
| 22 | |
| 23 | |
Josh Coalson | 99ea640 | 2005-09-02 04:51:19 +0000 | [diff] [blame] | 24 | #ifndef FLAC__PLUGIN_XMMS__CHARSET_H |
| 25 | #define FLAC__PLUGIN_XMMS__CHARSET_H |
Josh Coalson | 412fa3b | 2002-07-11 06:15:30 +0000 | [diff] [blame] | 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 | |
Josh Coalson | 9745f25 | 2004-09-24 13:57:40 +0000 | [diff] [blame] | 44 | /* |
| 45 | * The returned strings are malloc()ed an must be free()d by the caller |
| 46 | */ |
| 47 | char *convert_from_utf8_to_user(const char *string); |
| 48 | char *convert_from_user_to_utf8(const char *string); |
Josh Coalson | 412fa3b | 2002-07-11 06:15:30 +0000 | [diff] [blame] | 49 | |
| 50 | GList *Charset_Create_List (void); |
Josh Coalson | cd6bc7c | 2004-09-26 03:17:21 +0000 | [diff] [blame] | 51 | GList *Charset_Create_List_UTF8_Only (void); |
Josh Coalson | 412fa3b | 2002-07-11 06:15:30 +0000 | [diff] [blame] | 52 | gchar *Charset_Get_Name_From_Title (gchar *charset_title); |
| 53 | gchar *Charset_Get_Title_From_Name (gchar *charset_name); |
| 54 | |
Josh Coalson | 412fa3b | 2002-07-11 06:15:30 +0000 | [diff] [blame] | 55 | #endif /* __CHARSET_H__ */ |
| 56 | |