Updated Spanish translation
[anjuta.git] / libanjuta / anjuta-convert.h
blob59e28279085c35c8107e722e7dbde8596077bce9
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * anjuta-convert.h
4 * This file is part of anjuta
6 * Copyright (C) 2003 - Paolo Maggi
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.
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.
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., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
25 * Modified by the anjuta Team, 2003. See the AUTHORS file for a
26 * list of people on the anjuta Team.
27 * See the ChangeLog files for a list of changes.
30 #ifndef __GEDIT_CONVERT_H__
31 #define __GEDIT_CONVERT_H__
33 #include <glib.h>
34 #include "anjuta-encodings.h"
36 /**
37 * AnjutaConvertError:
38 * @ANJUTA_CONVERT_ERROR_AUTO_DETECTION_FAILED: The charset couldn't be autodetected
40 * Possibly errors that can occur during charset conversion
42 typedef enum
44 ANJUTA_CONVERT_ERROR_AUTO_DETECTION_FAILED = 1100
45 } AnjutaConvertError;
47 #define ANJUTA_CONVERT_ERROR anjuta_convert_error_quark()
48 GQuark anjuta_convert_error_quark (void);
51 gchar *anjuta_convert_to_utf8 (const gchar *content,
52 gsize len,
53 const AnjutaEncoding **encoding,
54 gsize *new_len,
55 GError **error);
57 gchar *anjuta_convert_from_utf8 (const gchar *content,
58 gsize len,
59 const AnjutaEncoding *encoding,
60 gsize *new_len,
61 GError **error);
63 #endif /* __ANJUTA_CONVERT_H__ */