aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mono/Evolution.cs
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-05-17 19:01:47 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-05-17 19:01:47 +0800
commitd8b428ec123291244f1366dc7a2309b845367d45 (patch)
tree818f7e219258652b25c0a648ada034955da2de06 /plugins/mono/Evolution.cs
parent9700e3678e1a683c99291cd244f6370308bd5ff6 (diff)
downloadgsoc2013-evolution-d8b428ec123291244f1366dc7a2309b845367d45.tar.gz
gsoc2013-evolution-d8b428ec123291244f1366dc7a2309b845367d45.tar.zst
gsoc2013-evolution-d8b428ec123291244f1366dc7a2309b845367d45.zip
added initial e_error wrapper.
2005-05-17 Not Zed <NotZed@Ximian.com> * Evolution.cs: added initial e_error wrapper. * Camel.cs: added multipart & contenttype wrappers. svn path=/trunk/; revision=29376
Diffstat (limited to 'plugins/mono/Evolution.cs')
-rw-r--r--plugins/mono/Evolution.cs62
1 files changed, 23 insertions, 39 deletions
diff --git a/plugins/mono/Evolution.cs b/plugins/mono/Evolution.cs
index 99772d8ca2..0db54405b3 100644
--- a/plugins/mono/Evolution.cs
+++ b/plugins/mono/Evolution.cs
@@ -4,45 +4,6 @@ using System.Reflection;
using Camel;
-[StructLayout (LayoutKind.Sequential)]
-struct EMPopupTargetSelect {
- int type;
- int mask;
- IntPtr parent;
- IntPtr folder;
- string folderURI;
- IntPtr uids;
-};
-
-[StructLayout (LayoutKind.Sequential)]
-struct EMPopupTargetFolder {
- int type;
- int mask;
- IntPtr parent;
- string folderURI;
-};
-
-
-[StructLayout (LayoutKind.Sequential)]
-struct aCamelObject {
-IntPtr klass;
-uint magic;
-IntPtr hooks;
-uint bitfield1;
-// ref_count:24
-uint ref_count { // highly non-portable
- get { return (bitfield1 & 0xffffff) >> 0; }
- set { bitfield1 = (bitfield1 & 0xff000000) | ((value << 0) & 0xffffff); }
-}
-// flags:8
-uint flags { // highly non-portable
- get { return (bitfield1 & 0xff000000) >> 24; }
- set { bitfield1 = (bitfield1 & 0xffffff) | ((value << 24) & 0xff000000); }
-}
-IntPtr next;
-IntPtr prev;
-}
-
namespace Evolution {
[StructLayout (LayoutKind.Sequential)]
public class PopupTarget {
@@ -68,6 +29,29 @@ namespace Evolution {
};
};
+namespace Evolution {
+ public class Error {
+ // can we marshal varags from c#?
+ [DllImport("eutil")] static extern int e_error_run(IntPtr parent, string tag, IntPtr end);
+ [DllImport("eutil")] static extern int e_error_run(IntPtr parent, string tag, string arg0, IntPtr end);
+ [DllImport("eutil")] static extern int e_error_run(IntPtr parent, string tag, string arg0, string arg1, IntPtr end);
+ [DllImport("eutil")] static extern int e_error_run(IntPtr parent, string tag, string arg0, string arg1, string arg2, IntPtr end);
+
+ public static int run(IntPtr parent, string tag) {
+ return e_error_run(parent, tag, (IntPtr)0);
+ }
+ public static int run(IntPtr parent, string tag, string arg0) {
+ return e_error_run(parent, tag, arg0, (IntPtr)0);
+ }
+ public static int run(IntPtr parent, string tag, string arg0, string arg1) {
+ return e_error_run(parent, tag, arg0, arg1, (IntPtr)0);
+ }
+ public static int run(IntPtr parent, string tag, string arg0, string arg1, string arg2) {
+ return e_error_run(parent, tag, arg0, arg1, arg2, (IntPtr)0);
+ }
+ }
+}
+
namespace Evolution.Mail {
/* ********************************************************************** */
[StructLayout (LayoutKind.Sequential)]