Main Page DBusSharp

From NDesk

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:57, 16 September 2006 (edit)
Alp (Talk | contribs)

← Previous diff
Current revision (18:12, 10 February 2009) (edit) (undo)
Alp (Talk | contribs)
(Add note on bug tracker)
 
(143 intermediate revisions not shown.)
Line 1: Line 1:
-dbus-sharp is a C# implementation of [http://www.freedesktop.org/wiki/Software/dbus D-Bus]. It's also known as "managed DBus" to avoid confusion with existing bindings (which wrap libdbus).+[http://www.ndesk.org/archive/dbus-sharp/ndesk-dbus-0.6.0.tar.gz http://www.ndesk.org/images/step1.png] [http://www.ndesk.org/archive/dbus-sharp/ndesk-dbus-glib-0.4.1.tar.gz http://www.ndesk.org/images/step2.png]
 + 
 +ndesk-dbus is a C# implementation of [http://www.freedesktop.org/wiki/Software/dbus D-Bus]. It's often referred to as dbus-sharp, or "managed D-Bus" to avoid confusion with existing bindings (which wrap libdbus).
D-Bus is an inter-process communication framework that lets applications D-Bus is an inter-process communication framework that lets applications
Line 9: Line 11:
[[Image:ManagedDBus.png|thumbnail]] [[Image:ManagedDBus.png|thumbnail]]
-This is currently at an early stage of development.+This software is under development but is already used by a wide range of applications for tasks as simple as maintaining a single instance of the GUI to whole instant messaging frameworks and hardware detection APIs.
-However it is hoped that it will soon provide a tested, high-performance+It provides a tested, high-performance
bridge to and from all systems that are exposed via D-Bus, regardless of bridge to and from all systems that are exposed via D-Bus, regardless of
-programming language, UI toolkit or license.+programming language, UI toolkit or license. The source code is MIT X11 licensed (Free Software/Open Source), allowing integration into other projects with very few restrictions.
The code is a clean-room implementation based on the [http://dbus.freedesktop.org/doc/dbus-specification.html D-Bus Specification] The code is a clean-room implementation based on the [http://dbus.freedesktop.org/doc/dbus-specification.html D-Bus Specification]
Line 20: Line 22:
It aims for compatibility with [http://www.mono-project.com/ Mono] and Microsoft .NET frameworks It aims for compatibility with [http://www.mono-project.com/ Mono] and Microsoft .NET frameworks
supporting the 2.0 profile. Backward compatibility with 1.0 will not be supporting the 2.0 profile. Backward compatibility with 1.0 will not be
-a consideration.+a consideration. Ongoing work to ensure CLS compliance means that managed D-Bus can be used by any language that can target the CLR.
 +<!--
Note that the UNIX transport requires changes made to the runtime and class libraries that are only available in Mono svn as of August 21 '06. See [http://bugzilla.ximian.com/show_bug.cgi?id=79084 Mono bug #79084] and svn revisions r63823 and r63824. These modifications add support for the UNIX domain socket abstract namespace. [http://www.go-mono.com/archive/1.1.17 Mono 1.1.17] is the first release to include the required fixes. Note that the UNIX transport requires changes made to the runtime and class libraries that are only available in Mono svn as of August 21 '06. See [http://bugzilla.ximian.com/show_bug.cgi?id=79084 Mono bug #79084] and svn revisions r63823 and r63824. These modifications add support for the UNIX domain socket abstract namespace. [http://www.go-mono.com/archive/1.1.17 Mono 1.1.17] is the first release to include the required fixes.
 +-->
-=== Tasks remaining ===+=== Cross platform support ===
-Updated Sunday September '03 2006+==== Supported platforms ====
-==== Tasks towards a pre-1.0 preview release ====+A standard build of managed D-Bus will work across a wide range of platforms:
-* Fix remaining obscure object mapping and transport bugs+* x86
-* Finalize public API with input from .NET remoting and DBus experts+* 64-bit (eg. AMD64)
-* Run final API through fxcop, gendarme etc.+* Big endian (eg. PPC)
-* Complete GLib main loop integration API+* ARM (eg. Nokia 770)
 +* Mono 1.1.13 or newer
 +* GNU/Linux
 +* FreeBSD
 +* Mac OS X
 +* Microsoft Windows / .NET runtime (in the 0.5 development branch)
-==== Tasks towards a 1.0 release ====+==== Soon to be supported ====
-* Full thread safety (dbus-sharp was designed for thread safety but some strategic locks have still to be added and it would be better to get this right than to rush it)+<!--
-* Full Exception support (maybe including some amount of stack trace based on contract, if this is desirable)+* Solaris (in progress: http://bugzilla.gnome.org/show_bug.cgi?id=370081 -- external patch available to make it work in the meantime)
-* Build system, versioning and packaging considerations+-->
-* Old Mono compatibility layer to replace broken unix sockets on pre-1.1.17 releases+* MIPS (untested) (eg. wifi routers) -- pending JIT fix
-* Optimize low hanging fruit like marshaling arrays and collections of primitives+
-* Optimize marshaling of entirely blittable structures+
-* Built-in non-unix transports (tcp etc.)+
-* More?+
-==== Tasks for 1.1 ====+=== Users ===
-* Optimize marshaling of structures which are partially blittable+This is a list of applications known to make use of managed D-Bus:
-* Clever optimizations (scatter gather IO etc.)+
-* Customizable object mapping based on constraints and a regular-expression style mapper+
-==== 1.1 and beyond ====+* [http://www.ndesk.org/ NDesk] component object model (NParts etc.)
 +* [http://telepathy.freedesktop.org/wiki/TelepathySharp telepathy-sharp]
 +* [http://tapioca-voip.sourceforge.net/ Tapioca] VoIP and IM application development framework ([http://telepathy.freedesktop.org/wiki/TapiocaSharp tapioca-sharp])
 +* [http://tapioca-voip.sourceforge.net/wiki/index.php/Landell Landell] VoIP and IM client using [http://gtk-sharp.sourceforge.net/ Gtk#]
 +* [http://www.gnome.org/projects/NetworkManager/ Gnome NetworkManager] binding
 +* [http://www.gnome.org/projects/gnome-power-manager/ Gnome Power Manager] binding
 +* [http://www.banshee-project.org/ Banshee] provides and uses a media player API, and uses [http://www.gnome.org/projects/gnome-power-manager/ Gnome Power Manager], [http://www.gnome.org/projects/NetworkManager/ Gnome NetworkManager], Helix, notify-sharp, org.gnome.SettingsDaemon
 +* [http://svn.banshee-project.org/helix-dbus-server/ Helix D-Bus] for remote control of the media stream
 +* hal-sharp is provides access to [http://www.freedesktop.org/wiki/Software/hal HAL], the Hardware Abstraction Layer
 +* [[NotifySharp]] provides a client implementation for [http://trac.galago-project.org/wiki/DesktopNotifications Desktop Notifications] and works as a libnotify client replacement
 +* [http://www.f-spot.org/ F-Spot] personal photo management application, for single-instance detection [http://bugzilla.gnome.org/show_bug.cgi?id=361091]
 +* [http://www.beatniksoftware.com/tomboy/ Tomboy] simple note taking application, for remote control and single-instance detection
 +* [http://mono.dcsharp.com/ dcsharp] file sharing client using the Direct Connect protocol, for notifications, single instance and remote control
 +* [http://dev.mmgsecurity.com/projects/lat/ LAT] LDAP Administration Tool
 +* [http://www.snorp.net/log/2006/12/08/im-in-ur-virtual-machines-managing-them/ VMX Manager], Virtual Machine Manager, GNOME SVN(?)
 +* [http://capuchin.k-d-w.org/ Capuchin] (formerly NewStuffManager), a plugin update/download service
 +* [http://folks.o-hand.com/iain/last-exit/ last-exit], a music player for Last.fm
 +* [http://muine-player.org/ Muine], a music player for GNOME
 +* [http://www.chrishowie.com/2007/01/10/the-fuzz/ The Fuzz], process security manager with GUI
 +* [http://yimports.com/~cpinto/projects/gnome/gshare/ GShare], file sharing utility
 +* [http://telepathy.freedesktop.org/wiki/GnomeUI Chatter (Telepathy GnomeUI)] VoIP and IM client using [http://gtk-sharp.sourceforge.net/ Gtk#]
 +* [https://forgesvn1.novell.com/viewsvn/babuines/trunk/Babuine-FoundationComponents/TimeTracker/ Babuine TimeTracker]
 +* [http://svn.myrealbox.com/viewcvs/trunk/gnome-keyring-sharp gnome-keyring-sharp] [http://en.wikipedia.org/wiki/GNOME_Keyring GNOME Keyring] implementation, to get the keyring socket address
 +* [http://developer.novell.com/wiki/index.php/EID-belgium eIDconfig-belgium] configuration toolkit for the Belgian eID middleware
 +* [http://svn.gnome.org/viewcvs/podsleuth PodSleuth] iPod model information discovery/export tool, using hal-sharp
 +* [http://live.gnome.org/Banter Banter] collaboration client (Telepathy)
 +* [http://netherilshade.free.fr/circ/ circ] IRC client
 +* [http://svn.gnome.org/viewvc/beagle/trunk/beagle-xesam/ Beagle xesam-adapter] desktop search API
 +* [[DBusExplorer|D-Bus Explorer]]
 +* [https://edge.launchpad.net/gc GNOME Do]
 +* [http://www.iola.dk/nemo/ Nemo] file manager, for [http://www.gnome.org/projects/tracker/ Tracker]
 +* [http://www.cmartin.tk/blam.html Blam] RSS aggregator
 +* [http://monotorrent.com/ MonoTorrent / Monsoon] BitTorrent client
-* Complete message filter engine+=== Documentation ===
-* Daemon+
-* Integration with other message bus systems+
-* [http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython IronPython] API to implement current dbus-python API with managed DBus+
-* [[Cilc|cilc]] GObject interface and proxy generator+
-=== Protocol Extensions ===+See the [[DBus_Documentation|NDesk.DBus documentation]] for a brief developers guide.
-dbus-sharp implements certain optional extensions to the DBus protocol. These are ifdef'd:+=== Contact ===
-==== PROTO_REPLY_SIGNATURE ====+Support can be found on the #managed-dbus IRC channel on irc.gnome.org
-The signature of the MethodReply expected by a MethodCall. This is implemented as a header field TypeCode: FieldCode.ReplySignature.+=== Reporting bugs ===
-Can be enabled without breaking existing libdbus consumers.+Bugs are now tracked on the [https://bugs.launchpad.net/ndesk-dbus NDesk D-Bus Launchpad bug tracker].
-'''Note:''' This may soon be renamed to FieldCode.RequestSignature to mirror FieldCode.ReplySerial.+If you have sent bug reports or feature requests directly to the authors in the past, please create a new entry in the tracker to ensure the issues are dealt with.
-==== PROTO_TYPE_SINGLE ====+=== Download ===
-A single precision floating point type defined by the type code 'f'.+See the [http://www.ndesk.org/archive/ndesk-dbus/ managed D-Bus release archive].
-Will not work with current libdbus dbus-daemon. Not currently usable.+==== Development ====
-=== Download ===+See the [[DBusSharp/Roadmap|development roadmap]] for a detailed list of remaining tasks.
-git-clone [http://git.ndesk.org/?p=dbus-sharp git://git.ndesk.org/pub/scm/dbus-sharp]+git-clone [http://gitweb.ndesk.org/?p=dbus-sharp git://git.ndesk.org/pub/scm/dbus-sharp]
-There are no releases yet, and the API is not stable. In particular, please don't even think about checking this into your cvs/svn repository, bundling it with your program or packaging it for your distribution yet!+The dbus-sharp API is now fairly stable stable. It's best to install a released version and depend on it from your application rather than bundling the sources directly as has been done in the past.
There is also a module which provides GLib integration as an optional extra: There is also a module which provides GLib integration as an optional extra:
-git-clone [http://git.ndesk.org/?p=dbus-sharp-glib git://git.ndesk.org/pub/scm/dbus-sharp-glib]+git-clone [http://gitweb.ndesk.org/?p=dbus-sharp-glib git://git.ndesk.org/pub/scm/dbus-sharp-glib]
 + 
 +=== Exposition ===
 + 
 +* [http://live.gnome.org/Boston2006 GNOME Boston Summit 2006], MIT Media Lab, Aaron Bockover
 +* [http://www.guadec.org/node/555 GUADEC 2007] Birmingham, UCE Conservatoire, Alp Toker ([http://www.atoker.com/dbus/managed-dbus-guadec07.pdf view slides])

Current revision

step1.png step2.png

ndesk-dbus is a C# implementation of D-Bus. It's often referred to as dbus-sharp, or "managed D-Bus" to avoid confusion with existing bindings (which wrap libdbus).

D-Bus is an inter-process communication framework that lets applications interface with the system event bus as well as allowing them to talk to one another in a peer-to-peer configuration.

Contents

[edit] Status

This software is under development but is already used by a wide range of applications for tasks as simple as maintaining a single instance of the GUI to whole instant messaging frameworks and hardware detection APIs.

It provides a tested, high-performance bridge to and from all systems that are exposed via D-Bus, regardless of programming language, UI toolkit or license. The source code is MIT X11 licensed (Free Software/Open Source), allowing integration into other projects with very few restrictions.

The code is a clean-room implementation based on the D-Bus Specification Version 0.11 and study of the wire protocol of existing tools.

It aims for compatibility with Mono and Microsoft .NET frameworks supporting the 2.0 profile. Backward compatibility with 1.0 will not be a consideration. Ongoing work to ensure CLS compliance means that managed D-Bus can be used by any language that can target the CLR.

[edit] Cross platform support

[edit] Supported platforms

A standard build of managed D-Bus will work across a wide range of platforms:

  • x86
  • 64-bit (eg. AMD64)
  • Big endian (eg. PPC)
  • ARM (eg. Nokia 770)
  • Mono 1.1.13 or newer
  • GNU/Linux
  • FreeBSD
  • Mac OS X
  • Microsoft Windows / .NET runtime (in the 0.5 development branch)

[edit] Soon to be supported

  • MIPS (untested) (eg. wifi routers) -- pending JIT fix

[edit] Users

This is a list of applications known to make use of managed D-Bus:

[edit] Documentation

See the NDesk.DBus documentation for a brief developers guide.

[edit] Contact

Support can be found on the #managed-dbus IRC channel on irc.gnome.org

[edit] Reporting bugs

Bugs are now tracked on the NDesk D-Bus Launchpad bug tracker.

If you have sent bug reports or feature requests directly to the authors in the past, please create a new entry in the tracker to ensure the issues are dealt with.

[edit] Download

See the managed D-Bus release archive.

[edit] Development

See the development roadmap for a detailed list of remaining tasks.

git-clone git://git.ndesk.org/pub/scm/dbus-sharp

The dbus-sharp API is now fairly stable stable. It's best to install a released version and depend on it from your application rather than bundling the sources directly as has been done in the past.

There is also a module which provides GLib integration as an optional extra:

git-clone git://git.ndesk.org/pub/scm/dbus-sharp-glib

[edit] Exposition

Retrieved from "http://ndesk.org/DBusSharp"