5 using System.Runtime.InteropServices;
6 using System.Diagnostics;
8 // FIXME add code to verify that size of DBus.Error
11 [StructLayout (LayoutKind.Sequential)]
15 internal IntPtr message;
17 private IntPtr padding1;
21 dbus_error_init(ref this);
26 dbus_error_free(ref this);
33 return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(message);
41 return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(name);
49 return (name != IntPtr.Zero);
54 [DllImport ("dbus-1", EntryPoint="dbus_error_init")]
55 private extern static void dbus_error_init (ref Error error);
57 [DllImport ("dbus-1", EntryPoint="dbus_error_free")]
58 private extern static void dbus_error_free (ref Error error);