2005-01-28 Joe Shaw <joeshaw@novell.com>
[platform/upstream/dbus.git] / ChangeLog
index fae9823..1601539 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,329 @@
+2005-01-28  Joe Shaw  <joeshaw@novell.com>
+
+       * configure.in: Bump version up to 0.30.
+
+       * HACKING: Add a release item to bump the version number up after 
+       a release.
+
+2005-01-28  Havoc Pennington  <hp@redhat.com>
+
+       * doc/dbus-specification.xml: update to describe 16-bit types and
+       dict entries
+
+       * dbus/dbus-marshal-basic.c (_dbus_unpack_uint16): fix broken
+       assertion
+
+       * dbus/dbus-protocol.h (DBUS_TYPE_DICT_ENTRY): add DICT_ENTRY as a
+       type
+
+       * dbus/dbus-marshal-recursive.c: implement
+
+2005-01-27  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-arch-deps.h.in: add 16/32-bit types
+
+       * configure.in: find the right type for 16 and 32 bit ints as well
+       as 64
+
+       * dbus/dbus-protocol.h (DBUS_TYPE_INT16, DBUS_TYPE_UINT16): add
+       the 16-bit types so people don't have to stuff them in 32-bit or
+       byte arrays.
+
+2005-01-27  Havoc Pennington  <hp@redhat.com>
+
+        * dbus/dbus-message.c: byteswap the message if you init an
+       iterator to read/write from it
+       
+       * dbus/dbus-marshal-byteswap.c: new file implementing 
+       _dbus_marshal_byteswap()
+
+       * dbus/dbus-marshal-basic.c: add _dbus_swap_array()
+
+2005-01-26  Havoc Pennington  <hp@redhat.com>
+       
+       * dbus/dbus-marshal-validate-util.c: break this out (and fix
+       build, apparently - nobody noticed?)
+       
+2005-01-26  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-marshal-recursive.h: remove todo comment
+
+2005-01-25  Joe Shaw  <joeshaw@novell.com>
+
+       * Land the mono binding changes to conform to the new APIs.
+
+       * mono/Makefile.am: Remove Custom.cs, DBusType/Custom.cs,
+       DBusType/Dict.cs, and DBusType/Nil.cs from the build.
+
+       * mono/Arguments.cs (GetCodeAsString): Added.  Returns the dbus
+       type code as a string.
+       (InitAppending): Rename dbus_message_append_iter_init() to
+       dbus_message_iter_init_append().
+
+       * mono/BusDriver.cs: Rename ServiceEventHandler to
+       NameOwnerChangedHandler.  Rename GetServiceOwner to GetOwner.
+       Rename ServiceOwnerChanged to NameOwnerChanged.
+
+       * mono/Connection.cs: Rename BaseService to UniqueName, and the
+       underlying C call.
+
+       * mono/Custom.cs: Removed.  The CUSTOM type has been removed.
+
+       * mono/Service.cs: Rename Exists to HasOwner, internally rename
+       dbus_bus_acquire_service() to dbus_bus_request_name().
+
+       * mono/DBusType/Array.cs (ctor): Use Type.GetElementType() instead
+       of Type.UnderlyingSystemType to get the correct element type for
+       the array.
+       (ctor): Update code for new APIs: use dbus_message_iter_recurse(),
+       dbus_message_get_{element|arg}_type() instead of
+       dbus_message_iter_init_array_iterator().
+       (Append): Replace dbus_message_iter_append_array() with
+       dbus_message_iter_open_container() and
+       dbus_message_iter_close_container().
+
+       * mono/DBusType/Custom.cs, mono/DBusType/Nil.cs: Removed.  These
+       types have been removed.
+       
+       * mono/DBusType/*.cs: Replace calls of
+       dbus_message_iter_get_[type]() to dbus_message_iter_get_basic(),
+       but specify the type in the DllImport extern declaration.  Ditto
+       for dbus_message_iter_append_[type]() ->
+       dbus_message_iter_append_basic().
+
+       * mono/example/BusListener.cs: Update for ServiceEventHandler ->
+       NameOwnerChangedHandler.
+
+2005-01-25  John (J5) Palmieri  <johnp@redhat.com>
+
+       * python/dbus_bindings.pyx.in: Rename of methods and bindings
+               - get_base_service -> get_unique_name
+               - bus_get_base_service -> bus_get_unique_name
+               - dbus_bus_get_base_service -> dbus_bus_get_unique_name
+               - ACTIVATION_REPLY_ACTIVATED -> DBUS_START_REPLY_SUCCESS 
+               - ACTIVATION_REPLY_ALREADY_ACTIVE -> DBUS_START_REPLY_ALREADY_RUNNING
+               - bus_activate_service -> bus_start_service_by_name
+               - dbus_bus_activate_service -> dbus_bus_start_service_by_name
+               - bus_acquire_service -> bus_request_name
+               - dbus_bus_acquire_service -> dbus_bus_request_name
+               - bus_service_exists -> bus_name_has_owner
+               - dbus_bus_service_exists -> dbus_bus_name_has_owner
+
+       * python/dbus.py: Rename of methods
+               - activate_service -> start_service_by_name
+               - bus_acquire_service -> bus_request_name
+               - ACTIVATION_REPLY_ACTIVATED -> START_REPLY_SUCCESS 
+               - ACTIVATION_REPLY_ALREADY_ACTIVE -> START_REPLY_ALREADY_RUNNING
+
+       
+2005-01-24  Joe Shaw  <joeshaw@novell.com>
+
+       * dbus/dbus-connection.c (dbus_connection_dispatch): Print out the
+       signature for the method that can't be found.
+
+       * dbus/dbus-message.c (dbus_message_iter_init): To check to see if
+       the message has any arguments, we need to call
+       _dbus_type_reader_get_current_type(), not
+       _dbus_type_reader_has_next().
+
+2005-01-24  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-message-factory.c: more testing of message validation
+
+       * dbus/dbus-protocol.h (DBUS_MINIMUM_HEADER_SIZE): move to this
+       header
+
+2005-01-23  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-message-factory.c, dbus/dbus-message-util.c: 
+       get this all working, not many tests in the framework yet though
+
+2005-01-22  Havoc Pennington  <hp@redhat.com>
+
+       * doc/dbus-faq.xml, doc/dbus-tutorial: add a FAQ and update
+       tutorial, based on work from David Wheeler.
+
+2005-01-21  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-bus.c: add more return_if_fail checks
+
+       * dbus/dbus-message.c (load_message): have the "no validation"
+       mode (have to edit the code to toggle the mode for now though)
+
+       * dbus/dbus-marshal-header.c (_dbus_header_load): have a mode that
+       skips all validation; I want to use this at least for benchmark
+       baseline, I'm not sure if it should be a publicly-available switch.
+
+2005-01-21  Havoc Pennington  <hp@redhat.com>
+
+       * glib/dbus-gmain.c: don't put the GLib bindings in the same
+       toplevel doxygen group as the low-level API stuff
+
+       * dbus/dbus.h: note that libdbus is the low-level API
+
+2005-01-20  Havoc Pennington  <hp@redhat.com>
+
+       * update-dbus-docs.sh: script to update docs on the web site, only
+       works for me though. neener.
+
+2005-01-20  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-sysdeps.c (_dbus_poll): amazingly, trying to compile
+       code can reveal bugs in it
+
+2005-01-20  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-sysdeps.c (_dbus_poll): fix several bugs in the
+       select() version, patches from Tor Lillqvist
+
+2005-01-20  Havoc Pennington  <hp@redhat.com>
+
+       * doc/dbus-tutorial.xml: replace > with &gt;
+
+       * bus/services.c (bus_registry_acquire_service): validate the name
+       and return a better error if it's no good.
+
+       * doc/dbus-specification.xml: note NO_AUTO_START change
+
+       * dbus/dbus-protocol.h (DBUS_HEADER_FLAG_NO_AUTO_START): change
+       from AUTO_START, we're toggling the default
+
+       * bus/dispatch.c: adapt the tests to change of auto-start default
+
+2005-01-18  Havoc Pennington  <hp@redhat.com>
+
+       * rename dbus-daemon-1 to dbus-daemon throughout
+
+2005-01-18  Havoc Pennington  <hp@redhat.com>
+
+        * Throughout, grand renaming to strip out the use of "service",
+       just say "name" instead (or "bus name" when ambiguous).  Did not
+       change the internal code of the message bus itself, only the
+       programmer-facing API and messages.
+       
+       * doc/dbus-specification.xml: further update the message bus section
+       
+       * bus/config-parser.c (all_are_equiv): fix bug using freed string
+       in error case
+
+2005-01-17  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-types.h: remove 16-bit types since we don't use them
+       ever
+
+       * dbus/dbus-marshal-validate.c (_dbus_validate_path): disallow any
+       "invalid name character" not only non-ASCII
+
+       * doc/dbus-specification.xml: further update spec, message bus 
+       parts are still out-of-date but the marshaling etc. stuff is now
+       accurate-ish
+
+2005-01-17  Havoc Pennington  <hp@redhat.com>
+
+       * doc/dbus-specification.xml: partially update spec
+
+2005-01-17  Havoc Pennington  <hp@redhat.com>
+
+        * Throughout, align variant bodies according to the contained
+       type, rather than always to 8. Should save a fair bit of space in
+       message headers.
+       
+       * dbus/dbus-marshal-validate.c (_dbus_validate_body_with_reason):
+       fix handling of case where p == end
+
+       * doc/TODO: remove the dbus_bool_t item and variant alignment items
+
+2005-01-17  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits
+
+       * Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead
+       of an 8-bit type. Now dbus_bool_t is the type to use whenever you 
+       are marshaling/unmarshaling a boolean.
+
+2005-01-16  Havoc Pennington  <hp@redhat.com>
+
+        This is about it on what can be disabled/deleted from libdbus
+       easily, back below 150K anyhow. Deeper cuts are more work than 
+       just turning the code off as I've done here.
+       
+       * dbus/dbus-marshal-basic.c (_dbus_pack_int32): we don't need the
+       signed int convenience funcs
+
+       * dbus/dbus-internals.c (_dbus_verbose_real): omit when not in
+       verbose mode
+
+       * dbus/dbus-string-util.c, dbus/dbus-string.c: more breaking
+       things out of libdbus
+
+       * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-util.c: same
+       
+       * dbus/dbus-hash.c: purge the TWO_STRINGS crap (well, make it
+       tests-enabled-only, though it should probably be deleted)
+
+       * dbus/dbus-message-util.c: same stuff
+
+       * dbus/dbus-auth-util.c: same stuff
+
+2005-01-16  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-userdb-util.c: split out part of dbus-userdb.c
+
+       * dbus/dbus-sysdeps.c (_dbus_uid_from_string): move here to pave
+       way for stripping down dbus-userdb.c stuff included in libdbus.
+       Rename _dbus_parse_uid for consistency.
+
+2005-01-16  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-internals.c (_dbus_real_assert): print the function
+       name the assertion failed in
+
+       * dbus/dbus-internals.h (_dbus_return_if_fail) 
+       (_dbus_return_val_if_fail): assert that the name of the function
+       containing the check doesn't start with '_', since we only want to 
+       use checks on public functions
+       
+       * dbus/dbus-connection.c (_dbus_connection_ref_unlocked): change
+       checks to assertions
+
+       * dbus/dbus-marshal-header.c (_dbus_header_set_field_basic):
+       change checks to asserts for private function
+
+       * dbus/dbus-message.c (_dbus_message_set_serial): checks
+       to asserts for private function
+
+       * dbus/dbus-marshal-recursive.c (skip_one_complete_type): remove
+       broken assertion that was breaking make check
+       (_dbus_type_reader_array_is_empty): remove this rather than fix
+       it, was only used in assertions
+
+2005-01-16  Havoc Pennington  <hp@redhat.com>
+
+       * test/unused-code-gc.py: hacky script to find code that's used
+       only by the bus (not libdbus) or used only by tests or not used at
+       all. It has some false alarms, but looks like we can clean up a
+       lot of size from libdbus.
+
+       * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-utils.c,
+       dbus/Makefile.am: initially move 10K of binary size out of libdbus
+       
+2005-01-16  Havoc Pennington  <hp@redhat.com>
+
+        * Add and fix docs according to Doxygen warnings throughout
+       source.
+       
+       * dbus/dbus-marshal-recursive.c
+       (_dbus_type_reader_array_is_empty): change this to just call
+       array_reader_get_array_len() and make it static
+
+       * dbus/dbus-message.c (dbus_message_iter_get_element_type): rename
+       from get_array_type
+       (dbus_message_iter_init_append): rename from append_iter_init
+
+       * dbus/dbus-marshal-recursive.c
+       (_dbus_type_reader_get_element_type): rename from
+       _dbus_type_reader_get_array_type
+
 2005-01-15  Havoc Pennington  <hp@redhat.com>
 
        * test/glib/test-profile.c (with_bus_server_filter): fix crash