NameDateSize

..21-Nov-20124 KiB

.gitignore21-Nov-2012290

acinclude.m421-Nov-20127.3 KiB

Android.mk21-Nov-201237

AUTHORS21-Nov-20124.2 KiB

autogen.sh21-Nov-20122.2 KiB

bus/21-Nov-20124 KiB

ChangeLog21-Nov-2012215

ChangeLog.pre-1-021-Nov-2012509.5 KiB

ChangeLog.pre-1-221-Nov-201271 KiB

CleanSpec.mk21-Nov-20122.2 KiB

cleanup-man-pages.sh21-Nov-20123.8 KiB

cmake/21-Nov-20124 KiB

config.h21-Nov-20128 KiB

configure.in21-Nov-201251.2 KiB

COPYING21-Nov-201228.5 KiB

dbus/21-Nov-20124 KiB

dbus-1.pc.in21-Nov-2012558

doc/21-Nov-20124 KiB

Doxyfile.in21-Nov-20126.9 KiB

HACKING21-Nov-201212.4 KiB

INSTALL21-Nov-20129.9 KiB

Makefile.am21-Nov-20121.6 KiB

Makefile.cvs21-Nov-201291

MODULE_LICENSE_AFL_AND_GPL21-Nov-20120

NEWS21-Nov-2012690

NEWS.pre-1-021-Nov-201222.2 KiB

NEWS.pre-1-221-Nov-20126.5 KiB

NOTICE21-Nov-201228.4 KiB

README21-Nov-20128.3 KiB

README.cygwin21-Nov-2012234

README.dbus4win21-Nov-20122.5 KiB

README.wince21-Nov-20122.7 KiB

README.windbus21-Nov-20125.7 KiB

test/21-Nov-20124 KiB

tools/21-Nov-20124 KiB

update-dbus-docs.sh21-Nov-20122.2 KiB

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

1The cygwin dbus port is included in master branch of
2dbus git repository since 1.3.1.
3
4See cygwin/README for more informations about
5the cygwin dbus port.
6
7The cygwin port of dbus is maintained by:
8
9http://sourceware.org/cygwinports/
10

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

1This README.windbus file below originates from the "windbus" fork. It
2does not reflect reality here. Changes from both windbus and the
3separate "dbus4win" fork have been merged into this code repository,
4as applicable.
5
6----------------------------------------
7Windows port of the freedesktop.org D-Bus
8----------------------------------------
9
10Requirements 
11------------
12- cmake version >= 2.4.4 see http://www.cmake.org 
13- installed libxml2 or libexpat from http://82.149.170.66/kde-windows/win32libs
14
15Build
16-----
17
18unix
191. install cmake and libxml or libexpat 
202. get dbus sources 
213. mkdir dbus-build 
224. cd dbus-build 
235. cmake <dbus-src-root>/cmake or cmake -DDBUS_USE_EXPAT=on <dbus-src-root>/cmake in case libexpat should de used
245. make 
256. make install
26
27win32
281. Install your prefered compiler
29	- Mingw from www.mingw.org 
30	- Visual C++ 2005 Express/Studio
31	
322. Install libxml2 or libexpat packages from 
33     http://82.149.170.66/kde-windows/win32libs
34   into a subdir win32libs in your program installation eg 
35     - german  => "c:\Programme\win32libs"
36     - english => "c:\Program Files\win32libs" 
37     
383. download and install the most recent CMake version from http://www.cmake.org/files/
39
404. apply dbus-win.patch: 'patch -p0 -i dbus-win.patch'
41
425. open command shell and run in the created build folder which resides side by side 
43   to the D-Bus sources:
44   	- for mingw: 
45		cmake -G "MinGW Makefiles" <options> ..\<dbus-source-root>\cmake
46	- for Visual C++
47		cmake ..\<dbus-source-root>\cmake
48
497. build
50
51
52Tests
53-----
54(when build with the Visual C++ IDE the *.exe files are 
55in the bin/Debug and bin/Release folder)
56
57 - dbus library check 
58		bin\dbus-test.exe .\test\data
59	
60 - bus daemon check 
61		bin\bus-test.exe .\test\data
62
63 - check available names 
64		bin\test_names.exe 
65
66 - check if dbus-daemon is accessable 
67		bin\dbus-send.exe --session --type=method_call --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.ListNames method return sender=org.freedesktop.DBus -> dest=:1.4 array [ 	      string "org.freedesktop.DBus"string ":1.4"] 
68		
69 - start dbus-daemon
70		* set DBUS_VERBOSE=0  (=1 for getting debug infos)
71		* start bin\dbus-daemon --session
72		* bin\dbus-send.exe  --dest=org.freedesktop.DBus --print-reply --type=method_call / org.freedesktop.DBus.StartServiceByName string:org.freedesktop.DBus.TestSuiteEchoService  uint32:455 method return sender=org.freedesktop.DBus -> dest=:1.8 uint32 2
73
74
75
76Some build options
77-------------
78    key                        description                            default value
79    ---                        -----------                            -------------
80DBUS_USE_EXPAT              "Use expat (== ON) or libxml2 (==OFF)         OFF
81DBUS_DISABLE_ASSERTS        "Disable assertion checking"                  OFF
82DBUS_BUILD_TESTS            "enable unit test code"                       ON
83DBUS_ENABLE_ANSI            "enable -ansi -pedantic gcc flags"            OFF
84DBUS_ENABLE_GCOV            "compile with coverage profiling 
85                             instrumentation (gcc only)"                  OFF
86DBUS_ENABLE_VERBOSE_MODE    "support verbose debug mode"                  ON
87DBUS_DISABLE_CHECKS         "Disable public API sanity checking"          OFF
88DBUS_INSTALL_SYSTEM_LIBS    "install required system libraries 
89                             (mingw: libxml2, libiconv, mingw10)"         OFF
90CMAKE_BUILD_TYPE            "build type (== debug) or (== release)        release
91
92
93
94Developers
95----------
96
97Running the tests in Visual Studio:
98
99 To successfully run the tests by the IDE you must add
100 the FULL patch to test\data in your build directory
101 (e.g. c:\dbus\build\test\data)  
102 in something like 
103  -> Project Settings
104    -> Debugging
105       -> Command line arguments
106    
107    
108       
109FAQ
110---
111
112- How much work remains till DBUS win32 can be merged with the main project?
113
114There are some patches outstanding and the most effort is required in
115discussions with the main dbus team how to implement some parts. One of
116the main dbus team estimated the open work to one fulltime week.
117http://lists.freedesktop.org/archives/dbus/2006-November/006264.html
118
119I assume they will answer ALL your questions, and they are very
120interested in fully supporting win32.
121
122- How far is WinDBus from being usable for production ?
123dbus comes with a test suite which is used on unix to guarantate
124production quality and this test suite runs mostly. There are some 
125test not running and we need help to get them running.
126
127In the pratice I and some other people are using dbus for at least more
128than a half year in conjunction with kde on windows without any problems.
129
130
131- On UNIX D-Bus uses UNIX sockets to communicate (correct me if I'm wrong). 
132  What is used on Windows ?
133  
134tcp sockets, there are some efforts to get named pipe running, but some
135design problems of the win32 api, we are not able to solve without
136bigger changes to the dbus code base let us stop this effort.
137
138
139- Do you have any clue if dbus-win32 can run in a Windows CE environment?
140
141I was told that windows ce does not have posix function
142open/close/select/... and dbus code uses such function in some area.
143
144
145- Do you know if the C++ binding made by OpenWengo will be easily portable to Windows?
146
147We have already ported the OpenWengo dbus-c++ binding, see in WinDBus svn  (http://sf.net/projects/windbus)
148The related test applicationa are running well.
149
150
151TODO
152----
153
154February 2007:
155
156- all changes of dbus-win.patch should become part of the official D-Bus code
157  
158- all code currently disabled by DBUS_WIN_FIXME should work
159  
160- clean up:
161    * bus/bus-service-win.c
162    * bus/dir-watch.c
163    * dbus/dbus-spawn-win.c
164    * dbus/dbus-sysdeps-util-win.c
165    * dbus/dbus-sysdeps-win.c
166
167
168see also:
169http://lists.freedesktop.org/archives/dbus/2006-July/005076.html
170