Marcus Brinkmann [Tue, 6 Apr 2010 15:49:42 +0000 (17:49 +0200)]
clean up def file change.
Ralf Habacker [Tue, 13 Apr 2010 17:45:22 +0000 (19:45 +0200)]
Merge branch 'master' of ssh://rhabacker@git.freedesktop.org/git/dbus/dbus
Marcus Brinkmann [Tue, 16 Mar 2010 02:27:42 +0000 (03:27 +0100)]
Prepare for WinCE port: Convert windows code to native API, avoid errno.
Romain Pokrzywka [Mon, 29 Mar 2010 23:44:57 +0000 (16:44 -0700)]
update WinCE cmake support
Romain Pokrzywka [Mon, 29 Mar 2010 23:44:57 +0000 (16:44 -0700)]
update WinCE cmake support
Ralf Habacker [Tue, 13 Apr 2010 13:40:06 +0000 (15:40 +0200)]
Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus
Ralf Habacker [Sat, 10 Apr 2010 22:36:17 +0000 (00:36 +0200)]
Cmake build system cleanup.
Converted tabs to spaces and removed trailing spaces in test dir.
Ralf Habacker [Fri, 9 Apr 2010 21:34:28 +0000 (23:34 +0200)]
Cmake support for cross plattform usable test files.
Recent test configuration files contains 'unix:...'
bus adresses which do not work on windows.
For cross plattform usable test files the whole
listen tag entry has to be set by the build system,
which is available with a new build system variable
named TEST_LISTEN.
To have the client client side definition in sync,
TEST_CONNECTION has been moved from c file into cmake
build system.
Ralf Habacker [Fri, 9 Apr 2010 23:20:45 +0000 (01:20 +0200)]
Fixed meinproc4 docbook generator detection for cmake buildsystem.
Ralf Habacker [Fri, 9 Apr 2010 21:07:11 +0000 (23:07 +0200)]
Simplified cmake specific test file generating.
If there is a *.cmake test file available for
a related *.in file, take the *.cmake test file
instead of the *.in file as test file source.
Also added some messages.
Ralf Habacker [Tue, 30 Mar 2010 06:31:49 +0000 (08:31 +0200)]
Fixed xmlto usage on unix for cmake build system.
Ralf Habacker [Mon, 29 Mar 2010 19:28:47 +0000 (21:28 +0200)]
Determine docbook.xsl path on windows from meinproc4 executable.
Patrick von Reth [Mon, 29 Mar 2010 08:15:34 +0000 (10:15 +0200)]
Added x64 and ia64 backtrace support for windows.
Ralf Habacker [Fri, 26 Mar 2010 20:12:43 +0000 (21:12 +0100)]
Cleaned up _dbus_verbose calls: function names and code line numbers are printed by default.
Ralf Habacker [Wed, 24 Mar 2010 12:44:26 +0000 (13:44 +0100)]
Added cmake build system notes to README and INSTALL.
Ralf Habacker [Tue, 23 Mar 2010 08:21:48 +0000 (09:21 +0100)]
Renamed libdbus-convenience to libdbus-internal for automake (to stay in sync with cmake).
Marcus Brinkmann [Tue, 23 Mar 2010 01:09:26 +0000 (02:09 +0100)]
Update dll export for autoconf (to stay in sync with cmake).
Ralf Habacker [Mon, 22 Mar 2010 21:33:02 +0000 (22:33 +0100)]
Keep cmake build system in sync with commit
d47154c28b68b32177773bd489fdae62b440f38c.
Colin Walters [Mon, 22 Mar 2010 18:39:56 +0000 (14:39 -0400)]
Merge branch 'dbus-1.2'
Conflicts:
bus/dispatch.c
configure.in
test/name-test/test-names.c
Colin Walters [Mon, 22 Mar 2010 18:33:37 +0000 (14:33 -0400)]
[64 bit printf] Update to use DBUS_PID_FORMAT, print (omitted)
There were already defines for formatting pids and uids, so use those.
In the case where we don't have a format specifier for 64 bit, print
(omitted) in dbus-monitor.
Colin Walters [Mon, 22 Mar 2010 15:50:24 +0000 (11:50 -0400)]
Add DBUS_INT64_MODIFIER define, turn on -Wformat
https://bugs.freedesktop.org/show_bug.cgi?id=19195
We were previously using -Wno-format because we didn't have
a #define for DBUS_INT64_MODIFIER, which was really lame because
it easily hid problems.
For now, just define it if we're on glibc; this is obviously
not strictly correct but it's safe, because the formatting
is only used in DBUS_VERBOSE mode, and in tools/dbus-monitor.
Ideally we get the the glib code relicensed.
Colin Walters [Mon, 22 Mar 2010 14:38:12 +0000 (10:38 -0400)]
Add DBUS_GNUC_PRINTF checks to new formatting functions
Otherwise we don't get GCC warnings.
Ralf Habacker [Mon, 22 Mar 2010 16:23:29 +0000 (17:23 +0100)]
Removed unused cmake packages.
Ralf Habacker [Mon, 22 Mar 2010 14:49:30 +0000 (15:49 +0100)]
Added signal.h and locale.h detection for cmake build system.
Marcus Brinkmann [Tue, 16 Mar 2010 02:33:04 +0000 (03:33 +0100)]
Make more signal and locale interface use conditional.
Ralf Habacker [Mon, 22 Mar 2010 09:55:30 +0000 (10:55 +0100)]
unknown [Mon, 22 Mar 2010 09:38:38 +0000 (10:38 +0100)]
Make the windows binaries and build match the linux one with cmake buildsystem.
This is performed by including the files from the client lib in the internal one
and by removing the linking to dbus-1 for targets using the internal library.
Ralf Habacker [Fri, 19 Mar 2010 15:14:31 +0000 (16:14 +0100)]
Removed def file support for cmake build system.
Colin Walters [Sun, 21 Mar 2010 11:01:15 +0000 (07:01 -0400)]
[bus] While creating a syslog, correctly get pointer data from DBusString
Ralf Habacker [Sat, 20 Mar 2010 21:30:16 +0000 (22:30 +0100)]
CMake dbus libraries usage cleanup.
Renamed DBUS_LIBRARIES to DBUS_INTERNAL_LIBRARIES and moved to top level CMakeLists.txt.
Removed obsolate references of dbus-internal library.
Added DBUS_LIBRARIES definition which contains only the dbus library.
Ralf Habacker [Sat, 20 Mar 2010 20:11:10 +0000 (21:11 +0100)]
Fixed gcc on windows limitation
A pointer to a function or variable marked as dllimport
cannot be used as a constant address.
Ralf Habacker [Fri, 19 Mar 2010 20:42:54 +0000 (21:42 +0100)]
win32 fix: Only diplay memory allocation testing error note once.
Ralf Habacker [Fri, 19 Mar 2010 20:33:57 +0000 (21:33 +0100)]
fixed def file usage for cmake mingw builds
Marcus Brinkmann [Fri, 19 Mar 2010 11:51:12 +0000 (12:51 +0100)]
Do not use DBUS_WIN in a public header file, use _WIN32.
Marcus Brinkmann [Fri, 19 Mar 2010 11:37:21 +0000 (12:37 +0100)]
Define dbus_1_EXPORTS when appropriate.
Marcus Brinkmann [Fri, 19 Mar 2010 11:36:49 +0000 (12:36 +0100)]
Consistently include <config.h> in all C source files and never in header files.
Will Thompson [Thu, 4 Feb 2010 20:24:54 +0000 (20:24 +0000)]
Dispatch post-activation messages to anyone interested
Previously, if a method call activated a service, it would only be
delivered to that service, and not to other services with match rules
which should match. This patch replaces the improperly-duplicated
dispatch code in activation.c with a call back into the normal dispatch
code, fixing this bug (fd.o#26427).
(Additionally, were one to service-activate a service that doesn't
understand file descriptors with a message containing a file descriptor,
the previous code would send it anyway, and the service's dbus library
would blow up. This is also fixed here, since the normal dispatch code
checks this correctly.)
Will Thompson [Thu, 4 Feb 2010 20:12:28 +0000 (20:12 +0000)]
Move dispatching to destination to bus_dispatch_matches()
Will Thompson [Thu, 4 Feb 2010 20:24:54 +0000 (20:24 +0000)]
Dispatch post-activation messages to anyone interested
Previously, if a method call activated a service, it would only be
delivered to that service, and not to other services with match rules
which should match. This patch replaces the improperly-duplicated
dispatch code in activation.c with a call back into the normal dispatch
code, fixing this bug (fd.o#26427).
Will Thompson [Thu, 4 Feb 2010 20:12:28 +0000 (20:12 +0000)]
Move dispatching to destination to bus_dispatch_matches()
Colin Walters [Wed, 17 Mar 2010 16:43:40 +0000 (12:43 -0400)]
Post-release version bump
Colin Walters [Wed, 17 Mar 2010 02:30:50 +0000 (22:30 -0400)]
Release 1.2.22
Colin Walters [Wed, 17 Mar 2010 02:25:40 +0000 (22:25 -0400)]
Delete name-test/test-names
This test, while extensive, has the serious flaw of effectively
spinning on _dbus_connection_do_iteration_unlocked. Any tests
like this should be using the internal DBus mainloop, which
I don't have time to port it to before doing a release.
Romain Pokrzywka [Tue, 16 Mar 2010 23:14:55 +0000 (16:14 -0700)]
export _dbus_credentials_to_string_append for the tests
Romain Pokrzywka [Tue, 16 Mar 2010 23:13:00 +0000 (16:13 -0700)]
Update the windows implementation of logging functions
Following commit:
04cf3166002a86b9a22851be4e243c87b5b3048d for Unix.
Marcus Brinkmann [Tue, 16 Mar 2010 10:15:58 +0000 (11:15 +0100)]
Fix the make dist target.
Marcus Brinkmann [Tue, 16 Mar 2010 02:15:15 +0000 (03:15 +0100)]
Prepend HOMEDRIVE to HOMEPATH so cross-volume accesses work.
Marcus Brinkmann [Mon, 15 Mar 2010 14:52:49 +0000 (15:52 +0100)]
Check return value of MoveFileEx correctly.
Marcus Brinkmann [Mon, 15 Mar 2010 14:51:27 +0000 (15:51 +0100)]
Close process handle leak.
Marcus Brinkmann [Mon, 15 Mar 2010 14:49:31 +0000 (15:49 +0100)]
Use INVALID_HANDLE_VALUE, not NULL.
Marcus Brinkmann [Mon, 15 Mar 2010 14:43:32 +0000 (15:43 +0100)]
Fix possible alignment issue.
Colin Walters [Tue, 16 Mar 2010 20:44:48 +0000 (16:44 -0400)]
Merge branch 'dbus-1.2'
Colin Walters [Tue, 16 Mar 2010 17:20:36 +0000 (13:20 -0400)]
Don't send an reply for driver messages if one isn't requested
Basically honor the no_reply flag; a binding is likely to want to
set this so it doesn't have to process extra traffic for match
rules.
Colin Walters [Tue, 16 Mar 2010 20:04:15 +0000 (16:04 -0400)]
Merge branch 'dbus-1.2'
Conflicts:
bus/bus.c
configure.in
Colin Walters [Mon, 15 Mar 2010 22:31:30 +0000 (18:31 -0400)]
Make SELinux initialization failure fatal
https://bugzilla.redhat.com/show_bug.cgi?id=572769
Previously we'd just continue if AVC initialization failed, but
that didn't really work because then we'd later crash in
avc_has_perm.
Simply treat initialization failures as fatal, and hopefully we
can get data from the system log.
Colin Walters [Tue, 16 Mar 2010 11:19:04 +0000 (07:19 -0400)]
Add a prefix to our syslog messages
Previously we were simply logging as "dbus", and it was unclear
whether it was the system bus, or a session bus. And if the latter,
which user?
This patch adds a prefix to the log message with the bus type
and the userid.
Colin Walters [Tue, 16 Mar 2010 13:00:23 +0000 (09:00 -0400)]
Add _dbus_credentials_to_string_append
Convert the credentials to a string; useful for logging.
Colin Walters [Fri, 12 Mar 2010 16:30:00 +0000 (11:30 -0500)]
Add DBUS_SYSTEM_LOG_FATAL severity
This severity is useful for when we encounter a fatal problem; we
get a log message out, then exit.
Colin Walters [Mon, 15 Mar 2010 17:50:48 +0000 (13:50 -0400)]
Refactor _dbus_log_info, _dbus_log_security into _dbus_log_system
In preparation for a future patch which introduces a fatal logging level,
don't duplicate the API here.
Kimmo Hämäläinen [Tue, 16 Mar 2010 17:55:13 +0000 (13:55 -0400)]
[dbus-spawn] Use correct sign values for variables
read() returns a signed value, whereas the byte count is unsigned.
Signed-off-by: Colin Walters <walters@verbum.org>
Kimmo Hämäläinen [Tue, 16 Mar 2010 17:50:30 +0000 (13:50 -0400)]
[dbus] Add missing va_end in dbus-errors.c
Colin Walters [Tue, 16 Mar 2010 17:11:20 +0000 (13:11 -0400)]
[main] Handle OOM in reload watch
http://bugs.freedesktop.org/show_bug.cgi?id=12953
Wait for memory if we can't init the string.
Based on an original patch by Kimmo Hämäläinen <kimmo.hamalainen@nokia.com>
Simon McVittie [Tue, 16 Mar 2010 16:40:08 +0000 (12:40 -0400)]
[doc/dbus-specification.xml] Explicitly specify lower-case hex must be used
https://bugs.freedesktop.org/show_bug.cgi?id=9486
When describing DBUS_COOKIE_SHA1, specify that lower-case hex encoding
must be used.
Colin Walters [Tue, 16 Mar 2010 16:16:33 +0000 (12:16 -0400)]
Support inotify on older kernels
https://bugs.freedesktop.org/show_bug.cgi?id=23957
Previously we detected glibc support at compile time and used
it unconditionally; better to try it and fall back, this way
we continue to run on older kernels when compiled for newer ones.
Ralf Habacker [Thu, 4 Mar 2010 22:39:03 +0000 (23:39 +0100)]
Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters.
Marcus Brinkmann [Mon, 15 Mar 2010 14:39:45 +0000 (15:39 +0100)]
Fix double-free in error case.
Signed-off-by: Thiago Macieira <thiago@kde.org>
Colin Walters [Fri, 12 Mar 2010 22:23:10 +0000 (17:23 -0500)]
[configure.in] Use AM_SILENT_RULES if available
By rough consensus, and to keep up with the cool kids.
Note to builders: you need to use V=1 to enable verbose mode.
Michael Meeks [Fri, 12 Mar 2010 16:50:27 +0000 (11:50 -0500)]
[DBusConnection] When handling a watch, return if another thread is doing I/O
http://lists.freedesktop.org/archives/dbus/2010-March/012337.html
Previously, the watch handler would block until the I/O path was available.
However, if another non-main thread was doing a synchronous call, this would
cause the main thread to block on that thread, a highly undesirable
thing because it's important for the main thread to remain responsive
for user interfaces.
Signed-off-by: Colin Walters <walters@verbum.org>
Signed-off-by: Thiago Macieira <thiago@kde.org>
Ralf Habacker [Mon, 8 Mar 2010 13:44:45 +0000 (14:44 +0100)]
removed obsolate file from windbus port
Ralf Habacker [Mon, 8 Mar 2010 14:56:56 +0000 (15:56 +0100)]
fixed bus-test sha1 connection address on unix with cmake build system
Ralf Habacker [Mon, 8 Mar 2010 14:55:46 +0000 (15:55 +0100)]
fixed backtrace printing on unix with cmake build system
Frederic Crozat [Wed, 3 Mar 2010 13:05:23 +0000 (14:05 +0100)]
Fix build when selinux is disabled but libaudit enabled
https://bugs.freedesktop.org/show_bug.cgi?id=26859
Ralf Habacker [Sun, 28 Feb 2010 20:32:05 +0000 (21:32 +0100)]
_dbus_string_toupper_ascii(): new function, reviewed by Colin Walters.
Ralf Habacker [Sat, 27 Feb 2010 08:09:04 +0000 (09:09 +0100)]
win32 fix: make dbus string content visible to debuggers, reviewed by Colin Walters.
Ralf Habacker [Sun, 28 Feb 2010 19:56:42 +0000 (20:56 +0100)]
_dbus_string_tolower_ascii(): new function, reviewed by Colin Walters.
Ralf Habacker [Fri, 26 Feb 2010 07:37:53 +0000 (08:37 +0100)]
linux compile fix
Marcus Brinkmann [Fri, 26 Feb 2010 01:34:54 +0000 (02:34 +0100)]
Generate Windows def files from def.in files.
Romain Pokrzywka [Tue, 23 Feb 2010 00:32:44 +0000 (16:32 -0800)]
fix potential crashes on windows with MSVC, due to badly exported variables
Romain Pokrzywka [Sat, 13 Feb 2010 01:59:14 +0000 (19:59 -0600)]
--warning
Romain Pokrzywka [Tue, 9 Feb 2010 03:16:05 +0000 (21:16 -0600)]
small fixes for DBUS_USE_OUTPUT_DEBUG_STRING code
Ralf Habacker [Thu, 25 Feb 2010 17:12:47 +0000 (18:12 +0100)]
fixed compile break introduced in commit
e1c31c73074513d96fa22b5c0355107c42720597
Colin Walters [Mon, 22 Feb 2010 14:48:45 +0000 (09:48 -0500)]
Merge branch 'dbus-1.2'
Conflicts:
bus/bus.c
bus/selinux.c
configure.in
Colin Walters [Fri, 19 Feb 2010 21:34:47 +0000 (16:34 -0500)]
[dbus-string] Sync up UNICODE_VALID with glib, add documentation
See https://bugzilla.gnome.org/show_bug.cgi?id=107427 for rationale
behind the first change.
The documentation was derived from an IRC conversation with
Behdad Esfahbod.
Colin Walters [Fri, 19 Feb 2010 17:39:56 +0000 (12:39 -0500)]
Finish moving file-related functions from dbus-sysdeps-unix to dbus-file-unix
Colin Walters [Thu, 18 Feb 2010 20:33:28 +0000 (15:33 -0500)]
Monitor service directories for changes
It's not expected to have to manually SIGHUP the bus after installing
a new .service file. Since our directory monitoring is already set
up to queue a full reload which includes service activation, simply
monitor the servicedirs too.
https://bugs.freedesktop.org/show_bug.cgi?id=23846
Brian Cameron [Thu, 18 Feb 2010 15:38:42 +0000 (10:38 -0500)]
Fix dummy file monitoring backend compilation
https://bugs.freedesktop.org/show_bug.cgi?id=26421
Colin Walters [Thu, 18 Feb 2010 15:09:20 +0000 (10:09 -0500)]
Revert "_dbus_string_to_lower(): new function"
This reverts commit
39aa8090241b2588eeb2df05880d71abaf8c526e.
Ralf Habacker [Fri, 12 Feb 2010 07:47:33 +0000 (08:47 +0100)]
_dbus_string_to_lower(): new function
Ralf Habacker [Fri, 12 Feb 2010 07:46:10 +0000 (08:46 +0100)]
Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus
Marcus Brinkmann [Thu, 11 Feb 2010 16:04:10 +0000 (17:04 +0100)]
Enable dbus-launch for Windows target.
Ralf Habacker [Wed, 10 Feb 2010 12:03:19 +0000 (13:03 +0100)]
added some docs for windows and updated the documentation index
Ralf Habacker [Wed, 10 Feb 2010 08:26:52 +0000 (09:26 +0100)]
fixed xml doc generating for cmake build system - supported docbook generator is currently kde's meinproc4, xmlto may also work but need still some checks
Ralf Habacker [Tue, 9 Feb 2010 18:44:12 +0000 (19:44 +0100)]
Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus
Ralf Habacker [Tue, 9 Feb 2010 07:37:50 +0000 (08:37 +0100)]
fixed bug on win32 not been able to use session bus with --config-file option
Internal setup of session bus type was bound to the presence of the --session
command line parameter which prevents to use the --config-file parameter for
session bus setup.
Cyril Brulebois [Mon, 8 Feb 2010 17:21:35 +0000 (12:21 -0500)]
Fix compilation of kqueue file monitoring on FreeBSD
Romain Pokrzywka [Fri, 5 Feb 2010 08:54:16 +0000 (09:54 +0100)]
variable name fix (DBUS_DAEMON_NAME instead of DAEMON_NAME)
Romain Pokrzywka [Fri, 5 Feb 2010 00:36:57 +0000 (16:36 -0800)]
apply remaining unapplied parts of
eeedba5b2f5b008819619764943caddd52441adf in dbus4win
Romain Pokrzywka [Fri, 5 Feb 2010 00:13:14 +0000 (16:13 -0800)]
not needed anymore. Builds fine without for both msvc and mingw
Romain Pokrzywka [Thu, 4 Feb 2010 23:20:40 +0000 (15:20 -0800)]
add new symbols from 1.3 to the exports
Romain Pokrzywka [Thu, 4 Feb 2010 21:49:39 +0000 (13:49 -0800)]
move dbus-1.def.cmake to the cmake subdir, as it's cmake specific