Commit graph

1571 commits

Author SHA1 Message Date
Ralf Habacker
17b84104f2 * cmake/: don't install test applications and service files, moved CMAKE_DEBUG_POSTFIX to top level CMakeLists.txt 2007-04-28 19:37:25 +00:00
Havoc Pennington
c85da03580 2007-04-27 Havoc Pennington <hp@redhat.com>
* dbus/dbus-sysdeps-unix.c (_dbus_open_socket): fix #10781 from
	Tobias Nygren, checking pointer to fd vs. 0 rather than checking
	the fd itself
2007-04-27 17:58:46 +00:00
Ralf Habacker
4bd8418548 * cmake: added debug postfixes to debug exe's for easier debugging.
* dbus\dbus-sysdeps-win.c (_dbus_win_set_error_from_win_error): print error code in case no string message is available.
2007-04-26 09:30:38 +00:00
Simon McVittie
c4a5da3e59 dbus/dbus-message-util.c, dbus/dbus-message.c, dbus/dbus-message.h:
Add API to convert a DBusMessage to/from a byte array.
Patch from Dafydd Harries <dafydd.harries@collabora.co.uk>, approved by
Havoc Pennington.
2007-04-06 12:13:13 +00:00
Ralf Habacker
54eabbe892 * dbus/dbus-address.c (dbus_parse_address): Do not accept zero-length address.
* dbus/dbus-address.c (_dbus_address_test): Add test for zero-length address.
2007-04-03 18:53:25 +00:00
Ralf Habacker
3718730332 * cmake/dbus/CMakeLists.txt: debug postfix also for mingw. 2007-03-25 19:28:05 +00:00
Ralf Habacker
ea58ec1cf9 * cmake/modules/FindExpat.cmake: fix package detection on win32.
* README.win: update install instructions.
2007-03-16 22:34:40 +00:00
Ralf Habacker
6e07b30fab * dbus/dbus-sysdeps.h (_dbus_split_paths_and_append): new prototyp (_DBUS_PATH_SEPARATOR): new macro.
* dbus/dbus-sysdeps.c (_dbus_split_paths_and_append): merged from dbus/dbus-sysdeps-unix.c and dbus/dbus-sysdeps-win.c.
2007-03-16 21:56:33 +00:00
Ralf Habacker
cd57ebe33b * bus/config-parser.c, bus/policy.c, bus/policy.h, bus/dbus-daemon.1.in,bus/session.conf.in: added eavesdrop support for replies - patch by olli.salli at collabora.co.uk approved by Havoc Pennington. 2007-03-15 13:27:01 +00:00
Ralf Habacker
280e313ef7 * dbus\dbus-sysdeps-win-thread.c: renamed to dbus-sysdeps-thread-win.c, it is a platform depending file similar to dbus-sysdeps-pthread.c. 2007-03-15 12:13:39 +00:00
Ralf Habacker
a2d6c5ebc6 * cmake\doc\CMakeLists.txt: added prelimary xml doc support, needs cmake find script. 2007-03-15 12:10:07 +00:00
Ralf Habacker
d6387f4aae * cmake/config.h.cmake: WINCE fixes, defined DBUS_UNIX. 2007-03-14 18:01:01 +00:00
Ralf Habacker
c01a63299e * cmake: added doxygen support 2007-03-14 00:16:05 +00:00
Ralf Habacker
d372907895 * dbus/dbus-sysdeps-util-win.c (dbus_become_daemon): win32 compile fix. 2007-03-13 21:52:21 +00:00
Ralf Habacker
1470cae3fc * dbus-win.patch: removed obsolate patches. 2007-03-13 17:40:50 +00:00
Ralf Habacker
fabc977527 * dbus/dbus-sysdeps-win.c: fixed broken DBusPipe on win32.
* dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-unix.c: moved platform independent DBusPipe function to dbus-sysdeps.c.
2007-03-13 17:14:35 +00:00
Ralf Habacker
288d47c783 * dbus/dbus-sysdeps-win.c: added zero byte sending and receiving after connection start up 2007-03-13 16:56:32 +00:00
Havoc Pennington
9362aac398 2007-03-11 Havoc Pennington <hp@redhat.com>
* tools/dbus-launch.c (do_close_stderr): fix C89 problem and
	formatting problem

	* Mostly fix the DBusPipe mess.
	- put line break after function return types
	- put space before parens
	- do not pass structs around by value
	- don't use dbus_strerror after calling supposedly cross-platform
	api
	- don't name pipe variables "fd"
	- abstract special fd numbers like -1 and 1
2007-03-12 22:52:40 +00:00
Havoc Pennington
cc0aea750c add COPYING to docs copied to web site 2007-03-12 21:35:50 +00:00
Ralf Habacker
c99f87dc5f * dbus/dbus-sysdeps-win.h, dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-util-win.c: renamed functions _dbus_xxx_file() to _dbus_file_xxx() to reflect struct name DBusFile. 2007-03-12 15:59:44 +00:00
Ralf Habacker
1f8d30bea1 * dbus/dbus-sysdeps-util-unix.c (_dbus_become_daemon): fix _dbus_pid_fd check. 2007-03-12 07:51:02 +00:00
Ralf Habacker
af4e4dc276 * tools/dbus-print-message.c (print_message): added printing of the reply serial to method returns and errors, so you can actually figure out the message/reply pairs - patch by olli.salli at collabora.co.uk. 2007-03-10 19:52:30 +00:00
Ralf Habacker
d2a4955338 * dbus-win.patch: removed committed patch. 2007-03-10 09:13:57 +00:00
Ralf Habacker
47e318a6e1 * bus/bus.c, bus/bus.h, bus/main.c, bus/test.c, dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-util-unix.c, dbus/dbus-sysdeps-util-win.c, bus/dbus-sysdeps-win.c,dbus/dbus-sysdeps.h: renamed _dbus_xxx_pipe to _dbus_pipe_xxx, completed _dbus_pipe support. 2007-03-10 09:10:36 +00:00
Ralf Habacker
f3fd4d60ad * dbus/dbus-sysdeps.h (_dbus_listen_tcp_socket): changed type or port to pointer, because the port is given back.
* dbus/dbus-server-socket.c (_dbus_server_new_for_tcp_socket): implemented returning tcp port. Skipping port parameter and non integer port values in config <listen> statement needs more effort.
* dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-win.c (_dbus_listen_tcp_socket): return the real used tcp port.
* bus/dbus-daemon.1.in: added <listen> tcp examples
2007-03-10 08:04:39 +00:00
Ralf Habacker
4350f5798e * cmake/config.h.cmake: win32 msvc bug fix 2007-03-09 20:54:07 +00:00
Ralf Habacker
6bccff6baa * cmake/config.h.cmake: fixed DBUS_WINxx defines, using _WINCE does not work. 2007-03-09 19:23:45 +00:00
Ralf Habacker
42cced540e * dbus-win.patch: removed _dbus_write_pipe() patch, it is now committed. 2007-03-08 20:33:31 +00:00
Ralf Habacker
ee51364bd7 * bus/bus.c, dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps.h: rename pipe related write() function calls to _dbus_write_pipe(). 2007-03-08 20:25:15 +00:00
Ralf Habacker
aa1c28195f * dbus-win.patch: added bus/config-loader-libexpat.c patch, uses DBUS_WIN for alls win32 related #ifdefs, some minor cleanups 2007-03-08 20:14:52 +00:00
Ralf Habacker
d38034c92c * cmake/CMakeList.txt,cmake/config.h.cmake: used DBUS_WIN for all win32 systems and DBUS_WINXX for specific subsystems. 2007-03-08 20:10:09 +00:00
Ralf Habacker
819da44f7c * dbus-win.patch: updated patch for bus/dispatch.c. 2007-03-08 14:42:16 +00:00
Ralf Habacker
55919d2d14 * dbus-win.patch: dbus-connection.c (dbus_connection_get_unix_user,
dbus_connection_get_unix_process_id): Let return them valid user id's,
otherwise bus-test fails. How to replace on win32 ?.
* dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): fix memory leak.
2007-03-08 13:40:16 +00:00
Ralf Habacker
2eca6a2241 * dbus/dbus-sysdeps-win.c (_dbus_win_set_error_from_win_error): use dbus friendly error name
((fill_win_user_info_homedir): print user name in error case too.
2007-03-08 13:04:18 +00:00
Ralf Habacker
5f5a1a3366 * cmake/ConfigureChecks.cmake: fixed socketpair check, added setrlimit check really 2007-03-08 08:36:47 +00:00
Ralf Habacker
e24922e4b5 * bus/dispatch.c: disabled segfault test on win32 for now 2007-03-08 08:30:17 +00:00
Ralf Habacker
892780c35e * configure.in, cmake/ConfigureChecks.cmake: added check for setrlimit.
* test/test-segfault.c: only include setrlimit stuff only when available.
2007-03-08 08:17:25 +00:00
Ralf Habacker
42fe5c9341 * test/test-segfault.c: unix compile fix.
* dbus-win.patch: removed obsolate patch.
2007-03-07 19:09:57 +00:00
Ralf Habacker
de9038c984 * bus/activation.c: win32 compile fix.
* test/test-segfault.c: win32 compile fix, rlimit isn't available on win32.
* dbus-win.patch: removed some more patches, they are applied or obsolate
2007-03-07 18:34:01 +00:00
Ralf Habacker
02b8ddd21d * bus-win.patch: removed obsolates patches. 2007-03-06 23:55:56 +00:00
Ralf Habacker
3e3a7c40ab * bus-win.patch: fixes unix listen problems, dbus-test now runs. 2007-03-06 21:45:27 +00:00
Ralf Habacker
4b876d8cb4 * cmake/dbus/CMakeLists.txt,cmake/bus/CMakeLists.txt,
cmake/CMakeLists.txt: win32 compile fix
2007-03-06 20:51:02 +00:00
Ralf Habacker
51e88a912a * dbus-win.patch, README.win: added available win32
patches from windbus project (http://sf.net/projects/windbus)
2007-03-04 22:27:33 +00:00
Ralf Habacker
a780c4e834 * bus/activation.c: (bus_activation_activate_service):
fixed call to _dbus_spawn_async_with_babysitter().
2007-03-04 22:09:50 +00:00
Ralf Habacker
329f99a197 * dbus/dbus-spawn.c,dbus/dbus-spawn.h (_dbus_spawn_async_with_babysitter):
added environment pointer as function parameter,used on win32.

* test/spawn-test.c: fixed call to above mentioned function.
2007-03-04 19:14:04 +00:00
Ralf Habacker
7f3af4748f * configure.in,test/test-sleep-forever.c,test/test-names.c:
added configure check for unistd.h.
2007-03-04 19:00:40 +00:00
Ralf Habacker
4d56811851 * test/Makefile.am: fixed test data copy problem in
out of source build, when sources came from svn or cvs.
2007-03-04 18:53:29 +00:00
Ralf Habacker
70bfc74e54 * dbus/*-win.*,bus/*-win.*: added win32 platform related
files. These files are only added to the cmake build system.
The missing dbus-win32.patch file will be added later.
2007-03-03 17:25:54 +00:00
Ralf Habacker
36ebfd411b * cmake: new directory, contains cmake build support.
See http://www.cmake.org for more informations.
Currently only unix will be buildable because some
win32 required files are still missing.
2007-03-03 14:32:17 +00:00
Thiago Macieira
4ceb86d29a * dbus/dbus-sysdeps-unix.c: capture the dbus-launch stderr
output and add it to the DBusError message we return.

	* tools/dbus-launch.1:
	* tools/dbus-launch.c: Add option --close-stderr to, well,
	close stderr before starting dbus-daemon.
2007-03-03 10:36:46 +00:00