mono / dbus-sharp

DBus Sharp
http://mono.github.com/dbus-sharp
MIT License
76 stars 59 forks source link

Made dbus-sharp run properly on Win32. #32

Closed MinnieTheMoocher closed 10 years ago

MinnieTheMoocher commented 10 years ago

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/

MinnieTheMoocher commented 10 years ago

can someone please takeover my commits into the main codeline, please?

they make this library usable on Win32.

garuma commented 10 years ago

Hey,

Thanks for the PR. It just need a couple of changes:

MinnieTheMoocher commented 10 years ago

Thanks, I'll take care of that and drop a note here again when finished.

MinnieTheMoocher commented 10 years ago

I've done this now. You should be able to easily rebase my changes onto your master now.