Closed MinnieTheMoocher closed 10 years ago
can someone please takeover my commits into the main codeline, please?
they make this library usable on Win32.
Hey,
Thanks for the PR. It just need a couple of changes:
Thanks, I'll take care of that and drop a note here again when finished.
I've done this now. You should be able to easily rebase my changes onto your master now.
To achieve that, these changes were necessary: (a) The static instances of the system and session bus were hardcoded to unix: transport, which led to an exception due to missing libc on Windows. For now, I set their initialization to null on Win32. (b) Disabled the unix: transport on Win32 at runtime, so no exceptions for missing libc occur anymore. (c) Added missing Authenticate() implementation for tcp: transport (libdbus requires sending the Windows user ID there) (d) polished the *.csproj a little (e) repaired unmanaged/managed buffer copying code
I verified that this implementation now successfully runs with official dbus 1.7.8 from http://dbus.freedesktop.org/releases/dbus/