diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
commit | a929c9a3b465db8b7e17b9b39936c612c2621a7c (patch) | |
tree | d1764257d1bd56f8e6a044516ccfc9bc44f7f9f5 /mono/ErrorMessage.cs | |
parent | 5efe8e7f1d97931710558495a951e0b35afbfb72 (diff) |
* Remove all bindings
Diffstat (limited to 'mono/ErrorMessage.cs')
-rw-r--r-- | mono/ErrorMessage.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/mono/ErrorMessage.cs b/mono/ErrorMessage.cs deleted file mode 100644 index 773a05b6..00000000 --- a/mono/ErrorMessage.cs +++ /dev/null @@ -1,45 +0,0 @@ -namespace DBus -{ - using System; - using System.Runtime.InteropServices; - using System.Diagnostics; - - public class ErrorMessage : Message - { - public ErrorMessage() : base(MessageType.Error) - { - } - - internal ErrorMessage(IntPtr rawMessage, Service service) : base(rawMessage, service) - { - } - - public ErrorMessage(Service service) : base(MessageType.Error, service) - { - } - - public new string Name - { - get { - if (this.name == null) { - this.name = Marshal.PtrToStringAnsi(dbus_message_get_error_name(RawMessage)); - } - - return this.name; - } - - set { - if (value != this.name) { - dbus_message_set_error_name(RawMessage, value); - this.name = value; - } - } - } - - [DllImport("dbus-1")] - private extern static bool dbus_message_set_error_name(IntPtr rawMessage, string name); - - [DllImport("dbus-1")] - private extern static IntPtr dbus_message_get_error_name(IntPtr rawMessage); - } -} |