2003-02-18 Havoc Pennington <hp@pobox.com>
[platform/upstream/dbus.git] / ChangeLog
index bce8784..b7a0fc8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,317 @@
+2003-02-18  Havoc Pennington  <hp@pobox.com>
+
+       * dbus/dbus-string.c (_dbus_string_zero): new function
+
+       * dbus/dbus-md5.c: include MD5 implementation by L. Peter Deutsch,
+       wrap it in some dbus-friendly API
+
+       * dbus/dbus-types.h: add 16-bit types
+
+2003-02-18  Joe Shaw  <joe@assbarn.com>
+
+       * dbus/dbus-auth.c (handle_server_data_stupid_test_mech): Just get
+       credentials from our currently running process.
+       (get_word): Fix a buglet where we were copying the entire length
+       instead of relative to our position.
+
+       * dbus/dbus-hash.c (_dbus_hash_test): Don't try to allocate the
+       keys on the stack... it's 640k of data.
+
+       * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): Always
+       read the credentials byte off the socket, even if we don't have
+       SO_PEERCRED.
+       (_dbus_poll): Implement poll() using select() for systems which
+       don't have it.
+
+       * glib/test-dbus-glib.c (main): Print out an error if no
+       parameters are given.
+
+       * test/data/auth/fallback.auth-script: Added.  Tests that a client
+       can fallback to a secondary auth mechanism if the first fails.
+
+2003-02-18  Havoc Pennington  <hp@pobox.com>
+
+       * AUTHORS: add Alex
+
+2003-02-17  Havoc Pennington  <hp@pobox.com>
+
+       * doc/dbus-specification.sgml: lots of cosmetic
+       cleanups/rearrangement, add assorted FIXME, change DBUS_ADDRESS
+       env variable to DBUS_BUS_ADDRESS, s/client/application/,
+       s/server/bus/ (except in authentication section). Add a section
+       "Message Bus Message Routing"
+
+2003-02-17  Anders Carlsson  <andersca@codefactory.se.>
+
+       Release 0.4
+       
+       * NEWS: Update
+
+2003-02-17  Anders Carlsson  <andersca@codefactory.se>
+
+       * doc/dbus-specification.sgml:
+       Specification updates.
+       
+2003-02-17  Anders Carlsson  <andersca@codefactory.se>
+
+       * bus/activation.c: (bus_activation_init), (child_setup),
+       (bus_activation_activate_service):
+       * bus/activation.h:
+       * bus/main.c: (main):
+       Set DBUS_ADDRESS environment variable.
+       
+       * dbus/dbus-errors.c: (dbus_set_error):
+       Don't use va_copy since that's a C99 feature.
+       
+       * dbus/dbus-sysdeps.c: (_dbus_setenv), (do_exec),
+       (_dbus_spawn_async):
+       * dbus/dbus-sysdeps.h:
+       Add child_setup_func to _dbus_spawn_async.
+       
+       * doc/dbus-specification.sgml:
+       Update specification.
+       
+       * test/spawn-test.c: (setup_func), (main):
+       Fix test.
+       
+2003-02-17  Alexander Larsson  <alexl@redhat.com>
+
+       * dbus/dbus-connection.c (_dbus_connection_handler_destroyed_locked):
+       Added todo.
+
+2003-02-17  Anders Carlsson  <andersca@codefactory.se>
+
+       * doc/.cvsignore:
+       * doc/Makefile.am:
+       * doc/dbus-test-plan.sgml:
+       Add test plan document.
+       
+       * test/Makefile.am:
+       Fix distcheck.
+       
+2003-02-17  Anders Carlsson  <andersca@codefactory.se>
+
+       * dbus/dbus-message.c: (decode_header_data),
+       (_dbus_message_loader_return_buffer):
+       Set the header padding amount when loading a message.
+
+2003-02-16  Anders Carlsson  <andersca@codefactory.se>
+
+       * bus/dispatch.c: (send_one_message):
+       Only send broadcast messages to registered connections.
+       
+       * dbus/dbus-message.c: (dbus_message_name_is):
+       * dbus/dbus-message.h:
+       New convenience function.
+       
+       * dbus/dbus-transport-debug.c: (do_reading):
+       Only dispatch one message per run.
+
+       * test/Makefile.am:
+       * test/bus-test.c: (new_connection_callback), (die),
+       (test_hello_client1_handler), (test_hello_client2_handler),
+       (test_hello_replies), (main):
+
+       * test/bus-test-loop.[ch]:
+       Add these.
+       
+2003-02-16  Havoc Pennington  <hp@pobox.com>
+
+       * dbus/dbus-connection.c (dbus_connection_dispatch_message): fix
+       backward conditional
+
+2003-02-16  Alexander Larsson  <alexl@redhat.com>
+
+       * dbus/dbus-connection.c:
+       Implement sent_message_with_reply. (with_reply_and block is still
+       busted).
+       Made dispatch_message not lose message if OOM.
+       
+       * dbus/dbus-errors.h:
+       Add NoReply error (for reply timeouts).
+
+2003-02-16  Alexander Larsson  <alexl@redhat.com>
+
+       * dbus/dbus-hash.c (_dbus_hash_table_unref):
+       Actually free keys and values when destroying hashtable.
+
+2003-02-16  Anders Carlsson  <andersca@codefactory.se>
+
+       * dbus/dbus-auth.c: (client_try_next_mechanism):
+       Plug a leak.
+       
+       * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
+       Return TRUE if there's no thread implementation around.
+       
+       * glib/dbus-gmain.c: (free_source),
+       (dbus_connection_hookup_with_g_main):
+       Make sure to remove the GSource when the connection is finalized.
+       
+2003-02-16  Anders Carlsson  <andersca@codefactory.se>
+
+       * bus/dispatch.c: (bus_dispatch_message_handler):
+       * dbus/dbus-errors.h:
+       Return an error if someone tries to send a message to a service
+       that doesn't exist.
+       
+2003-02-16  Anders Carlsson  <andersca@codefactory.se>
+
+       * bus/activation.c: (load_directory), (bus_activation_init),
+       (bus_activation_activate_service):
+       * bus/activation.h:
+       * bus/driver.c: 
+       (bus_driver_handle_activate_service), (bus_driver_handle_message):
+       More work on the activation handling.
+       
+       * dbus/dbus-errors.h:
+       Add some error messages
+       
+       * dbus/dbus-message.c: (dbus_message_new_error_reply):
+       * dbus/dbus-message.h:
+       New function that creates an error message.
+       
+       * dbus/dbus-protocol.h:
+       Add ACTIVATE_SERVER message.
+       
+       * dbus/dbus-server-unix.c: (unix_handle_watch),
+       (_dbus_server_new_for_domain_socket):
+       Call _dbus_fd_set_close_on_exec.
+       
+       * dbus/dbus-sysdeps.c: (make_pipe), (do_exec),
+       (_dbus_spawn_async), (_dbus_disable_sigpipe),
+       (_dbus_fd_set_close_on_exec):
+       * dbus/dbus-sysdeps.h:
+       Add _dbus_fd_set_close_on exec function. Also add function that checks
+       that all open fds are set to close-on-exec and warns otherwise.
+       
+       * dbus/dbus-transport-unix.c:
+       (_dbus_transport_new_for_domain_socket):
+       Call _dbus_fd_set_close_on_exec.
+
+2003-02-16  Havoc Pennington  <hp@pobox.com>
+
+       * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
+       allow people to avoid setting SIGPIPE to SIG_IGN
+       (_dbus_connection_new_for_transport): disable SIGPIPE unless 
+       we've been asked not to
+
+2003-02-15  Anders Carlsson  <andersca@codefactory.se>
+
+       * dbus/dbus-list.c: (_dbus_list_append_link),
+       (_dbus_list_prepend_link):
+       * dbus/dbus-memory.c: (dbus_malloc), (dbus_malloc0),
+       (dbus_realloc):
+       Warning fixes.
+
+2003-02-15  Anders Carlsson  <andersca@codefactory.se>
+
+       * bus/Makefile.am:
+       * bus/activation.c: (bus_activation_entry_free),
+       (add_desktop_file_entry), (load_directory), (bus_activation_init):
+       * bus/activation.h:
+       * bus/main.c: (main):
+       Add simple activation support, doesn't work yet though.
+
+2003-02-15   Zack Rusin  <zack@kde.org>
+
+       * qt/dbus-qthread.cpp:  small casting fix
+
+2003-02-15  Anders Carlsson  <andersca@codefactory.se>
+
+       * dbus/dbus-errors.c: (dbus_set_error):
+       * dbus/dbus-errors.h:
+       Add a few errors and make dbus_set_error void.
+       
+       * dbus/dbus-sysdeps.c: 
+       (_dbus_errno_to_string), (close_and_invalidate), (make_pipe),
+       (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async):
+       * dbus/dbus-sysdeps.h:
+       Add _dbus_spawn_async.
+       
+       * test/spawn-test.c: (main):
+       Test for _dbus_spawn_async.
+       
+2003-02-15  Anders Carlsson  <andersca@codefactory.se>
+
+       * dbus/dbus-internals.h:
+       Fix build without tests.
+       
+       * dbus/dbus-list.c: (alloc_link):
+       Fix a segfault when a malloc fails.
+       
+       * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc),
+       (dbus_malloc0), (dbus_realloc):
+       Add support for malloc debugging.
+
+2003-02-15  Alexander Larsson  <alexl@redhat.com>
+
+       * dbus/dbus-threads.c:
+       * dbus/dbus-threads.h:
+       Add condvars. Remove static mutext from API.
+       Implement static mutexes by initializing them from threads_init.
+       
+       * glib/dbus-gthread.c:
+       * qt/dbus-qthread.cpp:
+       Update with the thread api changes.
+
+               
+       * dbus/dbus-list.c:
+       * dbus/dbus-list.h:
+       Turn StaticMutex into normal mutex + init function.
+       Export new functions _dbus_list_alloc_link, _dbus_list_free_link,
+       _dbus_list_append_link, _dbus_list_prepend_link
+
+
+       * dbus/dbus-sysdeps.c: 
+       * dbus/dbus-sysdeps.h:
+       New type dbus_atomic_t, and new functions _dbus_atomic_inc,
+       _dbus_atomic_dec. Only slow fallback implementation at the moment.
+       
+       * dbus/dbus-protocol.h:
+       Add DBUS_MESSAGE_LOCAL_DISCONNECT define
+       
+       * dbus/dbus-message.c:
+       Make ref/unref atomic.
+       Fix some docs.
+       
+       * dbus/dbus-connection-internal.h:
+       * dbus/dbus-connection.c:
+       * dbus/dbus-connection.h:
+       Make threadsafe.
+       Change _peek to _borrow,_return & _steal_borrowed.
+       Change disconnect callback to event.
+       Make dbus_connection_dispatch_messages reentrant.
+       
+       * dbus/dbus-transport.c:
+       Don't ref the connection on calls to the transport
+       implementation.
+       
+       * dbus/dbus-message-handler.c:
+       Make threadsafe.
+       
+       * glib/dbus-gmain.c:
+       Don't use peek_message anymore
+       
+       * test/Makefile.am:
+       * test/debug-thread.c:
+       * test/debug-thread.h:
+       Simple thread implementation that asserts() on deadlocks in
+       single-threaded code.
+       
+       * test/bus-test.c:
+       (main) Call debug_threads_init.
+
+       * test/watch.c:
+       Use disconnect message instead of disconnect callback.
+
+       * bus/connection.c:
+       * bus/connection.h:
+       Don't call dbus_connection_set_disconnect_function. Instead export
+       bus_connection_disconnect.
+       
+       * bus/dispatch.c:
+       Call bus_connection_disconnect when we get a disconnected message.
+       
 2003-02-15  Havoc Pennington  <hp@pobox.com>
 
        * dbus/dbus-message.c (dbus_message_new): fool around with the