Replace deprecated GLib symbols (as of GLib 2.34.x)
[platform/upstream/evolution-data-server.git] / camel / camel-iconv.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
4  *
5  *  Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22
23 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
24 #error "Only <camel/camel.h> can be included directly."
25 #endif
26
27 #ifndef CAMEL_ICONV_H
28 #define CAMEL_ICONV_H
29
30 #include <sys/types.h>
31 #include <iconv.h>
32 #include <glib.h>
33
34 G_BEGIN_DECLS
35
36 const gchar *   camel_iconv_locale_charset      (void);
37 const gchar *   camel_iconv_locale_language     (void);
38
39 const gchar *   camel_iconv_charset_name        (const gchar *charset);
40 const gchar *   camel_iconv_charset_language    (const gchar *charset);
41
42 iconv_t         camel_iconv_open                (const gchar *to,
43                                                  const gchar *from);
44 gsize           camel_iconv                     (iconv_t cd,
45                                                  const gchar **inbuf,
46                                                  gsize *inleft,
47                                                  gchar **outbuf,
48                                                  gsize *outleft);
49 void            camel_iconv_close               (iconv_t cd);
50
51 G_END_DECLS
52
53 #endif /* CAMEL_ICONV_H */