-Index: bus/dispatch.c
-===================================================================
-RCS file: /cvs/dbus/dbus/bus/dispatch.c,v
-retrieving revision 1.79
-diff -u -r1.79 dispatch.c
---- bus/dispatch.c 8 Mar 2007 08:30:17 -0000 1.79
-+++ bus/dispatch.c 8 Mar 2007 20:25:42 -0000
-@@ -428,6 +428,11 @@
- }
- }
-
-+#ifdef DBUS_WIN
-+#include <tools/dbus-print-message.h>
-+#include <tools/dbus-print-message.c>
-+#endif
-+
- static void
- spin_connection_until_authenticated (BusContext *context,
- DBusConnection *connection)
-@@ -439,6 +444,19 @@
- bus_test_run_bus_loop (context, FALSE);
- bus_test_run_clients_loop (FALSE);
- }
-+#ifdef DBUS_WIN
-+ if ( dbus_connection_get_dispatch_status(connection) != DBUS_DISPATCH_COMPLETE)
-+ {
-+ DBusMessage *message;
-+ message = dbus_connection_pop_message (connection);
-+ printf ("spin_connection_until_authenticated failed,\n");
-+ printf ("because of a non dispatched message:\n");
-+ print_message(message, FALSE);
-+ printf ("\n");
-+ _dbus_assert_not_reached ("spin_connection_until_authenticated failed\n ");
-+ }
-+#endif
-+
- _dbus_verbose (" ... done spinning to auth connection %p\n", connection);
- }
-
-@@ -2699,9 +2717,12 @@
- }
- else
- {
-+/* no DBUS_ERROR_NO_MEMORY on windows (no have_fork_errnum)*/
-+#ifndef DBUS_WIN_FIXME
- warn_unexpected (connection, message, "not this error");
-
- goto out;
-+#endif
- }
- }
- else
-@@ -4064,29 +4085,36 @@
- _dbus_assert_not_reached ("initial connection setup failed");
- }
-
-+#ifdef DBUS_WIN_FIXME
-+ _dbus_warn("TODO: dispatch.c create_and_hello test\n");
-+#else
- check1_try_iterations (context, "create_and_hello",
- check_hello_connection);
-+#endif
-
- check2_try_iterations (context, foo, "nonexistent_service_no_auto_start",
- check_nonexistent_service_no_auto_start);
-
--#ifdef DBUS_WIN_FIXME
-+#ifdef DBUS_WIN_FIXME
- _dbus_warn("TODO: dispatch.c segfault_service_no_auto_start test\n");
- #else
- check2_try_iterations (context, foo, "segfault_service_no_auto_start",
- check_segfault_service_no_auto_start);
- #endif
-
-+#ifdef DBUS_WIN_FIXME
-+ _dbus_warn("TODO: dispatch.c existent_service_no_auto_start\n");
-+#else
- check2_try_iterations (context, foo, "existent_service_no_auto_start",
- check_existent_service_no_auto_start);
-
- check2_try_iterations (context, foo, "nonexistent_service_auto_start",
- check_nonexistent_service_auto_start);
--
-+#endif
-
- #ifdef DBUS_WIN_FIXME
- _dbus_warn("TODO: dispatch.c segfault_service_auto_start test\n");
--#else
-+#else
- check2_try_iterations (context, foo, "segfault_service_auto_start",
- check_segfault_service_auto_start);
- #endif
-@@ -4106,8 +4134,12 @@
- if (!check_existent_service_auto_start (context, foo))
- _dbus_assert_not_reached ("existent service auto start failed");
-
-+#ifdef DBUS_WIN_FIXME
-+ _dbus_warn("TODO: dispatch.c check_shell_service_success_auto_start test\n");
-+#else
- if (!check_shell_service_success_auto_start (context, foo))
- _dbus_assert_not_reached ("shell success service auto start failed");
-+#endif
-
- _dbus_verbose ("Disconnecting foo, bar, and baz\n");
-
-@@ -4158,8 +4190,12 @@
- _dbus_assert_not_reached ("initial connection setup failed");
- }
-
-+#ifdef DBUS_WIN_FIXME
-+ _dbus_warn("TODO: dispatch.c: create_and_hello_sha1 test\n");
-+#else
- check1_try_iterations (context, "create_and_hello_sha1",
- check_hello_connection);
-+#endif
-
- kill_client_connection_unchecked (foo);
-
Index: dbus/dbus-bus.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-bus.c,v
}
static DBusConnection *
-Index: dbus/dbus-mainloop.c
-===================================================================
-RCS file: /cvs/dbus/dbus/dbus/dbus-mainloop.c,v
-retrieving revision 1.19
-diff -u -r1.19 dbus-mainloop.c
---- dbus/dbus-mainloop.c 20 Oct 2006 03:04:59 -0000 1.19
-+++ dbus/dbus-mainloop.c 8 Mar 2007 20:25:40 -0000
-@@ -883,6 +883,8 @@
-
- loop->depth -= 1;
-
-+ _dbus_daemon_release ();
-+
- _dbus_verbose ("Quit main loop, depth %d -> %d\n",
- loop->depth + 1, loop->depth);
- }
-Index: dbus/dbus-sysdeps-util.c
-===================================================================
-RCS file: /cvs/dbus/dbus/dbus/dbus-sysdeps-util.c,v
-retrieving revision 1.10
-diff -u -r1.10 dbus-sysdeps-util.c
---- dbus/dbus-sysdeps-util.c 13 Dec 2006 01:18:07 -0000 1.10
-+++ dbus/dbus-sysdeps-util.c 8 Mar 2007 20:25:41 -0000
-@@ -141,6 +141,7 @@
- exit (1);
- }
-
-+#ifndef DBUS_WIN_FIXME
- _dbus_string_init_const (&str, "0xff");
- if (!_dbus_string_parse_double (&str,
- 0, &val, &pos))
-@@ -158,6 +159,8 @@
- _dbus_warn ("_dbus_string_parse_double of \"0xff\" returned wrong position %d", pos);
- exit (1);
- }
-+#endif
-+
- #ifdef DBUS_WIN
- check_path_absolute ("c:/", TRUE);
- check_path_absolute ("c:/foo", TRUE);
-Index: dbus/dbus-sysdeps.h
-===================================================================
-RCS file: /cvs/dbus/dbus/dbus/dbus-sysdeps.h,v
-retrieving revision 1.69
-diff -u -r1.69 dbus-sysdeps.h
---- dbus/dbus-sysdeps.h 8 Mar 2007 20:25:15 -0000 1.69
-+++ dbus/dbus-sysdeps.h 8 Mar 2007 20:25:41 -0000
-@@ -119,6 +119,7 @@
- *
- */
-
-+void _dbus_daemon_release (void);
- dbus_bool_t _dbus_open_tcp_socket (int *fd,
- DBusError *error);
- dbus_bool_t _dbus_close_socket (int fd,
-Index: dbus/dbus-threads.c
-===================================================================
-RCS file: /cvs/dbus/dbus/dbus/dbus-threads.c,v
-retrieving revision 1.36
-diff -u -r1.36 dbus-threads.c
---- dbus/dbus-threads.c 28 Oct 2006 01:41:37 -0000 1.36
-+++ dbus/dbus-threads.c 8 Mar 2007 20:25:41 -0000
-@@ -810,7 +810,11 @@
- dbus_bool_t
- _dbus_threads_init_debug (void)
- {
-+#if defined(DBUS_WIN)
-+ return _dbus_threads_init_platform_specific();
-+#else
- return dbus_threads_init (&fake_functions);
-+#endif
- }
-
- #endif /* DBUS_BUILD_TESTS */
-Index: dbus/dbus-watch.c
-===================================================================
-RCS file: /cvs/dbus/dbus/dbus/dbus-watch.c,v
-retrieving revision 1.25
-diff -u -r1.25 dbus-watch.c
---- dbus/dbus-watch.c 21 Jun 2007 21:28:59 -0000 1.25
-+++ dbus/dbus-watch.c 22 Jun 2007 09:55:03 -0000
-@@ -513,11 +513,7 @@
- * which it has, and the transport should provide the
- * appropriate watch type)
- */
--#ifdef DBUS_UNIX
- return watch->fd;
--#else
-- return -1;
--#endif
- }
-
- /**