platform/upstream/dbus.git
14 years agoreadded test files required for windows
Ralf Habacker [Tue, 1 Dec 2009 09:53:53 +0000 (10:53 +0100)]
readded test files required for windows

14 years agoremoved unsupported symbols for msvc
Ralf Habacker [Tue, 1 Dec 2009 09:51:17 +0000 (10:51 +0100)]
removed unsupported symbols for msvc

14 years agoDrop unused complex function
Tor Lillqvist [Tue, 27 Oct 2009 12:18:17 +0000 (14:18 +0200)]
Drop unused complex function

Drop _dbus_user_at_console() from dbus-sysdeps-util-win.c. It is
called only from dbus-userdb-util.c which isn't compiled on Windows.

14 years agoSet the DBusError
Tor Lillqvist [Tue, 27 Oct 2009 12:13:37 +0000 (14:13 +0200)]
Set the DBusError

Put the correct error code and a relevant message into the DBusError
in _dbus_unix_user_is_at_console().

14 years agoDon't fake network errno values on Windows
Tor Lillqvist [Thu, 22 Oct 2009 10:24:22 +0000 (13:24 +0300)]
Don't fake network errno values on Windows

Don't pretend there exists errno values for some network errors in the
Microsoft C library. Just use the WinSock error values.

14 years agoHandle also WinSock errors in _dbus_error_from_errno
Tor Lillqvist [Thu, 22 Oct 2009 10:19:23 +0000 (13:19 +0300)]
Handle also WinSock errors in _dbus_error_from_errno

Handle those WinSock errors that match the errno values handled. Don't
bother handling those errors that are mapped to DBUS_ERROR_FAILED in
the switch as that is the default return value anyway.

14 years agoWindows fixes
Frank Osterfeld [Thu, 22 Oct 2009 10:03:11 +0000 (13:03 +0300)]
Windows fixes

Replace dbus_daemon_init() by dbus_publish_session_bus_address(),
publishing the full address. Omit username from mutexes (not necessary
as mutex names are local to session). Don't exit if publishing the
address failed (allow multiple session bus instances per
session). Based on 00ee92ae314 by Tor Lillqvist.

Cherry-picked from commit 23945513e9a4da61d286ebfbce3897aa061ddbfe in
the dbus4win repository by tml@iki.fi. Remove claim of that commit not
being merged from README.dbus4win.

14 years agoAvoid warnings on Windows
Tor Lillqvist [Thu, 22 Oct 2009 00:22:54 +0000 (03:22 +0300)]
Avoid warnings on Windows

Remove unused functions, or put in #if 0 if potentially useful. Make
internal functions used just in one file static. Use -Werror after all
also on Windows. Construct the installation root from the location of
the dbus DLL, not from the location of the program .exe of the
process.

14 years agoused dbus/dbus-1.def for cmake too
Ralf Habacker [Tue, 1 Dec 2009 09:20:55 +0000 (10:20 +0100)]
used dbus/dbus-1.def for cmake too

14 years agoadded missing symbols for bus-test
Ralf Habacker [Tue, 1 Dec 2009 09:20:38 +0000 (10:20 +0100)]
added missing symbols for bus-test

14 years agoupdated version
Ralf Habacker [Tue, 1 Dec 2009 09:18:46 +0000 (10:18 +0100)]
updated version

14 years agoDrop terminating slash in _dbus_get_tmpdir
Tor Lillqvist [Thu, 22 Oct 2009 01:14:04 +0000 (04:14 +0300)]
Drop terminating slash in _dbus_get_tmpdir

The callers will append strings starting with a slash anyway.

14 years agoUse nonce-tcp default session bus on Windows
Tor Lillqvist [Thu, 22 Oct 2009 00:51:18 +0000 (03:51 +0300)]
Use nonce-tcp default session bus on Windows

14 years agoCheck for dirent.h
Tor Lillqvist [Wed, 21 Oct 2009 23:56:18 +0000 (02:56 +0300)]
Check for dirent.h

14 years agoDBUS_VERSION is always three numbers
Tor Lillqvist [Wed, 21 Oct 2009 23:25:19 +0000 (02:25 +0300)]
DBUS_VERSION is always three numbers

No *-rc* possible. So drop strange crap manipulating it for
BUILD_FILEVERSION. Drop duplicate AC_SUBST.

14 years agoActually do install the .def file on Windows
Tor Lillqvist [Wed, 21 Oct 2009 23:03:07 +0000 (02:03 +0300)]
Actually do install the .def file on Windows

14 years agoUse dbus-1.def on Windows
Tor Lillqvist [Wed, 21 Oct 2009 19:04:52 +0000 (22:04 +0300)]
Use dbus-1.def on Windows

14 years agoDrop internal symbols, add missing symbols
Tor Lillqvist [Wed, 21 Oct 2009 19:03:17 +0000 (22:03 +0300)]
Drop internal symbols, add missing symbols

14 years agoAdd a dbus/dbus-1.def file
Tor Lillqvist [Wed, 21 Oct 2009 18:56:27 +0000 (21:56 +0300)]
Add a dbus/dbus-1.def file

From cmake/dbus/dbus-1.def.cmake

14 years agoDon't use DBUS_DIR_SEPARATOR
Tor Lillqvist [Wed, 21 Oct 2009 18:52:59 +0000 (21:52 +0300)]
Don't use DBUS_DIR_SEPARATOR

I didn't cherry-pick the commit from dbus4win that introduced
DBUS_DIR_SEPARATOR, as I think it just uglifies the code with little
gain. (Forward) slashes work fine on Windows.

14 years agoDon't use -fPIC and -fPIE on Windows
Tor Lillqvist [Wed, 21 Oct 2009 18:49:50 +0000 (21:49 +0300)]
Don't use -fPIC and -fPIE on Windows

The MinGW compiler recognizes them but emits a warning "-fPIC ignored
for target (all code is position independent)"

14 years agoAdd file describing the merge of the dbus4win code
Tor Lillqvist [Wed, 21 Oct 2009 18:14:22 +0000 (21:14 +0300)]
Add file describing the merge of the dbus4win code

14 years agoTell where the file comes from and that it might not be reliable
Tor Lillqvist [Wed, 21 Oct 2009 18:11:10 +0000 (21:11 +0300)]
Tell where the file comes from and that it might not be reliable

14 years agoRename README.win to README.windbus to match its origin
Tor Lillqvist [Wed, 21 Oct 2009 18:07:31 +0000 (21:07 +0300)]
Rename README.win to README.windbus to match its origin

Also add it to EXTRA_DIST.

14 years agoLook for config files also in the normal Unix-style location (cherry picked from...
Tor Lillqvist [Wed, 21 Oct 2009 12:49:03 +0000 (15:49 +0300)]
Look for config files also in the normal Unix-style location (cherry picked from commit 445d1f780fb916f9087c0d95e7594ee5a425d43f)

14 years agoUse multi-byte string functions on Windows
Tor Lillqvist [Wed, 21 Oct 2009 12:31:34 +0000 (15:31 +0300)]
Use multi-byte string functions on Windows

Don't walk through char arrays that contain strings in the system
codepage char by char looking for '\\'. There are double-byte
characters in East Asian codepages where the second byte is a '\\'.
(cherry picked from commit 61316262da466993abbcba010c6bac90bb0b1d43)

14 years agoDon't bother with -Werror on Windows for now
Tor Lillqvist [Wed, 21 Oct 2009 17:48:35 +0000 (20:48 +0300)]
Don't bother with -Werror on Windows for now

We have so many warnings

14 years agowith msvc, replace va_copy by assigning the va_lists (cherry picked from commit 42d61...
Frank Osterfeld [Fri, 24 Jul 2009 09:39:54 +0000 (10:39 +0100)]
with msvc, replace va_copy by assigning the va_lists (cherry picked from commit 42d613fc9284afaa9543549be26f32e503a58348)

14 years agoFixes to the nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:45:24 +0000 (20:45 +0300)]
Fixes to the nonce code

Cherry-picked from commit f9bc0f4bd036f6ede5d9850fb0f8587178c85f44 in
the dbus4win repository, slightly massaged to apply by tml@iki.fi.

14 years agoFix IPv6 setup (the default on Vista)
Frank Osterfeld [Wed, 21 Oct 2009 17:39:51 +0000 (20:39 +0300)]
Fix IPv6 setup (the default on Vista)

Ensure that the right struct is passed.

Cherry-picked from commit 172d60d100d04e301e51ff475ada02007f1709dc in
the dbus4win repository by tml@iki.fi.

14 years agoAdd api dox for nonce-tcp
Frank Osterfeld [Wed, 21 Oct 2009 17:25:36 +0000 (20:25 +0300)]
Add api dox for nonce-tcp

Cherry-picked from commit e7a070db22ed4a84dc04a062255356c9f6c4c9c5 in
the dbus4win repository, trailing whitespace issues corrected by
tml@iki.fi.

14 years agoFixes to the nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:21:37 +0000 (20:21 +0300)]
Fixes to the nonce code

On Unix, we create a 700 subdir in /tmp only readable by the user, on
Windows we use the user-specific tmpdir and create the noncefile
directly.

Add NonceFile to abstract this behaviour and to delete the noncefile
and possibly tmpdir on shutdown.

Cherry-picked from commit 885f16b90c4f769ae29f432d0ed2a63bb2e4dab8 in
the dbus4win repository. Fixed to apply and correct whitespace issues
by tml@iki.fi.

14 years agoAdd nonce-tcp section to the specification (draft) (cherry picked from commit 7015b2d...
Frank Osterfeld [Tue, 9 Jun 2009 09:56:38 +0000 (11:56 +0200)]
Add nonce-tcp section to the specification (draft) (cherry picked from commit 7015b2db6c8744c88da9cb0fab8d5e0fcfc0220b)

14 years agoImprove error handling in nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:08:12 +0000 (20:08 +0300)]
Improve error handling in nonce code

Replace errno (from assuan code) by DBusError. Errors are not passed
through dbus_accept_with_nonce atm, as the original _dbus_accept() has
no error arg either.

Cherry-picked from commit 8082e92bb3a6304362e730f8b6e324860e1bb26c in
the dbus4win repository, edited to apply and fix whitespace issues by
tml@iki.fi.

14 years agoCleanup of nonce code
Frank Osterfeld [Wed, 21 Oct 2009 17:04:01 +0000 (20:04 +0300)]
Cleanup of nonce code

Remove the write_file function and use the existing
_dbus_string_save_to_file, improve error handling

Cherry picked from commit 0f7b026d01be7e0fd444cdb56e5f9b7a5137a062 in
the dbus4win repository. Edited to apply and fix whitespace issues by
tml@iki.fi.

14 years agoThe current state of the nonce-tcp implementation
Frank Osterfeld [Wed, 21 Oct 2009 16:52:49 +0000 (19:52 +0300)]
The current state of the nonce-tcp implementation

Merged and cleaned up patch from my [Frank Osterfeld's] local work
branch.

Cherry-picked from commit e2801eca57b2d9e09afd662ed5ef6fc83be73afc and
edited by tml@iki.fi to make it apply, and fixing whitespace issues.

14 years agobus/Makefile.am: make dbus-daemon and friends bin_PROGRAMS on Windows
Nguyễn Thái Ngọc Duy [Thu, 11 Jun 2009 11:06:19 +0000 (21:06 +1000)]
bus/Makefile.am: make dbus-daemon and friends bin_PROGRAMS on Windows

On Linux, dbus-daemon and dbus-daemon-launch-helper are treated specially
because they need permission adjustment.

On Windows, all executables are stubs, created by libtool. The real
executables are in .libs. We need to use libtool to install them
properly. So let's make them bin_PROGRAMS on Windows.
(cherry picked from commit 7fb35992d67433ac3ba82e9e2e786e123323456d)

14 years ago-util.c doesn't belong into the lib (cherry picked from commit 6191f6dda62e43765d5f48...
Frank Osterfeld [Thu, 11 Jun 2009 08:53:24 +0000 (10:53 +0200)]
-util.c doesn't belong into the lib (cherry picked from commit 6191f6dda62e43765d5f48d677f7a2349e616a63)

14 years agoMove some functions from dbus-sysdeps-util-win.c to dbus-sysdeps-win.c
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:48:53 +0000 (21:48 +1000)]
Move some functions from dbus-sysdeps-util-win.c to dbus-sysdeps-win.c

These are used by dbus-sysdeps-win.c and it is not linked together
with dbus-sysdeps-util-win.c
(cherry picked from commit 24b612adbf8045b8b00af15f8d44eb38f964641f)

14 years agouse WINDRES instead of RC to compile rc file
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:46:11 +0000 (21:46 +1000)]
use WINDRES instead of RC to compile rc file

This is the way used by GTK+ and other packages. I don't know much about "RC" though.
(cherry picked from commit d5b993ebc1411b15e4563d05fbd92cf8b29cbb4c)

14 years agoremove dbus-uuidgen from Windows build (cherry picked from commit 73873e002ac9ba61593...
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:52:05 +0000 (21:52 +1000)]
remove dbus-uuidgen from Windows build (cherry picked from commit 73873e002ac9ba6159388b2c7b4190c30961ec68)

14 years agoconfigure.in: do not define DBUS_UNIX unconditionally (cherry picked from commit...
Nguyễn Thái Ngọc Duy [Tue, 9 Jun 2009 11:45:10 +0000 (21:45 +1000)]
configure.in: do not define DBUS_UNIX unconditionally (cherry picked from commit 5c072b8c4d912dfe34b72c2b7bbcb4ea359c98d7)

14 years agobus/Makefile.am: conditional compilation for W32, use EXEEXT in install hooks (cherry...
Marc Mutz [Tue, 21 Apr 2009 14:24:51 +0000 (16:24 +0200)]
bus/Makefile.am: conditional compilation for W32, use EXEEXT in install hooks (cherry picked from commit 551a9c446b782167aa8b0a74a41a1b7ffb42c6eb)

14 years agotools/Makefile.am: conditional compilation for W32 (cherry picked from commit 8b2f758...
Marc Mutz [Tue, 21 Apr 2009 14:22:11 +0000 (16:22 +0200)]
tools/Makefile.am: conditional compilation for W32 (cherry picked from commit 8b2f7581ef46b6e9bd29b8399657c039cb49f030)

14 years agoMakefile.am's: reorder libraries so static libs come first (fixes linking on W32...
Marc Mutz [Tue, 21 Apr 2009 10:33:50 +0000 (12:33 +0200)]
Makefile.am's: reorder libraries so static libs come first (fixes linking on W32) (cherry picked from commit f88bd88d6b4b318f9401fae595343c8b1bacf654)

14 years agoconfigure.in: don't look for X11 on W32 (cherry picked from commit 73730866ec198ac4c2...
Marc Mutz [Fri, 17 Apr 2009 18:02:36 +0000 (20:02 +0200)]
configure.in: don't look for X11 on W32 (cherry picked from commit 73730866ec198ac4c24dc69c9f62b4a3a2f05bf1)

14 years agoconfigure.in: add W32 extra libs (cherry picked from commit 909f2b23596247aaef4c59458...
Marc Mutz [Mon, 20 Apr 2009 12:08:23 +0000 (14:08 +0200)]
configure.in: add W32 extra libs (cherry picked from commit 909f2b23596247aaef4c5945853eebf607f7d329)

14 years agoWIN32: add versioninfo, and export symbols
Marc Mutz [Fri, 17 Apr 2009 12:07:25 +0000 (14:07 +0200)]
WIN32: add versioninfo, and export symbols

* dbus/versioninfo.rc.in: (new file) copied and modified from libgpg-error
 * configure.in: enable libtool's W32 support, extract version information
    for use in versioninfo.rc.in, define DBUS_WIN, define DBUS_UNIX only on
    unix (adapted from libgpg-error)
 * dbus/Makefile.am: switch sources depending on platform,
    compile versioninfo.rc, add dbus-1.def (not used since buildsystem creates
    its own .def file apparently)
(cherry picked from commit cfa717ddb7b9258a862d87cd5b3bdbe582ce106c)

14 years agofixed DBUS_VA_COPY for msvc
Ralf Habacker [Mon, 30 Nov 2009 15:01:19 +0000 (16:01 +0100)]
fixed DBUS_VA_COPY for msvc

14 years agouse dbus provided wait function
Ralf Habacker [Mon, 30 Nov 2009 14:59:40 +0000 (15:59 +0100)]
use dbus provided wait function

14 years agokeep in sync with source
Ralf Habacker [Mon, 30 Nov 2009 13:08:30 +0000 (14:08 +0100)]
keep in sync with source

14 years ago_dbus_get_install_root assumes that dbus-daemon is in a bin/ subdirectory. That's...
Frank Osterfeld [Wed, 29 Apr 2009 16:03:32 +0000 (18:03 +0200)]
_dbus_get_install_root assumes that dbus-daemon is in a bin/ subdirectory. That's not a common directory structure on windows, so weaken the assumption: $somepath/bin/dbus-daemon.exe -> $somepath $somepath/dbus-daemon.exe, where somepath doesn't end in /bin/: -> $somepath i.e., use dbus-daemon.exe's directory as root if that directory is not a "bin" directory (cherry picked from commit 2d2055b2fa7f92c144e9a182a9a091ebe5215d7d)

14 years agodefine _DEBUG for debug builds (cherry picked from commit 3e261c022623306d4dba0cb11fa...
Frank Osterfeld [Thu, 30 Apr 2009 09:02:07 +0000 (10:02 +0100)]
define _DEBUG for debug builds (cherry picked from commit 3e261c022623306d4dba0cb11fa342abff61aee9)

14 years agodo not run test binaries as unit tests if they aren't unit tests (cherry picked from...
Frank Osterfeld [Thu, 30 Apr 2009 08:16:42 +0000 (10:16 +0200)]
do not run test binaries as unit tests if they aren't unit tests (cherry picked from commit 5281f5b113bd97152d1c9eac050432bda3274748)

14 years agodbus/dbus-sysdeps-win.c: _dbus_windows_user_is_process_owner belongs to -util-win...
Tor Lillqvist [Wed, 22 Apr 2009 14:49:00 +0000 (16:49 +0200)]
dbus/dbus-sysdeps-win.c: _dbus_windows_user_is_process_owner belongs to -util-win.c (cherry picked from commit 952caf475334b7c38084d4a992abef3f4e0d4cfb)

14 years agodbus/dbus-sysdeps-util-win.c: use GetFileAttributes instead of CreateFile in _dbus_fi...
Tor Lillqvist [Wed, 22 Apr 2009 14:35:43 +0000 (16:35 +0200)]
dbus/dbus-sysdeps-util-win.c: use GetFileAttributes instead of CreateFile in _dbus_file_exists (cherry picked from commit 3ba582b91361785c3eb0121e8b9e85d046eea75f)

14 years agodbus/dbus-sysdeps-win.c: tighter "scoping" for alternate _dbus_poll implementations...
Tor Lillqvist [Wed, 22 Apr 2009 13:28:58 +0000 (15:28 +0200)]
dbus/dbus-sysdeps-win.c: tighter "scoping" for alternate _dbus_poll implementations (cherry picked from commit 6828a25073c16fb5af55c4aaf16a08eb90e4676d)

14 years agokeep def file in sync with source
Ralf Habacker [Mon, 30 Nov 2009 12:30:12 +0000 (13:30 +0100)]
keep def file in sync with source

14 years agoremoved duplicated implementation
Ralf Habacker [Mon, 30 Nov 2009 12:24:42 +0000 (13:24 +0100)]
removed duplicated implementation

14 years agodbus/dbus-sysdeps-util-win.c: remove unused str*_s definitions (cherry picked from...
Tor Lillqvist [Wed, 22 Apr 2009 14:16:53 +0000 (16:16 +0200)]
dbus/dbus-sysdeps-util-win.c: remove unused str*_s definitions (cherry picked from commit 373214317c33031547f3788cffed8a832142fc43)

14 years agodbus/dbus-sysdeps-*win.c: remove #undef open, which has no effect (cherry picked...
Tor Lillqvist [Wed, 22 Apr 2009 11:54:10 +0000 (13:54 +0200)]
dbus/dbus-sysdeps-*win.c: remove #undef open, which has no effect (cherry picked from commit 737e3782cd16424a6f1b941b64867178bb5634be)

14 years agodbus/dbus-sysdeps-win.h: move declarations into .c (used nowhere else) (cherry picked...
Tor Lillqvist [Wed, 22 Apr 2009 11:37:38 +0000 (13:37 +0200)]
dbus/dbus-sysdeps-win.h: move declarations into .c (used nowhere else) (cherry picked from commit 0ea30b511e5b099c43bfdf2cbff0f3935917e057)

14 years agodbus/dbus-sysdeps-win.c: add _dbus_win_error_string, and use after MoveFileEx instead...
Tor Lillqvist [Wed, 22 Apr 2009 11:35:11 +0000 (13:35 +0200)]
dbus/dbus-sysdeps-win.c: add _dbus_win_error_string, and use after MoveFileEx instead of _dbus_error_from_errno (cherry picked from commit 1d0b2dacf52faffbeba09af2b309683ccc71547a)

14 years agodbus/dbus-sysdeps-win.c: use MoveFileEx, not unlink+rename, in _dbus_string_save_to_f...
Tor Lillqvist [Wed, 22 Apr 2009 11:32:29 +0000 (13:32 +0200)]
dbus/dbus-sysdeps-win.c: use MoveFileEx, not unlink+rename, in _dbus_string_save_to_file (cherry picked from commit c31bb3c262db1e6e42ec1bc9a6e8063c625a7cb2)

14 years agodbus/dbus-sysdeps-win.c: use GetTempPath, not getenv, in _dbus_get_tmpdir (cherry...
Tor Lillqvist [Wed, 22 Apr 2009 11:27:44 +0000 (13:27 +0200)]
dbus/dbus-sysdeps-win.c: use GetTempPath, not getenv, in _dbus_get_tmpdir (cherry picked from commit c2366c5410149e896cb56c3d17bb995308e18292)

14 years agodbus/dbus-sysdeps-win.c: _dbus_getpid() returns dbus_pid_t (cherry picked from commit...
Tor Lillqvist [Wed, 22 Apr 2009 10:26:04 +0000 (12:26 +0200)]
dbus/dbus-sysdeps-win.c: _dbus_getpid() returns dbus_pid_t (cherry picked from commit 40a01bf6d2c6d216093d309ca4c48602a585960b)

14 years agodbus/dbus-sysdeps-win.c: set an error when _close fails in _dbus_pipe_close (cherry...
Tor Lillqvist [Wed, 22 Apr 2009 10:24:40 +0000 (12:24 +0200)]
dbus/dbus-sysdeps-win.c: set an error when _close fails in _dbus_pipe_close (cherry picked from commit 6671b4a20da468bad6842815a1161a98251b66fc)

14 years agodbus/dbus-sysdeps-win.c: Use CryptoApi to get random numbers (cherry picked from...
Tor Lillqvist [Wed, 22 Apr 2009 10:22:33 +0000 (12:22 +0200)]
dbus/dbus-sysdeps-win.c: Use CryptoApi to get random numbers (cherry picked from commit 5f7ae46398818200b3fdcdfe80b78bee31a3e89b)

14 years agodbus/dbus-sysdeps-*win.c: remove DBusFile abstraction (cherry picked from commit...
Tor Lillqvist [Wed, 22 Apr 2009 10:17:35 +0000 (12:17 +0200)]
dbus/dbus-sysdeps-*win.c: remove DBusFile abstraction (cherry picked from commit 2895660b0e683d71dd51911819c0f31aff8517c3)

14 years agodbus/dbus-sysdeps-win.c: #define socklen_t -> typedef (cherry picked from commit...
Tor Lillqvist [Wed, 22 Apr 2009 09:54:24 +0000 (11:54 +0200)]
dbus/dbus-sysdeps-win.c: #define socklen_t -> typedef (cherry picked from commit eb104f4573fcbcbf3a87d673a023b5db4a249867)

14 years agodbus/dbus-sysdeps-win.h: add _dbus_win_get_dll-module (cherry picked from commit...
Tor Lillqvist [Wed, 22 Apr 2009 08:48:59 +0000 (10:48 +0200)]
dbus/dbus-sysdeps-win.h: add _dbus_win_get_dll-module (cherry picked from commit da5e8e14029cb64a65fe482e232be1d786a8ee19)

14 years agodbus/dbus-spawn-win.c: implement missing _dbus_babysitter_get_child_exit_status ...
Tor Lillqvist [Wed, 22 Apr 2009 08:11:27 +0000 (10:11 +0200)]
dbus/dbus-spawn-win.c: implement missing _dbus_babysitter_get_child_exit_status (cherry picked from commit 7a9863b9847380dbb8400f895934d7f282ebdbf2)

14 years agodbus/dbus-internals.c: "#define inline" is only needed on MSVC, not mingw (cherry...
Tor Lillqvist [Wed, 22 Apr 2009 08:08:41 +0000 (10:08 +0200)]
dbus/dbus-internals.c: "#define inline" is only needed on MSVC, not mingw (cherry picked from commit 314e91e3ee2566477918a51dbddd9eb141b33a23)

14 years ago_dbus_verbose_real: (optionally) use OutputDebugString() (cherry picked from commit...
Ralf Habacker [Tue, 6 Jan 2009 13:01:20 +0000 (13:01 +0000)]
_dbus_verbose_real: (optionally) use OutputDebugString() (cherry picked from commit fd6d354c47b4b8dc24ce32e31171568a8704e7d1)

14 years agoadded DBUS_USE_OUTPUT_DEBUG_STRING option
Ralf Habacker [Mon, 30 Nov 2009 12:10:38 +0000 (13:10 +0100)]
added DBUS_USE_OUTPUT_DEBUG_STRING option

14 years agodbus/dbus-internals.h: 2x const char foo[] -> const char foo * (cherry picked from...
Tor Lillqvist [Wed, 22 Apr 2009 08:07:47 +0000 (10:07 +0200)]
dbus/dbus-internals.h: 2x const char foo[] -> const char foo * (cherry picked from commit 62eaf8c91160abdeab6a46bb7bff737e13a390cf)

14 years agodbus/dbus-transport.c: _dbus_credentials_get_windows_sid might return NULL (cherry...
Tor Lillqvist [Wed, 22 Apr 2009 07:42:01 +0000 (09:42 +0200)]
dbus/dbus-transport.c: _dbus_credentials_get_windows_sid might return NULL (cherry picked from commit 8d8d5fa1babc8f51f1d1bb95b8116850978c60d9)

14 years agodbus/dbus-transport.c: fix {our,auth}_identity mismatch (cherry picked from commit...
Tor Lillqvist [Wed, 22 Apr 2009 07:40:35 +0000 (09:40 +0200)]
dbus/dbus-transport.c: fix {our,auth}_identity mismatch (cherry picked from commit e15f1cde3b5893357f640e360f64c0a1ae37f93b)

14 years agocompleted notes
Ralf Habacker [Mon, 30 Nov 2009 11:14:24 +0000 (12:14 +0100)]
completed notes

14 years agotools/dbus-launch-win.c: TODO++ (cherry picked from commit 0f5dbec6407975d6a93fbb2cbc...
Tor Lillqvist [Wed, 22 Apr 2009 07:30:23 +0000 (09:30 +0200)]
tools/dbus-launch-win.c: TODO++ (cherry picked from commit 0f5dbec6407975d6a93fbb2cbcd58ab192961cf8)

14 years agodbus/dbus-connection.c: use dbus_message_type_to_string instead of printing the naked...
Tor Lillqvist [Wed, 22 Apr 2009 07:20:04 +0000 (09:20 +0200)]
dbus/dbus-connection.c: use dbus_message_type_to_string instead of printing the naked message type (cherry picked from commit 33d858e83e3cb1f55ed257ffef930b8f49c3ffc7)

14 years agoFix broken Windows implementation of _dbus_printf_string_upper_bound().
Ole André Vadla Ravnås [Sun, 29 Mar 2009 00:44:44 +0000 (01:44 +0100)]
Fix broken Windows implementation of _dbus_printf_string_upper_bound().

Pass the correct buffer size when trying again, and keep trying with
larger buffer sizes, doubling the size each time.
(cherry picked from commit 95832a94607eea609de994467b7d64e36af72e6b)

14 years agoUse CreateDirectory() instead of complicating things.
Ole André Vadla Ravnås [Sun, 29 Mar 2009 00:20:02 +0000 (01:20 +0100)]
Use CreateDirectory() instead of complicating things.

This is Windows sysdeps after all, and _dbus_mkdir() wasn't used anywhere else.
(cherry picked from commit 0bbe3787ce1e9e992f2bcbbdfcab1dcdb0b41f24)

14 years agoRemove a misleading comment.
Ole André Vadla Ravnås [Sun, 29 Mar 2009 00:06:54 +0000 (01:06 +0100)]
Remove a misleading comment.

errno.h is present and needed on Windows. (It's not present on Windows CE though.)
(cherry picked from commit cef676c0c7ea8ad352e1ecf1c3643edb1abd7ad6)

14 years agoAdd missing stdio.h include needed for _vsnprintf(). (cherry picked from commit dddd4...
Ole André Vadla Ravnås [Sat, 28 Mar 2009 23:49:34 +0000 (00:49 +0100)]
Add missing stdio.h include needed for _vsnprintf(). (cherry picked from commit dddd412402657fa5ac6de225e8d5a00fb290589c)

14 years agoOnly define _WIN32_WINNT if not already defined. (cherry picked from commit 98bb07181...
Ole André Vadla Ravnås [Sat, 28 Mar 2009 23:47:42 +0000 (00:47 +0100)]
Only define _WIN32_WINNT if not already defined. (cherry picked from commit 98bb071819ab9f886317627b6688876f40ed694e)

14 years agotools/dbus-launch-win.c: strrchr -> _mbsrchr (cherry picked from commit b8b9fc300242f...
Tor Lillqvist [Wed, 22 Apr 2009 07:29:45 +0000 (09:29 +0200)]
tools/dbus-launch-win.c: strrchr -> _mbsrchr (cherry picked from commit b8b9fc300242ff25071df4166173baae7d2b4f0f)

14 years agoFix DBusMessage compiler warnings by adding some missing casts.
Ole André Vadla Ravnås [Sat, 28 Mar 2009 23:39:29 +0000 (00:39 +0100)]
Fix DBusMessage compiler warnings by adding some missing casts.

Basically the case where the address of a const pointer is passed as a non-const void pointer.
(cherry picked from commit dab3ec2abe7fbeea4dab873c8575a45b3b18882d)

14 years agodbus/dbus-sysdeps-util-win.c: DBUS_WIN is always defined here (cherry picked from...
Tor Lillqvist [Wed, 22 Apr 2009 07:53:11 +0000 (09:53 +0200)]
dbus/dbus-sysdeps-util-win.c: DBUS_WIN is always defined here (cherry picked from commit 1046f3b0eb57ef746aaff3a8da87020bb1b19a44)

14 years agotools/dbus-launch-win.c: fix typo (cherry picked from commit 81a7a0e9309e5929857fdf44...
Tor Lillqvist [Wed, 22 Apr 2009 07:31:26 +0000 (09:31 +0200)]
tools/dbus-launch-win.c: fix typo (cherry picked from commit 81a7a0e9309e5929857fdf44b8b51a4f8df097e6)

14 years agofix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60...
Frank Osterfeld [Sun, 3 May 2009 18:52:48 +0000 (19:52 +0100)]
fix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60a2dd5c6286571d1a475903519809)

14 years agodefine DBUS_BUILD_TESTS only if the option is enabled (cherry picked from commit...
Frank Osterfeld [Wed, 29 Apr 2009 11:22:44 +0000 (13:22 +0200)]
define DBUS_BUILD_TESTS only if the option is enabled (cherry picked from commit 46c3a4e653c17c1daaabf164663856f373330f29)

14 years agofix TEST_SOCKET_DIR on windows, do not override value from top-level in test/ (cherry...
Frank Osterfeld [Tue, 28 Apr 2009 17:12:09 +0000 (18:12 +0100)]
fix TEST_SOCKET_DIR on windows, do not override value from top-level in test/ (cherry picked from commit fde144333281348cda2d533331946996d7a09bff)

14 years agodisable launch-helper on windows for now until it builds (cherry picked from commit...
Frank Osterfeld [Tue, 28 Apr 2009 14:45:03 +0000 (15:45 +0100)]
disable launch-helper on windows for now until it builds (cherry picked from commit 48da3a0450172f711c25a459ce70c2521d22ee27)

14 years agobus-test-launch-helper is a unit test, test-service and test-shell-service are not...
Frank Osterfeld [Tue, 28 Apr 2009 14:14:13 +0000 (16:14 +0200)]
bus-test-launch-helper is a unit test, test-service and test-shell-service are not. Rename test-shell to shell-test to match autotools (cherry picked from commit b106387b73d6a300a013a15f6507244e82f007ed)

14 years agoUse correct sources to build test-shell-service, fixes a hang in bus-test (cherry...
Frank Osterfeld [Tue, 28 Apr 2009 13:46:19 +0000 (15:46 +0200)]
Use correct sources to build test-shell-service, fixes a hang in bus-test (cherry picked from commit 0afe04db5152b57582863bef83a55d78020a79c6)

14 years agoremoved obsolate files
Ralf Habacker [Mon, 30 Nov 2009 10:28:37 +0000 (11:28 +0100)]
removed obsolate files

14 years agocleanup: these files are already generated elsewhere (cherry picked from commit 21f66...
Frank Osterfeld [Tue, 28 Apr 2009 08:19:47 +0000 (10:19 +0200)]
cleanup: these files are already generated elsewhere (cherry picked from commit 21f66df24affd4a4d2fb3324fb51899c811530da)

14 years agorename test-spawn to spawn-test, to match autotools. test-sleep-forever is not a...
Frank Osterfeld [Tue, 28 Apr 2009 09:26:05 +0000 (11:26 +0200)]
rename test-spawn to spawn-test, to match autotools. test-sleep-forever is not a stand-alone test but called from other tests (cherry picked from commit 41bf95167cfc17b564594eab0a1901e46eaab5fe)

14 years agofix test and binary names (cherry picked from commit 18bcf5f2d474456c57cd94da234005a2...
Frank Osterfeld [Tue, 28 Apr 2009 09:08:31 +0000 (11:08 +0200)]
fix test and binary names (cherry picked from commit 18bcf5f2d474456c57cd94da234005a23e2589a7)