Initialize the gmime for upstream
[platform/upstream/gmime.git] / gmime / gmime.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*  GMime
3  *  Copyright (C) 2000-2012 Jeffrey Stedfast
4  *
5  *  This library is free software; you can redistribute it and/or
6  *  modify it under the terms of the GNU Lesser General Public License
7  *  as published by the Free Software Foundation; either version 2.1
8  *  of the License, or (at your option) any later version.
9  *
10  *  This library is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  *  Lesser General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Lesser General Public
16  *  License along with this library; if not, write to the Free
17  *  Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
18  *  02110-1301, USA.
19  */
20
21
22 #ifndef __GMIME_H__
23 #define __GMIME_H__
24
25 #include <glib.h>
26 #include <gmime/gmime-version.h>
27 #include <gmime/gmime-error.h>
28 #include <gmime/gmime-charset.h>
29 #include <gmime/gmime-iconv.h>
30 #include <gmime/gmime-iconv-utils.h>
31 #include <gmime/gmime-param.h>
32 #include <gmime/gmime-content-type.h>
33 #include <gmime/gmime-disposition.h>
34 #include <gmime/gmime-data-wrapper.h>
35 #include <gmime/gmime-object.h>
36 #include <gmime/gmime-part.h>
37 #include <gmime/gmime-part-iter.h>
38 #include <gmime/gmime-multipart.h>
39 #include <gmime/gmime-multipart-encrypted.h>
40 #include <gmime/gmime-multipart-signed.h>
41 #include <gmime/gmime-message.h>
42 #include <gmime/gmime-message-part.h>
43 #include <gmime/gmime-message-partial.h>
44 #include <gmime/internet-address.h>
45 #include <gmime/gmime-encodings.h>
46 #include <gmime/gmime-parser.h>
47 #include <gmime/gmime-utils.h>
48 #include <gmime/gmime-stream.h>
49 #include <gmime/gmime-stream-buffer.h>
50 #include <gmime/gmime-stream-cat.h>
51 #include <gmime/gmime-stream-file.h>
52 #include <gmime/gmime-stream-filter.h>
53 #include <gmime/gmime-stream-fs.h>
54 #include <gmime/gmime-stream-gio.h>
55 #include <gmime/gmime-stream-mem.h>
56 #include <gmime/gmime-stream-mmap.h>
57 #include <gmime/gmime-stream-null.h>
58 #include <gmime/gmime-stream-pipe.h>
59 #include <gmime/gmime-filter.h>
60 #include <gmime/gmime-filter-basic.h>
61 #include <gmime/gmime-filter-best.h>
62 #include <gmime/gmime-filter-charset.h>
63 #include <gmime/gmime-filter-crlf.h>
64 #include <gmime/gmime-filter-enriched.h>
65 #include <gmime/gmime-filter-from.h>
66 #include <gmime/gmime-filter-gzip.h>
67 #include <gmime/gmime-filter-html.h>
68 #include <gmime/gmime-filter-md5.h>
69 #include <gmime/gmime-filter-strip.h>
70 #include <gmime/gmime-filter-windows.h>
71 #include <gmime/gmime-filter-yenc.h>
72 #include <gmime/gmime-crypto-context.h>
73 #include <gmime/gmime-pkcs7-context.h>
74 #include <gmime/gmime-gpg-context.h>
75
76 G_BEGIN_DECLS
77
78 /* GMIME version */
79
80 /**
81  * gmime_major_version:
82  *
83  * GMime's major version.
84  **/
85 extern const guint gmime_major_version;
86
87 /**
88  * gmime_minor_version:
89  *
90  * GMime's minor version.
91  **/
92 extern const guint gmime_minor_version;
93
94 /**
95  * gmime_micro_version:
96  *
97  * GMime's micro version.
98  **/
99 extern const guint gmime_micro_version;
100
101 /**
102  * gmime_interface_age:
103  *
104  * GMime's interface age.
105  **/
106 extern const guint gmime_interface_age;
107
108 /**
109  * gmime_binary_age:
110  *
111  * GMime's binary age.
112  **/
113 extern const guint gmime_binary_age;
114
115 gboolean g_mime_check_version (guint major, guint minor, guint micro);
116
117
118 /**
119  * GMIME_ENABLE_RFC2047_WORKAROUNDS:
120  *
121  * Initialization flag to enable workarounds for badly formed rfc2047
122  * encoded-words.
123  **/
124 #define GMIME_ENABLE_RFC2047_WORKAROUNDS  (1 << 0)
125
126 void g_mime_init (guint32 flags);
127 void g_mime_shutdown (void);
128
129 G_END_DECLS
130
131 #endif /* __GMIME_H__ */