1 /* plugin_common - Routines common to several plugins 2 * Copyright (C) 2002-2009 Josh Coalson 3 * Copyright (C) 2011-2016 Xiph.Org Foundation 4 * 5 * Only slightly modified charset.h from: 6 * charset.h - 2001/12/04 7 * EasyTAG - Tag editor for MP3 and OGG files 8 * Copyright (C) 1999-2001 H蛆ard Kv虱en <havardk@xmms.org> 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License along 21 * with this program; if not, write to the Free Software Foundation, Inc., 22 * with this program; if not, write to the Free Software Foundation, Inc., 23 */ 24 25 26 #ifndef FLAC__PLUGIN_COMMON__CHARSET_H 27 #define FLAC__PLUGIN_COMMON__CHARSET_H 28 29 30 /************** 31 * Prototypes * 32 **************/ 33 34 char *FLAC_plugin__charset_get_current(void); 35 char *FLAC_plugin__charset_convert_string(const char *string, char *from, char *to); 36 37 /* returns 1 for success, 0 for failure or no iconv */ 38 int FLAC_plugin__charset_test_conversion(char *from, char *to); 39 40 #endif 41