dbus/mono/DBus.cs
Havoc Pennington a7560f4567 2003-06-29 Havoc Pennington <hp@pobox.com>
* mono/Test.cs (class Test): fire up a main loop and run it

	* mono/DBus.cs (DBus): don't g_thread_init since it can only be
	done once, the app has to do it

2003-06-26  Havoc Pennington  <hp@pobox.com>

	* mono/Connection.cs: set up connection with the glib main loop
2003-07-03 01:48:31 +00:00

24 lines
749 B
C#

namespace DBus {
using System;
using System.Runtime.InteropServices;
public class Exception : ApplicationException {
internal Exception (ref Error error)
: base (Runtime.InteropServices.Marshal.PtrToStringAnsi (error.message)) { }
}
internal class Internals {
internal const string DBusLibname = "libdbus-1.so.0";
internal const string DBusGLibname = "libdbus-glib-1.so.0";
internal const string GLibname = "libglib-2.0.so.0";
internal const string GThreadname = "libgthread-2.0.so.0";
internal static void Init () {
dbus_gthread_init ();
}
[DllImport (DBus.Internals.DBusGLibname, EntryPoint="dbus_gthread_init")]
private extern static void dbus_gthread_init ();
}
}