mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-14 21:30:32 +01:00
* 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
24 lines
749 B
C#
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 ();
|
|
}
|
|
}
|