1. 04 Jul, 2017 2 commits
  2. 20 Feb, 2015 1 commit
  3. 04 Jan, 2012 1 commit
    • Simon McVittie's avatar
      Revert all changes since a36d4918 · 5df8c3db
      Simon McVittie authored
      Someone seems to have merged part of master into 1.4. Again. Let's go
      back to the "last known good" point (the branch-point of some 1.4
      branches I had locally), then we can cherry-pick the changes that
      should have gone in.
      5df8c3db
  4. 04 Mar, 2011 1 commit
  5. 20 Dec, 2010 1 commit
  6. 23 Nov, 2010 1 commit
  7. 19 Mar, 2010 1 commit
  8. 14 Jul, 2009 1 commit
  9. 10 Jul, 2009 1 commit
  10. 20 May, 2009 1 commit
    • Lennart Poettering's avatar
      unix-fd: add message encoding/decoding for unix fds · a0cc21f8
      Lennart Poettering authored
      When appending unix fds to the message a new entry in the fd array will
      be allocated and the index to it will be written to the message payload.
      
      When parsing unix fds from the message the index will be read from the
      payload and then looked up in the fd array.
      
      When we read fds we put them in a queue first. Since each message knows
      how many fds are attached to it we will then pop enough fds from this
      queue each time we decode a message from the stream.
      
      This should make sending and receiving more portable since we don't make
      any strong requirements on the exact semantics of the SCM_RIGHTS
      implementation: as long as fds are recieved in order, none or lost and
      the arrive at the same time as at least one byte from the actual message
      dat we should be able to handle them correctly.
      a0cc21f8
  11. 15 May, 2009 1 commit
    • Lennart Poettering's avatar
      build-system: get rid of config.h inclusion checks · 3801b6de
      Lennart Poettering authored
      These header files include config.h explicitly anyway. These checks are
      hence pointless.
      
      Of course one could argue that including config.h from header files
      sucks, but D-Bus generally seems not to have a problem with that, so
      let's unify this.
      3801b6de
  12. 06 May, 2009 1 commit
  13. 21 Apr, 2009 1 commit
  14. 14 Jul, 2007 1 commit
  15. 21 Oct, 2006 3 commits
  16. 15 Jun, 2005 1 commit
    • 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
  17. 11 Feb, 2005 1 commit
    • Havoc Pennington's avatar
      2005-02-10 Havoc Pennington <hp@redhat.com> · 71f3b461
      Havoc Pennington authored
      	* dbus/dbus-message-factory.c (generate_special): modify test to
      	avoid using a non-basic dict key
      
      	* dbus/dbus-marshal-validate-util.c: add test for the below
      
      	* doc/dbus-specification.xml: require that dict keys are a basic
      	type
      
      	* dbus/dbus-marshal-validate.c
      	(_dbus_validate_signature_with_reason): require that dict key is a
      	basic type
      71f3b461
  18. 06 Feb, 2005 2 commits
    • Havoc Pennington's avatar
      2005-02-06 Havoc Pennington <hp@redhat.com> · 96a47516
      Havoc Pennington authored
      	* dbus/dbus-message-factory.c (generate_special): more tests
      
      	* dbus/dbus-marshal-validate.c (validate_body_helper): detect
      	array length that exceeds the maximum
      96a47516
    • 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. 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
  20. 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
  21. 23 Jan, 2005 1 commit
  22. 21 Jan, 2005 1 commit
    • 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
  23. 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
  24. 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
  25. 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
  26. 03 Jan, 2005 1 commit
  27. 10 Aug, 2004 1 commit
  28. 20 Jun, 2004 1 commit
    • Havoc Pennington's avatar
      2004-06-20 Havoc Pennington <hp@redhat.com> · 961e6ca4
      Havoc Pennington authored
              * dbus/dbus-glib-error-enum.h: autogenerate the GError enum
      	codes from the dbus error names
      
              * glib/dbus-glib.h: move to subdir dbus/ since it's included
      	as dbus/dbus-glib.h and that breakage is now visible due to
      	including dbus/dbus-glib.h in dbus-glib-lowlevel.h
      
      	* glib/dbus-glib.h: s/gproxy/g_proxy/
      
      	* dbus/dbus-shared.h: new header to hold stuff shared with
      	binding APIs
      
      	* dbus/dbus-protocol.h (DBUS_ERROR_*): move errors here rather
      	than dbus-errors.h
      
      	* glib/dbus-glib.h (dbus_set_g_error): move to
      	dbus-glib-lowlevel.h
      
      	* glib/dbus-glib.h: remove dbus/dbus.h from here; change a bunch
      	of stuff to enable this
      
      	* dbus/dbus-glib-lowlevel.h: put dbus/dbus.h here
      
      	* a bunch of other changes with the same basic "separate glib
      	bindings from dbus.h" theme
      961e6ca4
  29. 02 Dec, 2003 1 commit
  30. 05 Sep, 2003 1 commit
  31. 03 Sep, 2003 1 commit
  32. 21 Nov, 2002 3 commits
    • Havoc Pennington's avatar
      2002-11-21 Havoc Pennington <hp@redhat.com> · 5a6adeee
      Havoc Pennington authored
      	* dbus/Makefile.am (INCLUDES): define DBUS_COMPILATION
      	so we can allow ourselves to include files directly,
      	instead of having to use dbus.h
      
      	* dbus/dbus.h: fill in
      
      	* dbus/dbus-message.h: sketch out a sample header file.
      	Include griping if you include it directly instead of
      	via dbus.h
      
      	* dbus/dbus-macros.h: new file with macros for extern "C",
      	TRUE/FALSE, NULL, etc.
      
      	* doc/file-boilerplate.c: put include guards in here
      5a6adeee
    • Havoc Pennington's avatar
      2002-11-21 Havoc Pennington <hp@redhat.com> · 89161753
      Havoc Pennington authored
      	* doc/file-boilerplate.c: include both AFL and GPL boilerplate.
      
      	* COPYING: include the GPL as well, and license code
      	under both AFL and GPL.
      89161753
    • Havoc Pennington's avatar
      add file-boilerplate.c · f6343e58
      Havoc Pennington authored
      f6343e58