summaryrefslogtreecommitdiffstats
path: root/mono/Error.cs
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-07-14 16:20:12 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-07-14 16:20:12 +0000
commita929c9a3b465db8b7e17b9b39936c612c2621a7c (patch)
treed1764257d1bd56f8e6a044516ccfc9bc44f7f9f5 /mono/Error.cs
parent5efe8e7f1d97931710558495a951e0b35afbfb72 (diff)
* Remove all bindings
Diffstat (limited to 'mono/Error.cs')
-rw-r--r--mono/Error.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/mono/Error.cs b/mono/Error.cs
deleted file mode 100644
index d89a013a..00000000
--- a/mono/Error.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-namespace DBus
-{
-
- using System;
- using System.Runtime.InteropServices;
- using System.Diagnostics;
-
- // FIXME add code to verify that size of DBus.Error
- // matches the C code.
-
- [StructLayout (LayoutKind.Sequential)]
- internal struct Error
- {
- internal IntPtr name;
- internal IntPtr message;
- private int dummies;
- private IntPtr padding1;
-
- public void Init()
- {
- dbus_error_init(ref this);
- }
-
- public void Free()
- {
- dbus_error_free(ref this);
- }
-
- public string Message
- {
- get
- {
- return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(message);
- }
- }
-
- public string Name
- {
- get
- {
- return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(name);
- }
- }
-
- public bool IsSet
- {
- get
- {
- return (name != IntPtr.Zero);
- }
- }
-
-
- [DllImport ("dbus-1", EntryPoint="dbus_error_init")]
- private extern static void dbus_error_init (ref Error error);
-
- [DllImport ("dbus-1", EntryPoint="dbus_error_free")]
- private extern static void dbus_error_free (ref Error error);
- }
-}