Enable GUI option for 'custom command' connection. Don't g_free strings in
[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) 2000-2003 Ximian Inc.
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 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 General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef _CAMEL_CHARSET_MAP_H
23 #define _CAMEL_CHARSET_MAP_H
24
25 #ifdef __cplusplus
26 extern "C" {
27 #pragma }
28 #endif /* __cplusplus */
29
30 typedef struct _CamelCharset CamelCharset;
31
32 struct _CamelCharset {
33         unsigned int mask;
34         int level;
35 };
36
37 void camel_charset_init(CamelCharset *);
38 void camel_charset_step(CamelCharset *, const char *in, int len);
39
40 const char *camel_charset_best_name (CamelCharset *);
41
42 /* helper function */
43 const char *camel_charset_best(const char *in, int len);
44
45 const char *camel_charset_iso_to_windows (const char *isocharset);
46
47 #ifdef __cplusplus
48 }
49 #endif /* __cplusplus */
50
51 #endif /* ! _CAMEL_CHARSET_MAP_H */