1. 18 Feb, 2011 1 commit
  2. 19 Mar, 2010 1 commit
  3. 28 Feb, 2010 2 commits
  4. 19 Feb, 2010 1 commit
  5. 18 Feb, 2010 1 commit
  6. 12 Feb, 2010 1 commit
  7. 23 Dec, 2009 1 commit
  8. 14 Jul, 2009 1 commit
  9. 10 Jul, 2009 1 commit
  10. 06 May, 2009 2 commits
  11. 21 Apr, 2009 2 commits
  12. 12 Jul, 2008 1 commit
  13. 31 Oct, 2007 1 commit
    • Havoc Pennington's avatar
      Fix a problem where a nul byte was wrongly introduced into UUIDs, due to... · bef4260a
      Havoc Pennington authored
      Fix a problem where a nul byte was wrongly introduced into UUIDs, due to _dbus_string_copy_to_buffer weird behavior.
      
      2007-10-31  Havoc Pennington  <hp@redhat.com>
      
      	* bus/selinux.c (log_audit_callback): rewrite to use
      	_dbus_string_copy_to_buffer_with_nul()
      
      	* dbus/dbus-string.c (_dbus_string_copy_to_buffer): change to NOT
      	nul-terminate the buffer; fail an assertion if there is not enough
      	space in the target buffer. This fixes two bugs where
      	copy_to_buffer was used to copy the binary bytes in a UUID, where
      	nul termination did not make sense. Bug reported by David Castelow.
      	(_dbus_string_copy_to_buffer_with_nul): new function that always
      	nul-terminates the buffer, and fails an assertion if there is not
      	enough space in the buffer.
      bef4260a
  14. 20 Sep, 2007 1 commit
    • Allison Lortie's avatar
      Add support for compacting DBusStrings to release wasted memory. · 8c6b0ab3
      Allison Lortie authored
      2007-09-19  Ryan Lortie  <desrt@desrt.ca>
      
              * dbus/dbus-string.[ch] (compact, _dbus_string_compact,
              _dbus_string_lock): new compact function to free up allocated memory
              that is no longer used.
      
              * dbus/dbus-message.c (load_message): call _dbus_string_compact on the
              message loader buffer.
      
              * dbus/dbus-transport-socket.c (do_reading, do_writing): call
              _dbus_string_compact on the incoming/outgoing "encoded" buffers.
      
              * dbus/dbus-string-util.c (_dbus_string_test): add a few tests for
              string compacting.
      8c6b0ab3
  15. 14 Jul, 2007 1 commit
  16. 10 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-09 Havoc Pennington <hp@redhat.com> · a789b7b3
      Havoc Pennington authored
      	* dbus/dbus-string.c (_dbus_string_pop_line): fix this not to
      	think an empty line is the end of the file.
      	Also, fix some whitespace.
      
      	* dbus/dbus-string-util.c: add more tests for
      	_dbus_string_pop_line() revealing that it thinks an empty line is
      	the end of the file, which broke dbus-auth-script.c so
      	it didn't really run the scripts
      
      	* dbus/dbus-auth.c: add ANONYMOUS mechanism
      
      	* dbus/dbus-auth-script.c (_dbus_auth_script_run): fix to detect
      	an empty/no-op auth script; add commands to check that we have or
      	don't have the expected credentials
      a789b7b3
  17. 12 Dec, 2006 2 commits
  18. 21 Oct, 2006 1 commit
    • Havoc Pennington's avatar
      2006-10-21 Havoc Pennington <hp@redhat.com> · e19ebac5
      Havoc Pennington authored
      	* Clean up Doxygen group markers for public API so Doxygen finds
      	everything (not comprehensively fixed for private API).
      	Means all remaining Doxygen warnings are just about missing docs
      	and thus pretty simple to resolve.
      e19ebac5
  19. 20 Oct, 2006 1 commit
  20. 01 Oct, 2006 1 commit
    • Havoc Pennington's avatar
      2006-09-30 Havoc Pennington <hp@redhat.com> · d8155bf5
      Havoc Pennington authored
      	* configure.in (LT_CURRENT, LT_AGE): increment current and age to
      	reflect addition of interfaces.
      
      	* doc/dbus-specification.xml: describe a new
      	org.freedesktop.DBus.Peer.GetMachineId method
      
      	* dbus/dbus-string.c (_dbus_string_skip_white_reverse): new function
      	(_dbus_string_skip_white, _dbus_string_skip_blank): use new
      	DBUS_IS_ASCII_BLANK, DBUS_IS_ASCII_WHITE macros and fix assertion
      	at end of skip_white
      	(_dbus_string_chop_white): new function
      
      	* bus/connection.c (bus_connections_setup_connection): call
      	dbus_connection_set_route_peer_messages.
      
      	* dbus/dbus-connection.c
      	(_dbus_connection_peer_filter_unlocked_no_update): modify to
      	support a GetMachineId method.
      
      	Also, support a new flag to let the bus pass peer methods through
      	to apps on the bus, which can be set with
      	dbus_connection_set_route_peer_messages.
      
      	Finally, handle and return an error for anything unknown on the
      	Peer interface, which will allow us to extend the Peer interface
      	in the future without fear that we're now intercepting something
      	apps were wanting to see.
      
      	* tools/dbus-uuidgen.c: a thin wrapper around the functions in
      	dbus/dbus-uuidgen.c
      
      	* dbus/dbus-uuidgen.c: implement the bulk of the dbus-uuidgen
      	binary here, since most of the code is already in libdbus
      
      	* dbus/dbus-sysdeps.c (_dbus_read_local_machine_uuid): read the
      	uuid from the system config file
      
      	* dbus/dbus-internals.c (_dbus_generate_uuid, _dbus_uuid_encode)
      	(_dbus_read_uuid_file_without_creating)
      	(_dbus_create_uuid_file_exclusively, _dbus_read_uuid_file): new
      	uuid-related functions, partly factored out from dbus-server.c
      
      	* dbus/dbus-sysdeps.c (_dbus_error_from_errno): convert EEXIST to
      	DBUS_ERROR_FILE_EXISTS instead of EEXIST
      
      	* dbus/dbus-protocol.h (DBUS_ERROR_FILE_EXISTS): add file exists error
      
      	* tools/dbus-cleanup-sockets.1: explain what the point of this
      	thing is a bit more
      
      	* autogen.sh (run_configure): add --config-cache to default
      	configure args
      
      	* dbus/dbus-internals.h (_DBUS_ASSERT_ERROR_IS_SET): disable the
      	error set/clear assertions when DBUS_DISABLE_CHECKS is defined
      
      	* tools/dbus-launch.c (main): if xdisplay hasn't been opened,
      	don't try to save address, fixes crash in make check
      d8155bf5
  21. 08 Aug, 2006 2 commits
    • John Palmieri's avatar
      * dbus/dbus-sysdeps.h: · d3874114
      John Palmieri authored
      * dbus/dbus-sysdeps.c:
      * dbus/dbus-string.c:
        s/_dbus_printf_length/_dbus_printf_string_upper_bound to comform with
        GLib's function which does the same thing
      
      * configure.in:
      * bus/Makefile.am:
      * bus/dir-watch-default.c:
      * bus/dir-watch-dnotify.c:
      * bus/dir-watch-kqueue.c:
        Add kqueue directory watching for freebsd and split the directory
        watching code into seperate files per method/arch
        (patches from Timothy Redaelli <drizzt at gufi dotorg>)
      d3874114
    • John Palmieri's avatar
      * dbus/dbus-sysdeps.h: · 7bb2361e
      John Palmieri authored
      * dbus/dbus-sysdeps.c:
        add _dbus_printf_length (patch from Peter Kümmel
        <syntheticpp at gmx dot net>)
      7bb2361e
  22. 03 Aug, 2006 1 commit
  23. 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
  24. 10 Apr, 2005 1 commit
  25. 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
  26. 11 Feb, 2005 1 commit
    • Havoc Pennington's avatar
      2005-02-10 Havoc Pennington <hp@redhat.com> · aa4f8237
      Havoc Pennington authored
      	* test/glib/test-dbus-glib.c (main): fix so this test doesn't fail
      	(call dbus_g_proxy_add_signal)
      
      	* dbus/dbus-server-unix.c (_dbus_server_new_for_tcp_socket):
      	escape the hostname
      	(_dbus_server_new_for_domain_socket): escape the path
      
      	* dbus/dbus-address.c (dbus_address_escape_value): new
      	(dbus_address_unescape_value): new
      	(dbus_parse_address): unescape values
      
      	* dbus/dbus-string.c (_dbus_string_append_byte_as_hex): new function
      
      	* doc/dbus-specification.xml: explain how to escape values in
      	addresses
      aa4f8237
  27. 28 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-27 Havoc Pennington <hp@redhat.com> · 3ed9db54
      Havoc Pennington authored
      	* 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.
      3ed9db54
  28. 17 Jan, 2005 1 commit
    • 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
  29. 16 Jan, 2005 2 commits
    • 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
    • Havoc Pennington's avatar
      2005-01-15 Havoc Pennington <hp@redhat.com> · b3416423
      Havoc Pennington authored
      	* test/glib/test-profile.c (with_bus_server_filter): fix crash
      
      	* dbus/dbus-marshal-basic.c (_dbus_unpack_uint32): inline as macro
      	when DBUS_DISABLE_ASSERT
      	(_dbus_marshal_set_basic): be sure we align for the string length
      
      	* dbus/dbus-marshal-recursive.c (skip_one_complete_type): make
      	this look faster
      
      	* dbus/dbus-string.c (_dbus_string_get_const_data_len): add an
      	inline macro version
      	(_dbus_string_set_byte): provide inline macro version
      b3416423
  30. 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
  31. 03 Jan, 2005 1 commit
  32. 01 Jan, 2005 1 commit
  33. 31 Dec, 2004 1 commit
  34. 19 Dec, 2004 1 commit