|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| bus/ | | 03-May-2024 | - | 32,015 | 23,747 |
| cmake/ | | 03-May-2024 | - | 4,140 | 3,340 |
| dbus/ | | 03-May-2024 | - | 87,886 | 54,389 |
| doc/ | | 03-May-2024 | - | 8,800 | 8,161 |
| test/ | | 03-May-2024 | - | 16,089 | 14,194 |
| tools/ | | 03-May-2024 | - | 6,054 | 4,572 |
| .gitignore | D | 03-May-2024 | 290 | 34 | 33 |
| AUTHORS | D | 03-May-2024 | 4.2 KiB | 113 | 112 |
| Android.mk | D | 03-May-2024 | 37 | 2 | 1 |
| COPYING | D | 03-May-2024 | 28.5 KiB | 553 | 457 |
| ChangeLog | D | 03-May-2024 | 215 | 6 | 4 |
| ChangeLog.pre-1-0 | D | 03-May-2024 | 509.5 KiB | 15,147 | 10,603 |
| ChangeLog.pre-1-2 | D | 03-May-2024 | 71 KiB | 2,028 | 1,382 |
| CleanSpec.mk | D | 03-May-2024 | 2.2 KiB | 50 | 0 |
| Doxyfile.in | D | 03-May-2024 | 6.9 KiB | 182 | 176 |
| HACKING | D | 03-May-2024 | 12.4 KiB | 343 | 261 |
| INSTALL | D | 03-May-2024 | 9.9 KiB | 253 | 195 |
| MODULE_LICENSE_AFL_AND_GPL | D | 03-May-2024 | 0 | | |
| Makefile.am | D | 03-May-2024 | 1.6 KiB | 67 | 51 |
| Makefile.cvs | D | 03-May-2024 | 91 | 9 | 4 |
| NEWS | D | 03-May-2024 | 690 | 20 | 17 |
| NEWS.pre-1-0 | D | 03-May-2024 | 22.2 KiB | 615 | 555 |
| NEWS.pre-1-2 | D | 03-May-2024 | 6.5 KiB | 154 | 122 |
| NOTICE | D | 03-May-2024 | 28.4 KiB | 552 | 456 |
| README | D | 03-May-2024 | 8.3 KiB | 186 | 143 |
| README.cygwin | D | 03-May-2024 | 234 | 10 | 6 |
| README.dbus4win | D | 03-May-2024 | 2.5 KiB | 68 | 51 |
| README.wince | D | 03-May-2024 | 2.7 KiB | 82 | 59 |
| README.windbus | D | 03-May-2024 | 5.7 KiB | 170 | 119 |
| ThirdPartyProject.prop | D | 03-May-2024 | 347 | 11 | 10 |
| acinclude.m4 | D | 03-May-2024 | 7.3 KiB | 234 | 200 |
| autogen.sh | D | 03-May-2024 | 2.2 KiB | 100 | 75 |
| cleanup-man-pages.sh | D | 03-May-2024 | 3.8 KiB | 87 | 51 |
| config.h | D | 03-May-2024 | 8 KiB | 304 | 103 |
| configure.in | D | 03-May-2024 | 51.2 KiB | 1,687 | 1,463 |
| dbus-1.pc.in | D | 03-May-2024 | 558 | 17 | 15 |
| update-dbus-docs.sh | D | 03-May-2024 | 2.2 KiB | 57 | 39 |
README
1Sections in this file describe:
2 - introduction and overview
3 - low-level vs. high-level API
4 - version numbers
5 - options to the configure script
6 - ABI stability policy
7
8Introduction
9===
10
11D-Bus is a simple system for interprocess communication and coordination.
12
13The "and coordination" part is important; D-Bus provides a bus daemon that does things like:
14 - notify applications when other apps exit
15 - start services on demand
16 - support single-instance applications
17
18See http://www.freedesktop.org/software/dbus/ for lots of documentation,
19mailing lists, etc.
20
21See also the file HACKING for notes of interest to developers working on D-Bus.
22
23If you're considering D-Bus for use in a project, you should be aware
24that D-Bus was designed for a couple of specific use cases, a "system
25bus" and a "desktop session bus." These are documented in more detail
26in the D-Bus specification and FAQ available on the web site.
27
28If your use-case isn't one of these, D-Bus may still be useful, but
29only by accident; so you should evaluate carefully whether D-Bus makes
30sense for your project.
31
32Note: low-level API vs. high-level binding APIs
33===
34
35A core concept of the D-Bus implementation is that "libdbus" is
36intended to be a low-level API. Most programmers are intended to use
37the bindings to GLib, Qt, Python, Mono, Java, or whatever. These
38bindings have varying levels of completeness and are maintained as
39separate projects from the main D-Bus package. The main D-Bus package
40contains the low-level libdbus, the bus daemon, and a few command-line
41tools such as dbus-launch.
42
43If you use the low-level API directly, you're signing up for some
44pain. Think of the low-level API as analogous to Xlib or GDI, and the
45high-level API as analogous to Qt/GTK+/HTML.
46
47Version numbers
48===
49
50D-Bus uses the common "Linux kernel" versioning system, where
51even-numbered minor versions are stable and odd-numbered minor
52versions are development snapshots.
53
54So for example, development snapshots: 1.1.1, 1.1.2, 1.1.3, 1.3.4
55Stable versions: 1.0, 1.0.1, 1.0.2, 1.2.1, 1.2.3
56
57All pre-1.0 versions were development snapshots.
58
59Development snapshots make no ABI stability guarantees for new ABI
60introduced since the last stable release. Development snapshots are
61likely to have more bugs than stable releases, obviously.
62
63Configuration
64===
65
66dbus could be build by using autotools or cmake.
67
68When using autotools the configure step is initiated by running ./configure
69with our without additional configuration flags.
70
71When using cmake the configure step is initiated by running the cmake
72program with our without additional configuration flags.
73
74Configuration flags
75===
76
77When using autools the dbus-specific configuration flags that can be given to
78the ./configure program are these
79
80 --enable-tests enable unit test code
81 --enable-verbose-mode support verbose debug mode
82 --enable-asserts include assertion checks
83 --enable-checks include sanity checks on public API
84 --enable-xml-docs build XML documentation (requires xmlto)
85 --enable-doxygen-docs build DOXYGEN documentation (requires Doxygen)
86 --enable-gcov compile with coverage profiling instrumentation (gcc only)
87 --enable-abstract-sockets use abstract socket namespace (linux only)
88 --enable-selinux build with SELinux support
89 --enable-dnotify build with dnotify support (linux only)
90 --enable-kqueue build with kqueue support (*BSD only)
91 --with-xml=libxml/expat XML library to use
92 --with-init-scripts=redhat Style of init scripts to install
93 --with-session-socket-dir=dirname Where to put sockets for the per-login-session message bus
94 --with-test-socket-dir=dirname Where to put sockets for make check
95 --with-system-pid-file=pidfile PID file for systemwide daemon
96 --with-system-socket=filename UNIX domain socket for systemwide daemon
97 --with-console-auth-dir=dirname directory to check for console ownerhip
98 --with-dbus-user=<user> User for running the DBUS daemon (messagebus)
99 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
100 --with-tags[=TAGS] include additional configurations [automatic]
101 --with-x use the X Window System
102
103When using the cmake build system the dbus-specific configuration flags that can be given
104to the cmake program are these (use -D<key>=<value> on command line)
105
106 CMAKE_BUILD_TYPE set dbus build mode - one of Debug|Release|RelWithDebInfo|MinSizeRel
107 DBUS_BUILD_TESTS enable unit test code default=ON
108 DBUS_BUILD_X11 Build X11-dependent code default=ON
109 HAVE_CONSOLE_OWNER_FILE enable console owner file (solaris only) ) default=ON
110 DBUS_DISABLE_ASSERTS Disable assertion checking default=OFF
111 DBUS_DISABLE_CHECKS Disable public API sanity checking default=OFF
112 DBUS_ENABLE_ABSTRACT_SOCKETS enable support for abstract sockets (linux only) default=ON
113 DBUS_ENABLE_ANSI enable -ansi -pedantic gcc flags default=OFF
114 DBUS_ENABLE_DNOTIFY build with dnotify support (linux only) default=ON
115 DBUS_ENABLE_VERBOSE_MODE support verbose debug mode default=ON
116 DBUS_ENABLE_DOXYGEN_DOCS build DOXYGEN documentation (requires Doxygen) default=ON
117 DBUS_GCOV_ENABLED compile with coverage profiling instrumentation (gcc only) default=OFF
118 DBUS_INSTALL_SYSTEM_LIBS install required system libraries default (windows only) =OFF
119 DBUS_USE_EXPAT Use expat (== ON) or libxml2 (==OFF) default=ON [1]
120 DBUS_USE_NONCE_TCP_DEFAULT_ADDRESS Use nonce tcp default address default=OFF
121 DBUS_USE_OUTPUT_DEBUG_STRING enable win32 debug port for message output default=OFF
122
123 [1] requires installed development package of the related dependency
124
125
126API/ABI Policy
127===
128
129Now that D-Bus has reached version 1.0, the objective is that all
130applications dynamically linked to libdbus will continue working
131indefinitely with the most recent system and session bus daemons.
132
133 - The protocol will never be broken again; any message bus should
134 work with any client forever. However, extensions are possible
135 where the protocol is extensible.
136
137 - If the library API is modified incompatibly, we will rename it
138 as in http://ometer.com/parallel.html - in other words,
139 it will always be possible to compile against and use the older
140 API, and apps will always get the API they expect.
141
142Interfaces can and probably will be _added_. This means both new
143functions and types in libdbus, and new methods exported to
144applications by the bus daemon.
145
146The above policy is intended to make D-Bus as API-stable as other
147widely-used libraries (such as GTK+, Qt, Xlib, or your favorite
148example). If you have questions or concerns they are very welcome on
149the D-Bus mailing list.
150
151NOTE ABOUT DEVELOPMENT SNAPSHOTS AND VERSIONING
152
153Odd-numbered minor releases (1.1.x, 1.3.x, 2.1.x, etc. -
154major.minor.micro) are devel snapshots for testing, and any new ABI
155they introduce relative to the last stable version is subject to
156change during the development cycle.
157
158Any ABI found in a stable release, however, is frozen.
159
160ABI will not be added in a stable series if we can help it. i.e. the
161ABI of 1.2.0 and 1.2.5 you can expect to be the same, while the ABI of
1621.4.x may add more stuff not found in 1.2.x.
163
164NOTE ABOUT STATIC LINKING
165
166We are not yet firmly freezing all runtime dependencies of the libdbus
167library. For example, the library may read certain files as part of
168its implementation, and these files may move around between versions.
169
170As a result, we don't yet recommend statically linking to
171libdbus. Also, reimplementations of the protocol from scratch might
172have to work to stay in sync with how libdbus behaves.
173
174To lock things down and declare static linking and reimplementation to
175be safe, we'd like to see all the internal dependencies of libdbus
176(for example, files read) well-documented in the specification, and
177we'd like to have a high degree of confidence that these dependencies
178are supportable over the long term and extensible where required.
179
180NOTE ABOUT HIGH-LEVEL BINDINGS
181
182Note that the high-level bindings are _separate projects_ from the
183main D-Bus package, and have their own release cycles, levels of
184maturity, and ABI stability policies. Please consult the documentation
185for your binding.
186
README.cygwin
README.dbus4win
1On 2009-10-21 I (Tor Lillqvist <tml@iki.fi>) cherry-picked a bunch of
2commits from the dbus4win-noncetcp branch of the dbus4win repository
3to (my clone of) dbus upstream's master branch.
4
5The dbus4win repository is at least currently at
6git://repo.or.cz/dbus4win.git
7
8I went through the commits done to the dbus4win-noncetcp branch since
9the dbus-1.2.14 tag, i.e. commit f719d454329a1a54ff2d569feaf10ceee7cead50.
10
11The following commits were left out because they either 0) were
12already upstream, 1) seemed broken, or 2) seemed pointless to me,
13especially if the commit message didn't say much. For each commit left
14out, below is three lines: its id, the first log comment line, and an
15explanation why I left it out.
16
17f719d454329a1a54ff2d569feaf10ceee7cead50
18configure.in: not all gccs support -Wno-pointer-sign
19already upstream
20
216eddb6e1229b617ad44c8d61107983229dc7d589
22configure.in: fail abstract socket test gracefully when cross-compilin
23already upstream
24
25c54dd9eefa5ed0d54be3b09cf30c12f05130fda1
26r783: one ifdef lesser
27probably pointless
28
2993c288ca3e86e7760d3ac3fa6490257c1b6dc544
30r783: compile if ENOMEM or EINTR is undefined.
31huh, ENOMEM and EINTR is defined in the Microsoft C library
32
334f4ba13357da15c35a9d4ad111bf972a5d0d5db0
34r783: introduced _dbus_daemon_release() function called in _dbus_loop_quit()...
35this can't be right, there can be nested dbus loops afaik
36
37124eb334324472a10de2c7e0a1455d353431f08f
38unix build fixes against windbus-svn
39can't be right to make a char* const when the code below then assigns through it
40
41594bd19a0c45822d8763871e3491d99beb4d22cb
42introduce DBUS_DIR_SEPERATOR and make use of it. On windows, disable some system service tests
43"forward" slashes work fine on Windows, no need to uglify code with DBUS_DIR_SEPARATOR
44
45cd2cdb3457f72cf058d5b19796ee691ceca6b52c
46r783: introduced DBUS_CLEANUP_OLD_SERVICES that does cleanup prev zombie-instances...
47unsure about this. something specific to KDE-on-Windows?
48
49eeedba5b2f5b008819619764943caddd52441adf
50build fixes for OS X, xcode 3.1.2, gcc 4.2.1
51doesn't apply, seems to be upstream?
52
537dc7f71cf3003e006f6e177b5460d14a7cdbf2de
54configure.in: fix pthread detection
55doesn't apply
56
5705b37fa87b1f6aa670de9007879f53a8198a7a89
58configure.in: suppress -fPIC, -fPIE for W32
59doesn't apply
60
61b0d14fed92d9f539cd3478e72dc2f3ea75f3941a
62configure.in: only check for wspiapi.h on Windows
63nah, no harm checking for it on UNIX too
64
651724fc10e516e2d570537d522d8608abba90be5e
66prototypes cleanup
67related to cd2cdb3457f72cf058d5b19796ee691ceca6b52c which was skipped above
68
README.wince
1DBus Daemon for Windows CE/Windows Mobile 6.5
2=============================================
3
4Bugs in upstream for any window version:
5* MoveFileExA < 0 result check bug
6* double dbus_free somewhere I forgot where (check in -ugly)
7* alignment issue
8* CreateProcess process information handle leak
9* _dbus_getsid NULL vs INVALID_HANDLE_VALUE
10* win_account_to_sid
11
12Customisation
13=============
14
151) At installation, the following registry value should be set to the
16installation directory of the dbus installation (the directory
17containing the bin, etc, share folders):
18
19HKLM\Software\freedesktop\DBus\Install Directory
20
212) Instead of environment variable DBUS_VERBOSE, use
22HKLM\Software\freedesktop\DBus\Verbose
23
242) The keyring directory is MYDOCUMENTS\dbus-keyrings, not
25HOMEPATH\.dbus-keyrings.
26
27
28Compilation
29===========
30
31./configure --host=arm-mingw32ce CPPFLAGS=-I/path/to/expat/include LDFLAGS=-L/path/to/expat/lib
32
33A recent version of libtool is required, with this change:
34
352010-02-28 Pierre Ossman <ossman@ossman.lkpg.cendio.se> (tiny change)
36 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37
38 Fix deplibs check fallback for 64-bit Windows and Windows CE.
39 * libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): Accept file formats
40 'pe-arm-wince' and 'pe-x86-64'. Add note about consistency with ...
41 * libltdl/config/ltmain.m4sh (func_win32_libid): ... the respective
42 pattern here; sync pattern from the former.
43 * tests/deplibs-mingw.at (deplibs without file command): New
44 file, new test.
45 * Makefile.am (TESTSUITE_AT): Update.
46 * NEWS: Update.
47
48
49MB vs WCHAR
50===========
51
52Windows CE only supports the Unicode interface, while DBus Daemon uses
53the Multi-Byte interface on Windows by default. The glue code does
54not support multibyte in all cases. In particular, the _mbsrchr
55function is not correctly implemented. It could be correctly
56implemented, or dbus daemon could use the wchar interface more
57consistently on all Windows targets. For now, the Windows CE port
58will only work for filesystems without some weird characters in file
59names. Is this a serious limitation?
60
61
62Known Issues
63============
64
65Autolaunch is broken so far.
66
67Environment variables are faked. Some are punted to the registry, but
68in any case they can not be used reliably for IPC.
69
70The test suite is not ported yet.
71
72dbus-pipe.c:
73 * Uses libc file descriptors. Needed for --print-address and
74 --print-pid which probably don't work yet.
75
76dbus-sysdeps-win.c:
77 * Backtraces have been disabled.
78 * _dbus_fd_set_close_on_exec Not supported, maybe we should disable
79 the warning.
80 * SearchPathA: Uses HKLM\\Software\\freedesktop\\DBus\\Install Directory
81 to locate binaries.
82
README.windbus