Updated Spanish translation
[anjuta-git-plugin.git] / libanjuta / anjuta-convert.h
blob5ae54b09e6dd8b1460bd1439da914593ccc02109
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 typedef enum
38 ANJUTA_CONVERT_ERROR_AUTO_DETECTION_FAILED = 1100
39 } GeditConvertError;
41 #define ANJUTA_CONVERT_ERROR anjuta_convert_error_quark()
42 GQuark anjuta_convert_error_quark (void);
45 gchar *anjuta_convert_to_utf8 (const gchar *content,
46 gsize len,
47 const AnjutaEncoding **encoding,
48 gsize *new_len,
49 GError **error);
51 gchar *anjuta_convert_from_utf8 (const gchar *content,
52 gsize len,
53 const AnjutaEncoding *encoding,
54 gsize *new_len,
55 GError **error);
57 #endif /* __ANJUTA_CONVERT_H__ */