diff options
Diffstat (limited to 'mono/Global.custom')
-rw-r--r-- | mono/Global.custom | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mono/Global.custom b/mono/Global.custom new file mode 100644 index 0000000..0ef8f6c --- /dev/null +++ b/mono/Global.custom @@ -0,0 +1,25 @@ + public enum InitFlags { + None = 0, + EnableRfc2047Workarounds = (1 << 0), + } + + [DllImport("gmime")] + static extern void g_mime_init (int flags); + + public static void Init () + { + g_mime_init (0); + } + + public static void Init (InitFlags flags) + { + g_mime_init ((int) flags); + } + + [DllImport("gmime")] + static extern void g_mime_shutdown (); + + public static void Shutdown () + { + g_mime_shutdown (); + } |