1 /* 2 * anjuta-encodings.h 3 * This file is part of anjuta 4 * 5 * Copyright (C) 2002-2005 Paolo Maggi 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 /* 24 * Modified by the anjuta Team, 2002-2005. See the AUTHORS file for a 25 * list of people on the anjuta Team. 26 * See the ChangeLog files for a list of changes. 27 * 28 * $Id$ 29 */ 30 31 #ifndef __ANJUTA_ENCODINGS_H__ 32 #define __ANJUTA_ENCODINGS_H__ 33 34 #include <glib.h> 35 #include <glib-object.h> 36 37 G_BEGIN_DECLS 38 39 typedef struct _AnjutaEncoding AnjutaEncoding; 40 41 #define ANJUTA_TYPE_ENCODING (anjuta_encoding_get_type ()) 42 43 GType anjuta_encoding_get_type (void) G_GNUC_CONST; 44 45 AnjutaEncoding *anjuta_encoding_copy (const AnjutaEncoding *enc); 46 void anjuta_encoding_free (AnjutaEncoding *enc); 47 48 const AnjutaEncoding *anjuta_encoding_get_from_charset (const gchar *charset); 49 const AnjutaEncoding *anjuta_encoding_get_from_index (gint index); 50 51 gchar *anjuta_encoding_to_string (const AnjutaEncoding *enc); 52 53 const gchar *anjuta_encoding_get_name (const AnjutaEncoding *enc); 54 const gchar *anjuta_encoding_get_charset (const AnjutaEncoding *enc); 55 56 const AnjutaEncoding *anjuta_encoding_get_utf8 (void); 57 const AnjutaEncoding *anjuta_encoding_get_current (void); 58 59 G_END_DECLS 60 61 #endif /* __ANJUTA_ENCODINGS_H__ */ 62 63