1. 28 Jun, 2013 1 commit
  2. 13 Feb, 2012 1 commit
  3. 10 Feb, 2012 1 commit
  4. 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
  5. 19 Sep, 2011 1 commit
  6. 13 Jun, 2011 4 commits
  7. 09 Jul, 2010 1 commit
  8. 08 Jul, 2010 1 commit
    • Lennart Poettering's avatar
      bus: add --address switch · 921bc585
      Lennart Poettering authored
      This is allows overriding of the listening address on the command line,
      which is particularly useful for systemd socket-based activation.
      921bc585
  9. 14 Jul, 2009 1 commit
  10. 10 Jul, 2009 1 commit
  11. 14 Jul, 2007 1 commit
  12. 12 Mar, 2007 1 commit
    • Havoc Pennington's avatar
      2007-03-11 Havoc Pennington <hp@redhat.com> · 9362aac3
      Havoc Pennington authored
      	* tools/dbus-launch.c (do_close_stderr): fix C89 problem and
      	formatting problem
      
      	* Mostly fix the DBusPipe mess.
      	- put line break after function return types
      	- put space before parens
      	- do not pass structs around by value
      	- don't use dbus_strerror after calling supposedly cross-platform
      	api
      	- don't name pipe variables "fd"
      	- abstract special fd numbers like -1 and 1
      9362aac3
  13. 10 Mar, 2007 1 commit
  14. 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
  15. 26 Nov, 2004 1 commit
    • Havoc Pennington's avatar
      2004-11-25 Havoc Pennington <hp@redhat.com> · dbdea921
      Havoc Pennington authored
              The primary change here is to always write() once before adding
      	the write watch, which gives us about a 10% performance increase.
      
      	* dbus/dbus-transport-unix.c: a number of modifications to cope
      	with removing messages_pending
      	(check_write_watch): properly handle
      	DBUS_AUTH_STATE_WAITING_FOR_MEMORY; adapt to removal of
      	messages_pending stuff
      	(check_read_watch): properly handle WAITING_FOR_MEMORY and
      	AUTHENTICATED cases
      	(unix_handle_watch): after writing, see if the write watch can be
      	removed
      	(unix_do_iteration): assert that write_watch/read_watch are
      	non-NULL rather than testing that they aren't, since they
      	aren't allowed to be NULL. check_write_watch() at the end so
      	we add the watch if we did not finish writing (e.g. got EAGAIN)
      
      	* dbus/dbus-transport-protected.h: remove messages_pending call,
      	since it resulted in too much inefficient watch adding/removing;
      	instead we now require that the transport user does an iteration
      	after queueing outgoing messages, and after trying the first
      	write() we add a write watch if we got EAGAIN or exceeded our
      	max bytes to write per iteration setting
      
      	* dbus/dbus-string.c (_dbus_string_validate_signature): add this
      	function
      
      	* dbus/dbus-server-unix.c (unix_finalize): the socket name was
      	freed and then accessed, valgrind flagged this bug, fix it
      
      	* dbus/dbus-message.c: fix several bugs where HEADER_FIELD_LAST was taken
      	as the last valid field plus 1, where really it is equal to the
      	last valid field. Corrects some message corruption issues.
      
      	* dbus/dbus-mainloop.c: verbosity changes
      
      	* dbus/dbus-keyring.c (_dbus_keyring_new_homedir): handle OOM
      	instead of aborting in one of the test codepaths
      
      	* dbus/dbus-internals.c (_dbus_verbose_real): fix a bug that
      	caused not printing the pid ever again if a verbose was missing
      	the newline at the end
      	(_dbus_header_field_to_string): add HEADER_FIELD_SIGNATURE
      
      	* dbus/dbus-connection.c: verbosity changes;
      	(dbus_connection_has_messages_to_send): new function
      	(_dbus_connection_message_sent): no longer call transport->messages_pending
      	(_dbus_connection_send_preallocated_unlocked): do one iteration to
      	try to write() immediately, so we can avoid the write watch. This
      	is the core purpose of this patchset
      	(_dbus_connection_get_dispatch_status_unlocked): if disconnected,
      	dump the outgoing message queue, so nobody will get confused
      	trying to send them or thinking stuff is pending to be sent
      
      	* bus/test.c: verbosity changes
      
      	* bus/driver.c: verbosity/assertion changes
      
      	* bus/dispatch.c: a bunch of little tweaks to get it working again
      	because this patchset changes when/where you need to block.
      dbdea921
  16. 10 Aug, 2004 1 commit
  17. 02 Dec, 2003 1 commit
  18. 31 Aug, 2003 1 commit
  19. 18 Aug, 2003 1 commit
    • Havoc Pennington's avatar
      2003-08-18 Havoc Pennington <hp@redhat.com> · 68a3c593
      Havoc Pennington authored
      	* dbus/dbus-hash.c (_dbus_hash_table_insert_two_strings): fix
      
      	* dbus/dbus-message.c (_dbus_message_loader_queue_messages): fix
      	dumb bug created earlier (wrong order of args to
      	decode_header_data())
      
      	* tools/dbus-send.c: port
      
      	* tools/dbus-print-message.c (print_message): port
      
              * test/data/*messages: port all messages over
      
              * dbus/dbus-message-builder.c: support including
      	message type
      
              * bus/driver.c: port over
      
      	* bus/dispatch.c: port over to new stuff
      
      	* dbus/dbus-connection.c (_dbus_connection_new_for_transport):
      	rename disconnect signal to "Disconnected"
      68a3c593
  20. 12 Aug, 2003 1 commit
    • Havoc Pennington's avatar
      2003-08-11 Havoc Pennington <hp@pobox.com> · 5c1a8e44
      Havoc Pennington authored
      	* bus/test.c (client_disconnect_handler): change to return
      	HANDLED (would have been REMOVE_MESSAGE)
      
      	* dbus/dbus-object.h (enum DBusHandlerResult): rename to
      	HANDLED/NOT_YET_HANDLED instead of
      	REMOVE_MESSAGE/ALLOW_MORE_HANDLERS to make it clearer how it
      	should be used.
      5c1a8e44
  21. 11 Aug, 2003 1 commit
    • Havoc Pennington's avatar
      2003-08-10 Havoc Pennington <hp@pobox.com> · b29ea911
      Havoc Pennington authored
      	* tools/dbus-send.c (main): add --type argument, for now
      	supporting only method_call and signal types.
      
      	* tools/dbus-print-message.c: print message type
      
      	* dbus/dbus-connection.c (_dbus_connection_new_for_transport):
      	init connection->objects
      
      	* doc/dbus-specification.sgml: fix sgml
      
      	* bus/*.c: port over to object-instance API changes
      
      	* test/test-service.c: ditto
      
      	* dbus/dbus-message.c (dbus_message_create_header): allow #NULL
      	name, we will have to fix up the rest of the code to also handle
      	this
      	(dbus_message_new): generic message-creation call
      	(set_string_field): allow appending name field
      b29ea911
  22. 22 Jun, 2003 1 commit
    • Havoc Pennington's avatar
      2003-06-22 Havoc Pennington <hp@pobox.com> · 6843ad31
      Havoc Pennington authored
      	* dbus/dbus-dataslot.c (_dbus_data_slot_allocator_unref)
      	(_dbus_data_slot_allocator_alloc): rework these to keep a
      	reference count on each slot and automatically manage a global
      	slot ID variable passed in by address
      
      	* bus/bus.c: convert to new dataslot API
      
      	* dbus/dbus-bus.c: convert to new dataslot API
      
      	* dbus/dbus-connection.c: convert to new dataslot API
      
      	* dbus/dbus-server.c: convert to new dataslot API
      
      	* glib/dbus-gmain.c: ditto
      
      	* bus/test.c: ditto
      
      	* bus/connection.c: ditto
      6843ad31
  23. 04 May, 2003 1 commit
  24. 27 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-27 Havoc Pennington <hp@pobox.com> · e8d396ef
      Havoc Pennington authored
      	Unbreak my code...
      
      	* dbus/dbus-transport.c (_dbus_transport_get_dispatch_status):
      	report correct status if we finish processing authentication
      	inside this function.
      
      	* bus/activation.c (try_send_activation_failure): use
      	bus_transaction_send_error_reply
      
      	* bus/connection.c (bus_connection_get_groups): return an error
      	explaining the problem
      
      	* bus/bus.c (bus_context_check_security_policy): implement
      	restriction here that inactive connections can only send the
      	hello message. Also, allow bus driver to send anything to
      	any recipient.
      
      	* bus/connection.c (bus_connection_complete): create the
      	BusClientPolicy here instead of on-demand.
      	(bus_connection_get_policy): don't return an error
      
      	* dbus/dbus-message.c (dbus_message_new_error_reply): allow NULL
      	sender field in message being replied to
      
      	* bus/bus.c (bus_context_check_security_policy): fix silly typo
      	causing it to return FALSE always
      
      	* bus/policy.c (bus_client_policy_check_can_send): fix bug where
      	we checked sender rather than destination
      e8d396ef
  25. 18 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-18 Havoc Pennington <hp@pobox.com> · 3df260c0
      Havoc Pennington authored
      	* glib/dbus-gmain.c: adapt to watch changes
      
      	* bus/bus.c, bus/activation.c, etc.: adjust to watch changes
      
      	* dbus/dbus-server.h: remove dbus_server_handle_watch
      
      	* dbus/dbus-connection.h: remove dbus_connection_handle_watch
      
      	* dbus/dbus-watch.c (dbus_watch_handle): change DBusWatch to work
      	like DBusTimeout, so we don't need dbus_connection_handle_watch
      	etc.
      3df260c0
  26. 11 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-11 Havoc Pennington <hp@pobox.com> · a03e6267
      Havoc Pennington authored
      	* bus/dispatch.c (check_existent_service_activation): accept a no
      	memory error in a place we didn't before
      
      	* bus/test.c (bus_test_run_everything): remove hacky "do it twice
      	in case the first one failed," since the test suite is less
      	broken now.
      a03e6267
  27. 10 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-10 Havoc Pennington <hp@pobox.com> · 51781f54
      Havoc Pennington authored
      	* bus/dispatch.c: lots of fixes
      
      	* dbus/dbus-mainloop.c (_dbus_loop_dispatch): export
      	(_dbus_loop_iterate): remove old "quit if no callbacks" code,
      	that was crack, broke the test service.
      
      	* dbus/dbus-transport.c (_dbus_transport_open): fix error
      	handling to avoid piling up errors if we get a failure on the
      	first address.
      
      	* dbus/dbus-internals.c (_dbus_real_assert_not_reached): include
      	pid in assertion failures.
      
      	* dbus/dbus-mainloop.c (_dbus_loop_iterate): use static arrays up
      	to some fixed size of file descriptor array. Don't return TRUE
      	anytime a timeout exists, that led to lots of busy loop silliness
      	in the tests.
      51781f54
  28. 07 Apr, 2003 1 commit
    • Havoc Pennington's avatar
      2003-04-07 Havoc Pennington <hp@redhat.com> · fe22b219
      Havoc Pennington authored
      	* doc/dbus-specification.sgml: require that base service names
      	start with ':' and that the base service is created/deleted
      	as first and last things a connection does on the bus
      
      	* bus/dispatch.c (check_existent_service_activation): lots more
      	work on the activation test; it doesn't fully pass yet...
      
      	* test/test-service.c (main): fix so we don't memleak the
      	connection to the message bus
      	(filter_func): accept a message asking us to exit
      fe22b219
  29. 06 Apr, 2003 2 commits
    • Havoc Pennington's avatar
      2003-04-06 Havoc Pennington <hp@pobox.com> · df008ef9
      Havoc Pennington authored
      	* dbus/Makefile.am: split lists of sources into stuff that goes in
      	the library, util functions that go in the lib and are also used
      	elsewhere, and util functions that are used in tests/daemon but
      	don't go in the lib.
      
      	* dbus/dbus-mainloop.h, dbus/dbus-mainloop.c: move bus/loop.[hc]
      	here so it can be used in test binaries also
      df008ef9
    • Havoc Pennington's avatar
      2003-04-06 Havoc Pennington <hp@pobox.com> · c8991b0f
      Havoc Pennington authored
      	* bus/bus.c (bus_context_new): print the address in here, rather
      	than in main(), because we need to do it before forking the daemon
      
      	* bus/dispatch.c (send_service_nonexistent_error): set the sender
      	on the service nonexistent error
      
      	* bus/driver.c (bus_driver_handle_acquire_service): set the
      	sender on the AcquireService reply
      
      	* test/data/valid-config-files/debug-allow-all.conf.in: Make test
      	server also listen on a UNIX socket so services can connect to it.
      c8991b0f
  30. 04 Apr, 2003 1 commit
  31. 31 Mar, 2003 2 commits
    • Havoc Pennington's avatar
      2003-03-31 Havoc Pennington <hp@redhat.com> · fa05de92
      Havoc Pennington authored
              Fix some annoying DBusString API and fix all affected code.
      
      	* dbus/dbus-string.c (_dbus_string_init): get rid of annoying
      	max_length argument
      	(_dbus_string_get_data): change to return string instead of using
      	an out param
      	(_dbus_string_get_const_data): ditto
      	(_dbus_string_get_data_len): ditto
      	(_dbus_string_get_const_data_len): ditto
      fa05de92
    • Havoc Pennington's avatar
      2003-03-31 Havoc Pennington <hp@pobox.com> · 29c71168
      Havoc Pennington authored
      	* dbus/dbus-transport-unix.c (_dbus_transport_new_for_domain_socket)
      	(_dbus_transport_new_for_tcp_socket): these didn't need the "server"
      	argument since they are always client side
      
      	* dbus/dbus-server.c (dbus_server_get_address): new function
      
      	* bus/main.c (main): take the configuration file as an argument.
      
      	* test/data/valid-config-files/debug-allow-all.conf: new file to
      	use with dispatch.c tests for example
      
      	* bus/test-main.c (main): require test data dir
      
      	* bus/bus.c (bus_context_new): change this to take a
      	configuration file name as argument
      
      	* doc/config-file.txt (Elements): add <servicedir>
      
      	* bus/system.conf, bus/session.conf: new files
      
      	* dbus/dbus-bus.c (dbus_bus_get): look for system bus on
      	well-known socket if none set
      
      	* configure.in: create system.conf and session.conf
      29c71168
  32. 28 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-28 Havoc Pennington <hp@pobox.com> · bf993813
      Havoc Pennington authored
      	* bus/test.c (bus_test_flush_bus): remove the sleep from here,
      	I think it may have just been superstition. Not sure.
      
      	* dbus/dbus-string.c (_dbus_string_base64_decode): catch some OOM
      	failures that were not being handled.
      
      	* dbus/dbus-auth.c (process_auth): fix a memleak in OOM handling
      
      	* dbus/dbus-memory.c: add ability to set number of mallocs in a
      	row that will fail on out-of-memory.
      
      	* dbus/dbus-internals.c (_dbus_test_oom_handling): convenience
      	function for testing out-of-memory handling.
      
      	* bus/config-loader-expat.c (memsuite): don't wrap the dbus
      	allocation functions, they do map exactly to the expat ones.
      bf993813
  33. 25 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-24 Havoc Pennington <hp@redhat.com> · ce4fd314
      Havoc Pennington authored
      	* dbus/dbus-sysdeps.c (_dbus_set_fd_nonblocking): move to this
      	file
      
      	* dbus/dbus-errors.c (dbus_set_error, dbus_set_error_const): allow
      	NULL argument for "message" if the error is a well-known one,
      	fill in a generic message in this case.
      
      	* dbus/dbus-errors.h (DBusResultCode): Kill DBusResultCode in
      	favor of DBusError
      
      	* bus/test.c (bus_test_flush_bus): add
      
      	* bus/policy.c (bus_policy_test): test code stub
      ce4fd314
  34. 17 Mar, 2003 2 commits
    • Havoc Pennington's avatar
      2003-03-17 Havoc Pennington <hp@pobox.com> · f7c24715
      Havoc Pennington authored
      	All tests pass, no memleaks, no valgrind complaints.
      
      	* bus/test.c: refcount handler_slot
      
      	* bus/connection.c (bus_connections_new): refcount
      	connection_data_slot
      
      	* dbus/dbus-auth-script.c (_dbus_auth_script_run): delete unused
      	bytes so that auth scripts pass.
      
      	* bus/dispatch.c: init message_handler_slot so it gets allocated
      	properly
      
      	* bus/dispatch.c (message_handler_slot_ref): fix memleak
      
      	* dbus/dbus-server-debug-pipe.c (_dbus_server_debug_pipe_new):
      	dealloc server_pipe_hash when no longer used for benefit of
      	leak checking
      
      	* dbus/dbus-auth.c (process_command): memleak fix
      
      	* bus/dispatch.c (check_hello_message): memleak fix
      f7c24715
    • Havoc Pennington's avatar
      2003-03-16 Havoc Pennington <hp@pobox.com> · b4a1100f
      Havoc Pennington authored
      	* dbus/dbus-watch.c (_dbus_watch_new): handle failure to malloc
      	the watch
      
      	* dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
      	add some missing dbus_set_result
      
      	* bus/dispatch.c (bus_dispatch_add_connection): handle failure to
      	alloc the DBusMessageHandler
      
      	* dbus/dbus-transport.c (_dbus_transport_disconnect): don't ref
      	the transport here, since we call this from the finalizer; it
      	resulted in a double-finalize.
      
      	* dbus/dbus-transport.c (_dbus_transport_disconnect): fix a bug
      	where we tried to use transport->connection that was NULL,
      	happened when transport was disconnected early on due to OOM
      
      	* bus/*.c: adapt to handle OOM for watches/timeouts
      
      	* dbus/dbus-transport-unix.c: port to handle OOM during
      	watch handling
      
      	* dbus/dbus-auth.c (_dbus_auth_get_unused_bytes): return a
      	reference to unused bytes instead of a copy
      
      	* dbus/dbus-server.c (dbus_server_handle_watch): return FALSE for
      	out of memory
      
      	* dbus/dbus-connection.c (dbus_connection_handle_watch): return
      	FALSE on OOM
      
      	* dbus/dbus-timeout.c (dbus_timeout_handle): return FALSE for out
      	of memory
      b4a1100f