1. 06 Apr, 2007 1 commit
  2. 21 Oct, 2006 3 commits
  3. 20 Oct, 2006 2 commits
    • Havoc Pennington's avatar
      2006-10-20 Havoc Pennington <hp@redhat.com> · ebb23964
      Havoc Pennington authored
      	* doc/TODO: remove the int64 thing from 1.0 since it doesn't
      	matter, and the message-loader-breaker thing since nobody is going
      	to do it.  Add an item to 1.0 about supporting recursive locks
      	in dbus_threads_init_default() though, since it should be easy.
      
      	* dbus/dbus-connection.c (_dbus_connection_read_write_dispatch):
      	Fix this in the !dispatch case to avoid busy-looping after
      	disconnection
      
              * More misc docs improvements
      ebb23964
    • Havoc Pennington's avatar
      2006-10-19 Havoc Pennington <hp@redhat.com> · 15ef0ef6
      Havoc Pennington authored
      	* Fix a pile of Doxygen warnings and missing docs
      15ef0ef6
  4. 16 Aug, 2006 1 commit
    • John Palmieri's avatar
      * dbus/dbus-threads.c: Add static DBusList *uninitialized_mutex_list and · 14cc7d28
      John Palmieri authored
              static DBusList *uninitialized_condvar_list to support new late
              initialization threading model.  In this model threads can be initialized
              even after the D-Bus API has been used but still needs to be initialized
              before the second thread has been started.  Mutexes and condvar addresses
              are stored in the two static lists and are replaced with actuall locks
              when threads are initalized.
              (_dbus_mutex_new_at_location): New method for creating a mutex and placing
              the location into the static list
              (_dbus_mutex_free_at_location): New method for removing a mutex location
              from the static list and freeing the mutex
              (_dbus_condvar_new_at_location): New method for creating a conditional
              variable and placing the location into the static list
              (_dbus_condvar_free_at_location): New method for removing a conditional
              variable location from the static list and freeing the conditional variable
              (init_uninitialized_locks): Atomic method which goes through the static
              lists of mutex and condvar location and updates them with actuall locks
              (init_global_locks): changed to init_locks
      
              * dbus/dbus-connection.c:
              (_dbus_connection_test_get_locks): New method for tests to check connections
              (_dbus_connection_new_for_transport): Use the new at_location mutex and
              condvar API
              (dbus_connection_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
      
              * dbus/dbus-dataslot.c:
              (_dbus_data_slot_allocator_alloc): Use the address of the mutex
              instead of the mutex itself
      
              * dbus/dbus-message.c:
              (dbus_message_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
      
              * dbus/dbus-pending-call.c:
              (dbus_pending_call_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
      
              * dbus/dbus-server.c:
              (_dbus_server_init_base): Use the new at_location mutex API
              (dbus_server_allocate_data_slot): Pass in the global lock address
              to _dbus_data_slot_allocator_alloc
      
              * test/name-test/test-threads-init.c: New test case for late thread
              initialization
      14cc7d28
  5. 03 Aug, 2006 1 commit
  6. 16 Feb, 2006 1 commit
    • Robert McQueen's avatar
      2006-02-16 Robert McQueen <robot101@debian.org> · 0d0642b3
      Robert McQueen authored
      	* dbus/dbus-message.c (dbus_message_iter_get_fixed_array):
      	Patch from Rob Taylor <rob.taylor@collabora.co.uk> to correct a bogus
      	assertion that the next element to read from the iter is fixed in
      	size. This is not the case when you are at the end of the iter,
      	because the next element type is INVALID.
      
      	* dbus/dbus-string.c (_dbus_string_init_const_len): Correct a
      	a bogus assert which means that you may not initialise a 0-length
      	string unless you provide a non-NULL pointer. This prevented
      	you from marshalling messages containing zero-length arrays in
      	some cases.
      
      	* glib/dbus-gvalue.c (demarshal_collection_array): Another patch
      	from Rob to correct bogus asserts when trying to demarshal an
      	array and get_fixed_array got you 0 elements. Append nothing to
      	the GArray in this case.
      
      	* test/glib/test-dbus-glib.c: Add a test case for round-tripping
      	an empty array via the glib bindings. Without all of the above
      	patches, this new test fails.
      0d0642b3
  7. 09 Aug, 2005 1 commit
  8. 31 Jul, 2005 1 commit
  9. 27 Jul, 2005 1 commit
  10. 15 Jun, 2005 2 commits
    • John Palmieri's avatar
      * dbus/dbus-message.c: · a93f9c04
      John Palmieri authored
              (dbus_message_has_path): New method
              (dbus_message_has_interface): New method
              (dbus_message_has_member): New method
      
              * dbus/dbus/dbus-sysdeps.c (_dbus_check_dir_is_private_to_user):
              New method
      
              * dbus/dbus-keyring.c (_dbus_keyring_reload): Check to see that
              the keyring directory is private to the user
      
              * doc/TODO:
               - The convenience functions in dbus-bus.h should perhaps have
               the signatures that they would have if they were autogenerated
               stubs. e.g. the acquire service function. We should also evaluate
               which of these functions to include, in light of the fact that
               GLib/Qt native stubs will probably also exist.: Punted
      
               - add dbus_message_has_path(), maybe has_member/interface:
               fixed in this patch
      
               - in dbus-keyring.c, enforce that the keyring dir is not
               world readable/writable: Fixed in this patch
      a93f9c04
    • John Palmieri's avatar
      * dbus/dbus-marshal-validate.h: Added a new validation · 5e389fdf
      John Palmieri authored
              error code DBUS_VALIDITY_UNKNOWN_OOM_ERROR = -4 for
              out of memory errors when validating signitures
      
              * dbus/dbus-marshal-header.c: use DBUS_VALIDITY_UNKNOWN_OOM_ERROR
              in places where we previously used DBUS_VALID and a FALSE return
              value to indicate OOM
      
              * dbus/dbus-marshal-validate.c (_dbus_validate_signature_with_reason):
              Use a stack to track the number of elements inside containers.  The
              stack values are then used to validate that dict entries have only two
              elements within them.
              (validate_body_helper): check the reason for failure when validating
              varients
      
              * dbus/dbus-message.c (load_message): use
              DBUS_VALIDITY_UNKNOWN_OOM_ERROR in places where we previously used
              DBUS_VALID and a FALSE return value to indicate OOM
      
              * doc/TODO: remove "- validate dict entry number of fields" as this
              patch fixes it
      5e389fdf
  11. 11 May, 2005 1 commit
    • Colin Walters's avatar
      2005-05-11 Colin Walters <walters@verbum.org> · 61411a06
      Colin Walters authored
      	* dbus/dbus-signature.c (dbus_signature_iter_get_signature):
      	New function, returns signature string for signature iter.
      	* dbus/dbus-signature.h: Prototype it.
      	* dbus/dbus-message.c (dbus_message_iter_get_signature):
      	New function, returns signature string for message iter.
      	(dbus_message_iter_get_array_len): New function, returns
      	length of array.
      	(dbus_message_iter_get_fixed_array): Fix assertion; this
      	function should be used when the iter is pointing to the
      	contents of an array
      	* dbus/dbus-message.h: Prototypes.
      	* dbus/dbus-marshal-recursive.c (_dbus_type_reader_get_array_length):
      	New function; returns length of an array.
      	* dbus/dbus-marshal-recursive.h: Prototype it.
      61411a06
  12. 24 Apr, 2005 1 commit
    • Havoc Pennington's avatar
      2005-04-23 Havoc Pennington <hp@redhat.com> · 64f3d8f6
      Havoc Pennington authored
      	* dbus/dbus-message.c (dbus_message_append_args): fix doc comment,
      	reported by Tony Houghton
      
      	* test/test-service.c (main): test
      	dbus_connection_get_object_path_data()
      
      	* dbus/dbus-object-tree.c (find_handler): be sure we always init
      	the exact_match
      	(_dbus_object_tree_get_user_data_unlocked): new function used by
      	dbus_connection_get_object_path_data()
      	(do_register): add assertion test for get_user_data_unlocked
      	(object_tree_test_iteration): more tests
      
      	* dbus/dbus-connection.c (dbus_connection_get_object_path_data):
      	new function from Dan Reed to let you get the user data from
      	dbus_connection_register_object_path()
      64f3d8f6
  13. 09 Mar, 2005 1 commit
    • Colin Walters's avatar
      2005-03-09 Colin Walters <walters@verbum.org> · 74b1b354
      Colin Walters authored
      	* glib/dbus-gproxy.c (dbus_g_proxy_invoke): New method; calls
      	to this are generated for client-side wrappers.  Invokes a
      	D-BUS method and returns reply values.
      
      	* glib/dbus-binding-tool-glib.c (write_args_sig_for_direction): New
      	function; writes signature string for argument direction.
      	(write_args_for_direction): Change to pass input values directly
      	instead of via address, and fix indentation.
      	(generate_client_glue): Change to invoke dbus_g_proxy_invoke.  Also
      	make generated wrappers inlineable.
      
      	* dbus/dbus-message.c (dbus_message_iter_get_fixed_array): Add
      	note about using dbus_type_is_fixed.
      
      	* dbus/dbus-marshal-basic.c (_dbus_type_is_fixed): Moved to
      	dbus/dbus-signature.c as dbus_type_is_fixed.
      
      	All callers updated.
      
      	* dbus/dbus-signature.c (dbus_type_is_fixed): Moved here
      	from dbus/dbus-marshal-basic.c:_dbus_type_is_fixed.
      
      	* dbus/dbus-signature.h: Prototype.
      
      	* glib/dbus-binding-tool-glib.c (compute_marshaller_name): Fix
      	error printf code.
      
      	* test/glib/test-dbus-glib.c (main): Be sure to clear error as
      	appropriate instead of just freeing it.
      	(main): Free returned strings using g_free.
      
      	* test/glib/Makefile.am (test-service-glib-glue.h)
      	(test-service-glib-bindings.h): Add dependency on dbus-binding-tool.
      
      	* glib/dbus-gvalue.c (MAP_BASIC): Refactored from MAP_BASIC_INIT;
      	simply maps a simple D-BUS type to GType.
      	(dbus_dbus_type_to_gtype): Function which maps D-BUS type to
      	GType.
      	(dbus_gvalue_init): Just invoke dbus_dbus_type_to_gtype and
      	initialize the value with it.
      	(dbus_gvalue_binding_type_from_type): Unused, delete.
      	(dbus_gvalue_demarshal): Switch to hardcoding demarshalling for
      	various types instead of unmarshalling to value data directly.
      	Remove can_convert boolean.
      	(dbus_gvalue_marshal): Remove duplicate initialization; switch to
      	returning directly instead of using can_convert boolean.
      	(dbus_gvalue_store): New function; not related to D-BUS per-se.
      	Stores a GValue in a pointer to a value of its corresponding C
      	type.
      
      	* glib/dbus-gvalue.h: Remove dbus_gvalue_binding_type_from_type,
      	add dbus_gvalue_store.
      74b1b354
  14. 25 Feb, 2005 1 commit
    • Havoc Pennington's avatar
      2005-02-25 Havoc Pennington <hp@redhat.com> · 7ce7502e
      Havoc Pennington authored
      	* doc/dbus-specification.xml: document the GUID thing
      
      	* dbus/dbus-server.c (_dbus_server_init_base): initialize a
      	globally unique ID for the server, and put a "guid=hexencoded"
      	field in the address
      
      	* dbus/dbus-bus.c: fix missing #include of dbus-threads-internal.h
      
      	* dbus/dbus-message.c: ditto
      
      	* dbus/dbus-dataslot.c: ditto
      
      	* dbus/dbus-list.c: ditto
      
      	* dbus/dbus-internals.h: wait, just include
      	dbus-threads-internal.h here
      
      	* dbus/dbus-string.c (_dbus_string_copy_to_buffer): move back for
      	use in main library
      
      	* dbus/dbus-sysdeps.c (_dbus_generate_random_bytes_buffer): new function
      7ce7502e
  15. 24 Feb, 2005 1 commit
    • Colin Walters's avatar
      2005-02-24 Colin Walters <walters@verbum.org> · 54a2e9f7
      Colin Walters authored
      	* dbus/dbus-signature.c: New file; implements various functions
      	related to type signatures.  Includes an interator for parsing,
      	validation functions.
      	(dbus_type_is_basic): Moved here from
      	dbus-marshal-basic.c:_dbus_type_is_basic.
      	(dbus_type_is_container): Moved here from
      	dbus-marshal-basic.c:_dbus_type_is_container.
      
      	All callers of _dbus_type_is_container and _dbus_type_is_basic
      	updated, and include dbus-signature.h.
      
      	* dbus/dbus-signature.h: New file; prototypes for the above.
      
      	* dbus/Makefile.am (DBUS_LIB_SOURCES): Add dbus-signature.c,
      	dbus-signature.h.
      
      	* dbus/dbus-marshal-basic.c (map_type_char_to_type): New utility
      	function factored out of _dbus_first_type_in_signature.
      	(_dbus_first_type_in_signature_c_str): New function; returns first
      	type code for a type signature character.
      
      	* dbus/dbus-marshal-basic.h: Prototype _dbus_first_type_in_signature_c_str,
      	handle function moves.
      
      	* dbus/dbus-marshal-recursive.h: Export _dbus_type_signature_next.
      
      	* dbus/dbus-marshal-recursive.c (_dbus_type_signature_next): New
      	function; skips to next complete type in type signature.
      	Implemented using previous skip_one_complete_type.  Now
      	skip_one_complete_type just delegates to
      	_dbus_type_signature_next.
      
      	* dbus/dbus-marshal-basic.c (_dbus_type_is_basic): Moved
      	to dbus-signature.c
      	(_dbus_type_is_container): Ditto.
      
      	* doc/dbus-specification.xml: Update introspection sample to
      	use real type signatures.
      
      	* dbus/dbus-test.h: Prototype signature test.
      
      	* dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): Run
      	signature tests.
      
      	* dbus/dbus-protocol.h (DBUS_ERROR_INVALID_SIGNATURE): New error.
      54a2e9f7
  16. 17 Feb, 2005 1 commit
    • Colin Walters's avatar
      2005-02-17 Colin Walters <walters@verbum.org> · 24889520
      Colin Walters authored
      	* dbus/dbus-protocol.h (DBUS_SERVICE_ORG_FREEDESKTOP_DBUS):
      	Rename to DBUS_SERVICE_DBUS.
      	(DBUS_PATH_ORG_FREEDESKTOP_DBUS): Rename to DBUS_PATH_DBUS.
      	(DBUS_PATH_ORG_FREEDESKTOP_LOCAL): Rename to DBUS_PATH_LOCAL.
      	(DBUS_INTERFACE_ORG_FREEDESKTOP_DBUS): Rename to DBUS_INTERFACE_DBUS.
      	(DBUS_INTERFACE_ORG_FREEDESKTOP_INTROSPECTABLE): Rename to
      	DBUS_INTERFACE_INTROSPECTABLE.
      	(DBUS_INTERFACE_ORG_FREEDESKTOP_PROPERTIES): Rename to
      	DBUS_INTERFACE_PROPERTIES.
      	(DBUS_INTERFACE_ORG_FREEDESKTOP_PEER): Rename to
      	DBUS_INTERFACE_PEER.
      	(DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL):
      	DBUS_INTERFACE_LOCAL.
      
      	All other users of those constants have been changed.
      
      	* bus/driver.c (bus_driver_handle_introspect): Use constants.
      
      	* glib/dbus-gobject.c (handle_introspect): Use constants.
      
      	* doc/dbus-faq.xml, doc/dbus-specification.xml: Update for rename.
      24889520
  17. 10 Feb, 2005 2 commits
  18. 06 Feb, 2005 1 commit
    • Havoc Pennington's avatar
      2005-02-05 Havoc Pennington <hp@redhat.com> · 8f04e1e0
      Havoc Pennington authored
      	* dbus/dbus-message-factory.c (generate_special): more test cases,
      	increasing coverage
      
      	* dbus/dbus-marshal-validate.c (validate_body_helper): return the
      	reason why a signature was invalid
      
      	* dbus/dbus-marshal-header.c (load_and_validate_field): fix to
      	skip the length of the string before we look at it in validation
      
      	* dbus/dbus-string-util.c (_dbus_string_test): add tests for
      	equal_substring
      
      	* dbus/dbus-message.c (_dbus_message_loader_new): default
      	max_message_length to DBUS_MAXIMUM_MESSAGE_LENGTH
      8f04e1e0
  19. 30 Jan, 2005 2 commits
    • Havoc Pennington's avatar
      2005-01-30 Havoc Pennington <hp@redhat.com> · d5b7d7a7
      Havoc Pennington authored
      	* tools/dbus-names-model.c (have_names_notify): fix this
      
      	* dbus/dbus-message.c (_dbus_message_iter_get_args_valist): clean
      	up the string array handling a bit
      d5b7d7a7
    • Havoc Pennington's avatar
      2005-01-30 Havoc Pennington <hp@redhat.com> · 98ad8a8e
      Havoc Pennington authored
      	* glib/dbus-gobject.c (introspect_properties): fix the XML
      	generated
      
      	* dbus/dbus-message.c (dbus_message_unref): add an in_cache flag
      	which effectively detects the use of freed messages
      
      	* glib/dbus-gobject.c (handle_introspect): modify and return the
      	reply message instead of the incoming message
      
      	* dbus/dbus-object-tree.c (handle_default_introspect_unlocked):
      	gee, maybe it should SEND THE XML instead of just making a string
      	and freeing it again ;-)
      
      	* tools/dbus-print-message.c (print_message): improve printing of
      	messages
      
      	* configure.in: add debug-glib.service to the output
      98ad8a8e
  20. 28 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-28 Havoc Pennington <hp@redhat.com> · c7816d45
      Havoc Pennington authored
      	* 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
      c7816d45
  21. 27 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-27 Havoc Pennington <hp@redhat.com> · fddbc09c
      Havoc Pennington authored
              * 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()
      fddbc09c
  22. 24 Jan, 2005 2 commits
    • Joe Shaw's avatar
      2005-01-24 Joe Shaw <joeshaw@novell.com> · 73747903
      Joe Shaw authored
      	* 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().
      73747903
    • Havoc Pennington's avatar
      2005-01-24 Havoc Pennington <hp@redhat.com> · 72c433f8
      Havoc Pennington authored
      	* dbus/dbus-message-factory.c: more testing of message validation
      
      	* dbus/dbus-protocol.h (DBUS_MINIMUM_HEADER_SIZE): move to this
      	header
      72c433f8
  23. 23 Jan, 2005 1 commit
  24. 21 Jan, 2005 2 commits
    • Havoc Pennington's avatar
      2005-01-21 Havoc Pennington <hp@redhat.com> · 606eb210
      Havoc Pennington authored
      	* 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.
      606eb210
    • Havoc Pennington's avatar
      2005-01-20 Havoc Pennington <hp@redhat.com> · f5cf6756
      Havoc Pennington authored
      	* 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
      f5cf6756
  25. 18 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-18 Havoc Pennington <hp@redhat.com> · 8873c90f
      Havoc Pennington authored
              * 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
      8873c90f
  26. 17 Jan, 2005 2 commits
    • Havoc Pennington's avatar
      2005-01-16 Havoc Pennington <hp@redhat.com> · 7bf62e31
      Havoc Pennington authored
              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
      7bf62e31
    • Havoc Pennington's avatar
      2005-01-16 Havoc Pennington <hp@redhat.com> · aad6fa89
      Havoc Pennington authored
      	* 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
      aad6fa89
  27. 16 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-16 Havoc Pennington <hp@redhat.com> · 31988af4
      Havoc Pennington authored
              * 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
      31988af4
  28. 15 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-15 Havoc Pennington <hp@redhat.com> · 9c3d566e
      Havoc Pennington authored
      	* Land the new message args API and type system.
      
      	This patch is huge, but the public API change is not
      	really large. The set of D-BUS types has changed somewhat,
      	and the arg "getters" are more geared toward language bindings;
      	they don't make a copy, etc.
      
      	There are also some known issues. See these emails for details
      	on this huge patch:
      	http://lists.freedesktop.org/archives/dbus/2004-December/001836.html
              http://lists.freedesktop.org/archives/dbus/2005-January/001922.html
      
      	* dbus/dbus-marshal-*: all the new stuff
      
      	* dbus/dbus-message.c: basically rewritten
      
      	* dbus/dbus-memory.c (check_guards): with "guards" enabled, init
      	freed blocks to be all non-nul bytes so using freed memory is less
      	likely to work right
      
      	* dbus/dbus-internals.c (_dbus_test_oom_handling): add
      	DBUS_FAIL_MALLOC=N environment variable, so you can do
      	DBUS_FAIL_MALLOC=0 to skip the out-of-memory checking, or
      	DBUS_FAIL_MALLOC=10 to make it really, really, really slow and
      	thorough.
      
      	* qt/message.cpp: port to the new message args API
      	(operator<<): use str.utf8() rather than str.unicode()
      	(pretty sure this is right from the Qt docs?)
      
      	* glib/dbus-gvalue.c: port to the new message args API
      
      	* bus/dispatch.c, bus/driver.c: port to the new message args API
      
      	* dbus/dbus-string.c (_dbus_string_init_const_len): initialize the
      	"locked" flag to TRUE and align_offset to 0; I guess we never
      	looked at these anyhow, but seems cleaner.
      
      	* dbus/dbus-string.h (_DBUS_STRING_ALLOCATION_PADDING):
      	move allocation padding macro to this header; use it to implement
      	(_DBUS_STRING_STATIC): ability to declare a static string.
      
      	* dbus/dbus-message.c (_dbus_message_has_type_interface_member):
      	change to return TRUE if the interface is not set.
      
      	* dbus/dbus-string.[hc]: move the D-BUS specific validation stuff
      	to dbus-marshal-validate.[hc]
      
      	* dbus/dbus-marshal-basic.c (_dbus_type_to_string): move here from
      	dbus-internals.c
      
      	* dbus/Makefile.am: cut over from dbus-marshal.[hc]
      	to dbus-marshal-*.[hc]
      
      	* dbus/dbus-object-tree.c (_dbus_decompose_path): move this
      	function here from dbus-marshal.c
      9c3d566e
  29. 19 Dec, 2004 1 commit
    • Havoc Pennington's avatar
      2004-12-18 Havoc Pennington <hp@redhat.com> · f3228b47
      Havoc Pennington authored
      	* dbus/dbus-string.c (_dbus_string_validate_ascii): use ISASCII
      	macro
      
      	* dbus/dbus-message.c: fix a comment, and add a still-unused
      	not-implemented function
      
      	* dbus/dbus-marshal.h: fix comment
      
      	* dbus/dbus-internals.h (_DBUS_ISASCII): new macro
      f3228b47
  30. 27 Nov, 2004 1 commit
    • Havoc Pennington's avatar
      2004-11-27 Havoc Pennington <hp@redhat.com> · b60c835d
      Havoc Pennington authored
      	* dbus/dbus-string.h (_dbus_string_get_byte): inline when asserts
      	are disabled
      	(_dbus_string_get_const_data): inline when asserts are disabled
      
      	* dbus/dbus-message.c: record the _dbus_current_generation of
      	creation so we can complain if dbus_shutdown() is used improperly.
      	Do this only if checks are enabled.
      
      	* dbus/dbus-connection.c: ditto
      b60c835d
  31. 26 Nov, 2004 1 commit