Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[platform/upstream/evolution-data-server.git] / camel / camel-charset-map.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4  *
5  *  Authors: Michael Zucchi <notzed@ximian.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2 of the GNU Lesser General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21
22 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
23 #error "Only <camel/camel.h> can be included directly."
24 #endif
25
26 #ifndef CAMEL_CHARSET_MAP_H
27 #define CAMEL_CHARSET_MAP_H
28
29 #include <glib.h>
30
31 G_BEGIN_DECLS
32
33 typedef struct _CamelCharset CamelCharset;
34
35 struct _CamelCharset {
36         guint mask;
37         gint level;
38 };
39
40 void camel_charset_init (CamelCharset *);
41 void camel_charset_step (CamelCharset *, const gchar *in, gint len);
42
43 const gchar *camel_charset_best_name (CamelCharset *);
44
45 /* helper function */
46 const gchar *camel_charset_best (const gchar *in, gint len);
47
48 const gchar *camel_charset_iso_to_windows (const gchar *isocharset);
49
50 G_END_DECLS
51
52 #endif /* CAMEL_CHARSET_MAP_H */