2002-11-21 16:41:33 +00:00
|
|
|
D-BUS is a simple IPC library based on messages.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
See also the file HACKING for notes of interest to developers working on D-BUS.
|
|
|
|
|
|
|
|
|
|
See http://www.freedesktop.org/software/dbus/ for lots of documentation,
|
|
|
|
|
mailing lists, etc.
|
|
|
|
|
|
2004-08-10 02:18:37 +00:00
|
|
|
Note
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
A core concept of the D-BUS implementation is that "libdbus" is
|
|
|
|
|
intended to be a low-level API, similar to Xlib. Most programmers are
|
|
|
|
|
intended to use the bindings to GLib, Qt, Python, Mono, Java, or
|
|
|
|
|
whatever. These bindings have varying levels of completeness.
|
|
|
|
|
|
2003-03-04 22:53:20 +00:00
|
|
|
Configuration flags
|
|
|
|
|
===
|
|
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
These are the dbus-specific configuration flags that can be given to
|
|
|
|
|
the ./configure program.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
--enable-qt enable Qt-friendly client library
|
|
|
|
|
--enable-glib enable GLib-friendly client library
|
2004-05-15 11:44:44 +00:00
|
|
|
--enable-mono enable mono bindings
|
|
|
|
|
--enable-mono-docs build mono documentation (requires monodoc)
|
2003-04-29 21:56:37 +00:00
|
|
|
--enable-tests enable unit test code
|
|
|
|
|
--enable-ansi enable -ansi -pedantic gcc flags
|
|
|
|
|
--enable-verbose-mode support verbose debug mode
|
|
|
|
|
--enable-asserts include assertion checks
|
|
|
|
|
--enable-checks include sanity checks on public API
|
|
|
|
|
--enable-docs build documentation (requires Doxygen and jade)
|
|
|
|
|
--enable-gcov compile with coverage profiling instrumentation (gcc only)
|
2004-08-03 15:43:30 +00:00
|
|
|
--enable-python build python bindings (reqires Pyrex >= 0.9)
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
--with-xml=libxml/expat XML library to use
|
|
|
|
|
--with-init-scripts=redhat Style of init scripts to install
|
|
|
|
|
--with-session-socket-dir=dirname Where to put sockets for the per-login-session message bus
|
|
|
|
|
--with-test-socket-dir=dirname Where to put sockets for make check
|
|
|
|
|
--with-system-pid-file=pidfile PID file for systemwide daemon
|
|
|
|
|
--with-system-socket=filename UNIX domain socket for systemwide daemon
|
2003-03-04 22:53:20 +00:00
|
|
|
|
|
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
API/ABI Policy
|
|
|
|
|
===
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
D-BUS API/ABI and protocol necessarily remain in flux until we are
|
|
|
|
|
sure it will meet the various needs it's intended to meet. This means
|
|
|
|
|
we need to see some significant sample usage in the contexts of GNOME,
|
|
|
|
|
KDE, desktop applications, and systemwide uses such as print queue
|
|
|
|
|
monitoring, hotplug events, or whatever. We need the flexibility to
|
|
|
|
|
incorporate feedback from this sample usage.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
Once we feel confident in the protocol and the API, we will release a
|
|
|
|
|
version 1.0. At that point, the intent is:
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
- The protocol will never be broken again; any message bus should
|
|
|
|
|
work with any client forever. However, extensions are possible
|
|
|
|
|
where the protocol is extensible.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
- If the library API is modified incompatibly, we will rename it
|
|
|
|
|
as in http://ometer.com/parallel.html - in other words,
|
|
|
|
|
it will always be possible to compile against and use the older
|
|
|
|
|
API, and apps will always get the API they expect.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
Until 1.0 is released, feedback that requires API changes may be
|
|
|
|
|
incorporated into D-BUS. This may break the API, the ABI, the
|
|
|
|
|
protocol, or all three.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
To avoid a huge soname, the plan is to increment the soname only
|
|
|
|
|
between official stable releases, not with every development snapshot.
|
|
|
|
|
Versions numbered 0.x are considered development snapshots.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
Until 1.0 is released, you have to define -DDBUS_API_SUBJECT_TO_CHANGE
|
|
|
|
|
just as a safety check to be sure everyone is aware of this API/ABI
|
|
|
|
|
policy and has the right expectations.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
We do need people to test the APIs, so please do use the development
|
|
|
|
|
snapshots of D-BUS. They are intended to work and we do actively
|
|
|
|
|
address bugs.
|
2003-03-04 22:53:20 +00:00
|
|
|
|
2003-04-29 21:56:37 +00:00
|
|
|
However, if you're shipping a commercial binary-only application that
|
|
|
|
|
needs to keep running on M future versions of N operating systems, you
|
|
|
|
|
might want to include your own copy of D-BUS rather than relying on
|
|
|
|
|
the installed copy, for example.
|