Find a file
Simon McVittie 4bcffe1e05 Relax review criteria for the review cabal themselves, as discussed on-list
Colin agreed in principle and nobody actually objected, so here we go...
2011-05-25 16:02:43 +01:00
bus Don't report file descriptors as "leaked" if they were already open 2011-04-27 16:28:36 +01:00
cmake Allow X11 autolaunch to be disabled even if the headers/libraries are there 2011-02-24 18:58:18 +00:00
dbus dbus_connection_can_send_type: clarify that invalid codes are allowed here 2011-05-03 10:27:30 +01:00
doc When uploading docs, use rsync -p to set permissions 2011-04-12 11:26:49 +01:00
m4 Split acinclude.m4 into separate files in m4/ 2011-02-17 18:21:16 +00:00
test Revert merge of master (dbus-1.5) into dbus-1.4 2011-03-14 11:53:09 +00:00
tools minotaur: bail if asked to monitor >1 bus 2011-04-29 15:42:18 +01:00
.gitignore Import compiler.m4 and lcov.am from telepathy-glib, and use them to replace gcov 2011-02-17 17:07:12 +00:00
AUTHORS Prepare version 1.4.4 2011-02-17 18:21:25 +00:00
autogen.sh autogen: add -I m4 to aclocal path 2011-03-10 03:56:23 +01:00
ChangeLog take out trailing comma inside an enum so non gcc compilers don't error out 2008-04-16 10:49:25 -04:00
ChangeLog.pre-1-0 * Split NEWS and ChangeLog into a .pre-1-0 file as per HACKING 2007-05-25 20:49:50 +00:00
ChangeLog.pre-1-2 getting ready for 1.2 stable branch 2008-04-04 15:37:50 -04:00
cleanup-man-pages.sh 2006-10-21 Havoc Pennington <hp@redhat.com> 2006-10-22 00:31:08 +00:00
configure.ac Add dbus-1-uninstalled.pc.in 2011-04-26 19:10:32 +01:00
COPYING Bug 22415 - COYPING file should note we allow later versions of GPL 2009-07-13 13:11:20 -04:00
dbus-1-uninstalled.pc.in Add dbus-1-uninstalled.pc.in 2011-04-26 19:10:32 +01:00
dbus-1.pc.in pkg-config: add a couple of additional variables to .pc 2010-06-23 03:14:27 +02:00
Doxyfile.in Generate XML from Doxygen 2011-01-14 12:45:40 +00:00
HACKING Relax review criteria for the review cabal themselves, as discussed on-list 2011-05-25 16:02:43 +01:00
INSTALL Added cmake build system notes to README and INSTALL. 2010-03-24 13:44:26 +01:00
Makefile.am Honour aclocal flags in Makefile.am, rather than gluing them onto ACLOCAL 2011-02-24 15:58:01 +00:00
Makefile.cvs Match kde schematics 2003-11-23 08:07:04 +00:00
NEWS NEWS 2011-04-29 15:44:35 +01:00
NEWS.pre-1-0 * Split NEWS and ChangeLog into a .pre-1-0 file as per HACKING 2007-05-25 20:49:50 +00:00
NEWS.pre-1-2 getting ready for 1.2 stable branch 2008-04-04 15:37:50 -04:00
README Drop outdated list of options from README, mention configure --help instead 2011-04-26 18:50:18 +01:00
README.cygwin Applied patches from cygwin port. 2010-08-10 08:25:24 +02:00
README.launchd Enable launchd. 2010-12-06 21:33:14 +01:00
README.win Cleaned up windows related README's. 2010-10-12 14:45:12 +02:00
README.wince Add README for Windows CE. 2010-04-13 21:09:09 +02:00

Sections in this file describe:
 - introduction and overview
 - low-level vs. high-level API
 - version numbers
 - options to the configure script
 - ABI stability policy

Introduction
===

D-Bus is a simple system for interprocess communication and coordination.

The "and coordination" part is important; D-Bus provides a bus daemon that does things like:
 - notify applications when other apps exit
 - start services on demand
 - support single-instance applications

See http://www.freedesktop.org/software/dbus/ for lots of documentation, 
mailing lists, etc.

See also the file HACKING for notes of interest to developers working on D-Bus.

If you're considering D-Bus for use in a project, you should be aware
that D-Bus was designed for a couple of specific use cases, a "system
bus" and a "desktop session bus." These are documented in more detail
in the D-Bus specification and FAQ available on the web site.

If your use-case isn't one of these, D-Bus may still be useful, but
only by accident; so you should evaluate carefully whether D-Bus makes
sense for your project.

Note: low-level API vs. high-level binding APIs
===

A core concept of the D-Bus implementation is that "libdbus" is
intended to be a low-level API. Most programmers are intended to use
the bindings to GLib, Qt, Python, Mono, Java, or whatever. These
bindings have varying levels of completeness and are maintained as
separate projects from the main D-Bus package. The main D-Bus package
contains the low-level libdbus, the bus daemon, and a few command-line
tools such as dbus-launch.

If you use the low-level API directly, you're signing up for some
pain. Think of the low-level API as analogous to Xlib or GDI, and the
high-level API as analogous to Qt/GTK+/HTML.

Version numbers
===

D-Bus uses the common "Linux kernel" versioning system, where
even-numbered minor versions are stable and odd-numbered minor
versions are development snapshots.

So for example, development snapshots: 1.1.1, 1.1.2, 1.1.3, 1.3.4
Stable versions: 1.0, 1.0.1, 1.0.2, 1.2.1, 1.2.3

All pre-1.0 versions were development snapshots.

Development snapshots make no ABI stability guarantees for new ABI
introduced since the last stable release. Development snapshots are
likely to have more bugs than stable releases, obviously.

Configuration 
===

dbus could be build by using autotools or cmake. 

When using autotools the configure step is initiated by running ./configure 
with our without additional configuration flags. 

When using cmake the configure step is initiated by running the cmake 
program with our without additional configuration flags. 

Configuration flags
===

When using autotools, run "./configure --help" to see the possible
configuration options and environment variables.

When using the cmake build system the dbus-specific configuration flags that can be given 
to the cmake program are these (use -D<key>=<value> on command line)

    CMAKE_BUILD_TYPE                   set dbus build mode - one of Debug|Release|RelWithDebInfo|MinSizeRel
    DBUS_BUILD_TESTS                   enable unit test code  default=ON
    DBUS_BUILD_X11                     Build with X11 autolaunch support default=ON
    HAVE_CONSOLE_OWNER_FILE            enable console owner file (solaris only) ) default=ON
    DBUS_DISABLE_ASSERTS               Disable assertion checking default=OFF
    DBUS_DISABLE_CHECKS                Disable public API sanity checking default=OFF
    DBUS_ENABLE_ABSTRACT_SOCKETS       enable support for abstract sockets (linux only) default=ON
    DBUS_ENABLE_ANSI                   enable -ansi -pedantic gcc flags default=OFF
    DBUS_ENABLE_DNOTIFY                build with dnotify support (linux only) default=ON
    DBUS_ENABLE_VERBOSE_MODE           support verbose debug mode default=ON
    DBUS_ENABLE_DOXYGEN_DOCS           build DOXYGEN documentation (requires Doxygen) default=ON
    DBUS_GCOV_ENABLED                  compile with coverage profiling instrumentation (gcc only) default=OFF
    DBUS_INSTALL_SYSTEM_LIBS           install required system libraries default (windows only) =OFF
    DBUS_USE_EXPAT                     Use expat (== ON) or libxml2 (==OFF) default=ON [1]
    DBUS_USE_NONCE_TCP_DEFAULT_ADDRESS Use nonce tcp default address default=OFF
    DBUS_USE_OUTPUT_DEBUG_STRING       enable win32 debug port for message output default=OFF
    
    [1] requires installed development package of the related dependency 

    
API/ABI Policy
===

Now that D-Bus has reached version 1.0, the objective is that all
applications dynamically linked to libdbus will continue working
indefinitely with the most recent system and session bus daemons.

 - 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.

 - 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.

Interfaces can and probably will be _added_. This means both new
functions and types in libdbus, and new methods exported to
applications by the bus daemon.

The above policy is intended to make D-Bus as API-stable as other
widely-used libraries (such as GTK+, Qt, Xlib, or your favorite
example). If you have questions or concerns they are very welcome on
the D-Bus mailing list.

NOTE ABOUT DEVELOPMENT SNAPSHOTS AND VERSIONING

Odd-numbered minor releases (1.1.x, 1.3.x, 2.1.x, etc. -
major.minor.micro) are devel snapshots for testing, and any new ABI
they introduce relative to the last stable version is subject to
change during the development cycle.

Any ABI found in a stable release, however, is frozen.

ABI will not be added in a stable series if we can help it. i.e. the
ABI of 1.2.0 and 1.2.5 you can expect to be the same, while the ABI of
1.4.x may add more stuff not found in 1.2.x.

NOTE ABOUT STATIC LINKING

We are not yet firmly freezing all runtime dependencies of the libdbus
library. For example, the library may read certain files as part of
its implementation, and these files may move around between versions.

As a result, we don't yet recommend statically linking to
libdbus. Also, reimplementations of the protocol from scratch might
have to work to stay in sync with how libdbus behaves.

To lock things down and declare static linking and reimplementation to
be safe, we'd like to see all the internal dependencies of libdbus
(for example, files read) well-documented in the specification, and
we'd like to have a high degree of confidence that these dependencies
are supportable over the long term and extensible where required.

NOTE ABOUT HIGH-LEVEL BINDINGS

Note that the high-level bindings are _separate projects_ from the
main D-Bus package, and have their own release cycles, levels of
maturity, and ABI stability policies. Please consult the documentation
for your binding.