1. 01 Nov, 2013 1 commit
  2. 23 Aug, 2013 1 commit
  3. 15 Aug, 2013 1 commit
  4. 17 Jun, 2013 2 commits
  5. 13 Aug, 2012 2 commits
  6. 21 Feb, 2012 1 commit
  7. 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.
  8. 28 Jul, 2011 1 commit
  9. 14 Apr, 2011 1 commit
  10. 01 Feb, 2011 1 commit
  11. 17 Jun, 2010 1 commit
  12. 14 Jun, 2010 1 commit
    • Ralf Habacker's avatar
      Bug 28460 - Refactored dbus configuration access. · 6f9077ee
      Ralf Habacker authored
      Libdbus uses several config variables. On unix these settings are read from
      environment variables by using _dbus_getenv.
      On other platforms like wince there are no environment variables available and
      _dbus_getenv needs an emulation for those plattforms (see
      To cleanup this emulation the appended patch adds a config api by adding
      _dbus_config_... functions.
      Also having all client config related functions listed in one header file
      provides a good overview about which config attributes  are available.
      The default implementation retrieves the config values from environment
      variables. For other os this could be easily extended or replaced by.
  13. 14 Jul, 2009 2 commits
  14. 13 Jul, 2009 1 commit
    • Colin Walters's avatar
      Bug 14259 - Make session address lookup system-dependent · 6478ec69
      Colin Walters authored
      On some platforms such as MacOS X and Windows, we can't depend
      on an environment variable to determine the address of the
      session bus.  Create a sysdep function dbus_lookup_session_address
      which can be filled in with platform-specific code.
  15. 10 Jul, 2009 1 commit
  16. 30 May, 2008 1 commit
  17. 26 Mar, 2008 1 commit
    • Colin Walters's avatar
      Set default exit_on_disconnect after registration · 52ea0f2c
      Colin Walters authored
      2008-03-26  Colin Walters  <walters@verbum.org>
      	Patch from Scott James Remnant <scott@netsplit.com>
      	* dbus/dbus-bus.c: Set default exit_on_disconnect after registration with
      	the bus, not before.  This ensures that programs which wish to set
      	exit_on_disconnect to FALSE will not be terminated if the bus exits
      	during registration.  (FDO Bug #15112)
  18. 20 Sep, 2007 1 commit
    • Allison Lortie's avatar
      Add argument path matching support. Bug #11066. · f6ec4a80
      Allison Lortie authored
      2007-09-20  Ryan Lortie  <desrt@desrt.ca>
              * dbus/signals.c (struct DBusMatchRule, bus_match_rule_new,
              bus_match_rule_set_arg, bus_match_rule_parse_arg_match,
              match_rule_matches): Add support for parsing and matching on
              arg0path='/some/path' type rules.
              * dbus/signals.h (bus_match_rule_set_arg): change to take const
              DBusString instead of const char * for the string to match against.
              * dbus/dbus-bus.c: add a quick note to dbus_bus_add_match
              documentation about the path matching.
              * doc/dbus-specification.xml: add a more detailed description of the
              changes here.
  19. 14 Jul, 2007 1 commit
  20. 18 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-18 Havoc Pennington <hp@redhat.com> · 54b94343
      Havoc Pennington authored
      	* doc/dbus-specification.xml: document org.freedesktop.DBus.GetId()
      	* bus/driver.c (bus_driver_handle_get_id): implement org.freedesktop.DBus.GetId()
      	* bus/bus.c (bus_context_new): generate a unique ID for each bus context
      	* dbus/dbus-connection.c (dbus_connection_get_server_id): new function
      	* dbus/dbus-bus.c (dbus_bus_get_id): new function
      	* dbus/dbus-server.c (dbus_server_get_id): new function
  21. 28 Oct, 2006 1 commit
    • Havoc Pennington's avatar
      2006-10-27 Havoc Pennington <hp@redhat.com> · eaefe03a
      Havoc Pennington authored
      	* dbus/dbus-test.c: enclose more of the file in the
      	DBUS_BUILD_TESTS check.
      	* dbus/dbus-sysdeps-pthread.c (PTHREAD_CHECK): fix for
      	* dbus/dbus-connection.c (dbus_connection_get_unix_user): document
      	that it only works on the server side
      	* dbus/dbus-bus.c: add a global lock covering the BusData we
      	attach to each connection
      	(internal_bus_get): lock our access to the BusData
      	(dbus_bus_register): lock the entire registration process
      	with _DBUS_LOCK(bus_datas). If we get the lock and
      	registration is already complete, silently return (vs. previous
      	behavior of aborting).
      	(dbus_bus_set_unique_name): lock the BusData
      	(dbus_bus_get_unique_name): lock the BusData
  22. 21 Oct, 2006 1 commit
  23. 17 Oct, 2006 1 commit
  24. 01 Oct, 2006 4 commits
    • Havoc Pennington's avatar
      2006-10-01 Havoc Pennington <hp@redhat.com> · 7020b573
      Havoc Pennington authored
      	* test/test-service.c (path_message_func): remove broken extra
      	unref that was hidden by the bugs in dbus-connection.c/dbus-bus.c
      	* test/test-shell-service.c (path_message_func): same fix
      	* dbus/dbus-connection.c
      	(_dbus_connection_get_dispatch_status_unlocked): break up the
      	function a little for clarity and fix the notification of
      	dbus-bus.c to not require dispatch to be complete
      	* dbus/dbus-connection.c (dbus_connection_unref): improve the
      	warning when you try to finalize an open connection.
    • Havoc Pennington's avatar
      2006-10-01 Havoc Pennington <hp@redhat.com> · eb1e11ba
      Havoc Pennington authored
      	* dbus/dbus-bus.c
      	(internal_bus_get): only weak ref the connection; this means
      	_dbus_bus_notify_shared_connection_disconnected_unlocked can be
      	called safely in any context
      	(_dbus_bus_notify_shared_connection_disconnected_unlocked): don't
      	* dbus/dbus-connection.c
      	(_dbus_connection_get_dispatch_status_unlocked): move
      	_dbus_bus_notify_shared_connection_disconnected_unlocked here
      	when queuing Disconnected instead of when the Disconnected message
      	arrives, so dbus_bus_get() won't return closed connections.
    • Havoc Pennington's avatar
      2006-10-01 Havoc Pennington <hp@redhat.com> · a2129f7c
      Havoc Pennington authored
      	* dbus/dbus-connection.c (_dbus_connection_close_if_only_one_ref):
      	Add a hack to make DBusNewConnectionFunction work right.
      	* dbus/dbus-server-socket.c (handle_new_client_fd_and_unlock): use
      	the hack here. Also, fix the todo about refcount leak.
      	* dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
      	and use the hack here
              * dbus/dbus-connection.c: Kill the "shared" flag vs. the
      	"shareable" flag; this was completely broken, since it meant
      	dbus_connection_open() returned a connection of unknown
      	shared-ness. Now, we always hold a ref on anything opened
      	as shareable.
      	Move the call to notify dbus-bus.c into
      	connection_forget_shared_unlocked, so libdbus consistently forgets
      	all its knowledge of a connection at once. This exposed numerous
      	places where things were totally broken if we dropped a ref inside
      	get_dispatch_status_unlocked where
      	connection_forget_shared_unlocked was previously, so move
      	connection_forget_shared_unlocked into
      	_dbus_connection_update_dispatch_status_and_unlock. Also move the
      	exit_on_disconnect here.
      	(shared_connections_shutdown): this assumed weak refs to the
      	shared connections; since we have strong refs now, the assertion
      	was failing and stuff was left in the hash. Fix it to close
      	still-open shared connections.
      	* bus/dispatch.c: fixup to use dbus_connection_open_private on the
      	debug pipe connections
      	* dbus/dbus-connection.c (dbus_connection_dispatch): only notify
      	dbus-bus.c if the closed connection is in fact shared
      	(_dbus_connection_close_possibly_shared): rename from
      	(dbus_connection_close, dbus_connection_open,
      	dbus_connection_open_private): Improve docs to explain the deal
      	with when you should close or unref or both
      	* dbus/dbus-bus.c
      	(_dbus_bus_notify_shared_connection_disconnected_unlocked): rename
      	from _dbus_bus_check_connection_and_unref_unlocked and modify to
      	loop over all connections
      	* test/test-utils.c (test_connection_shutdown): don't try to close
      	shared connections.
      	* test/name-test/test-threads-init.c (main): fix warnings in here
      	* dbus/dbus-sysdeps.c (_dbus_abort): support DBUS_BLOCK_ON_ABORT
      	env variable to cause blocking waiting for gdb; drop
      	DBUS_PRINT_BACKTRACE and just call _dbus_print_backtrace()
      	* configure.in: add -export-dynamic to libtool flags if assertions enabled
      	so _dbus_print_backtrace works.
      	* dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): use fprintf
      	instead of _dbus_verbose to print the backtrace, and diagnose lack
      	of -rdynamic/-export-dynamic
    • Havoc Pennington's avatar
      2006-09-30 Havoc Pennington <hp@redhat.com> · eef10bc3
      Havoc Pennington authored
      	* dbus/dbus-bus.c (dbus_bus_get_private, dbus_bus_get)
      	(internal_bus_get): fix screwy code formatting. whoever committed
      	that was not paying attention!
  25. 30 Sep, 2006 1 commit
    • Thiago Macieira's avatar
      * configure.in: add DBUS_BINDIR as a #define to C source code. · f6fa0104
      Thiago Macieira authored
      	* tools/dbus-launch.c
      	* tools/dbus-launch.h
      	* tools/dbus-launch-x11.c:
      	* tools/dbus-launch.1: Add the --autolaunch option to
      	dbus-launch, which makes it scan for an existing session
      	started with --autolaunch. With that option, it also creates
      	an X11 window and saves the bus address and PID to it.
      	* dbus/dbus-sysdeps.h:
      	* dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): Add
      	a function that runs "dbus-launch --autolaunch" to retrieve
      	the running D-Bus session address (or start one if none was running)
      	* dbus/dbus-transport.c: Add the handler for the "autolaunch:"
              address protocol, which tries to get the running session from
      	* dbus/dbus-bus.c:
      	* dbus/dbus-internals.h: Make "autolaunch:" be the default
      	D-Bus session bus address.
      	* dbus/dbus-connection.c: Fix horrible typo in error message.
  26. 16 Sep, 2006 1 commit
    • Havoc Pennington's avatar
      2006-09-16 Havoc Pennington <hp@redhat.com> · e001455a
      Havoc Pennington authored
              Attempt auditing public API to remove all cases where a Unix
      	function returns weird emulated goo to Windows. This probably
      	breaks the bus daemon on Windows, to fix it again we may
      	need to stop processing unix-specific config options on Windows,
      	and may need to add Windows-specific public API or config options.
      	* configure.in (LT_CURRENT, LT_AGE): increment current and age,
      	to reflect added interfaces; should not break soname.
      	* dbus/dbus-transport.c (_dbus_transport_get_is_authenticated): do
      	not invoke unix user function on Windows. Kind of a hacky fix, but
      	we don't want a "unix uid" leaking out on Windows.
      	* dbus/dbus-connection.c (dbus_connection_get_socket): add new API
      	to get the socket fd on Windows or UNIX
      	(dbus_connection_get_unix_fd): make this always fail on Windows
  27. 06 Sep, 2006 1 commit
    • John Palmieri's avatar
      * doc/TODO: · 1eae1844
      John Palmieri authored
      - Remove pending call locking todo item
      - dbus_connection_open now holds hard ref.  Remove todo item
      - do proper locking on _dbus_bus_check_connection_and_unref
        and handle DBUS_BUS_STARTER. Remove todo item
      - Warn on closing of a shared connection.  Remove todo item
      * bus/bus.c, bus/connection.c, bus/dispatch.c, dbus/dbus-bus.c,
        dbus/dbus-connection.c: Use the dbus_connection_close_internal
        so we don't get the warning when closing shared connections
      * test/test-service.c, test/test-shell-service.c: Applications
        don't close shared connections themselves so we unref instead of
      * test/test-utils.c (test_connection_shutdown): Close the connection
      * dbus/dbus-bus.c (_dbus_bus_check_connection_and_unref): Changed to
        _dbus_bus_check_connection_and_unref_unlocked since we only call this
        method on a locked connection.
        Make sure we call _dbus_connection_unref_unlocked instead of
        dbus_connection_unref also.
        Handle DBUS_BUS_STARTER correctly
      * dbus/dbus-connection.c (connection_record_shared_unlocked):
        Mark as shared and hard ref the connection
        (connection_forget_shared_unlocked): Remove the hard ref from the
        (_dbus_connection_close_internal_and_unlock):  New internal function
        which takes a locked connection and unlocks it after closing it
        (_dbus_connection_close_internal): New internal function which acts
        like the origonal dbus_connection_close method by grabbing a connection
        lock and calling _dbus_connection_close_internal_and_unlock
        (dbus_connection_close): Public close method, warns when the app
        trys to close a shared connection
  28. 14 Aug, 2006 1 commit
    • John Palmieri's avatar
      * dbus/dbus-bus.c: · 2592a2ab
      John Palmieri authored
              * test/name-test/test-names.c:
              Remove test method dbus_bus_connection_get_unique_name because
              we already have public method dbus_bus_get_unique_name that
              does the exact same thing
  29. 03 Aug, 2006 1 commit
  30. 17 Jul, 2006 1 commit
    • John Palmieri's avatar
      * doc/TODO: · b459906a
      John Palmieri authored
      * dbus/dbus-bus.c:
      * dbus-errors.c:
      * dbus/dbus-marshal-validate.c:
        Removed TODO items which were fixed or are no longer relevent
  31. 07 Jul, 2006 1 commit
    • John Palmieri's avatar
      * dbus/dbus-connection.c (dbus_connection_close): removed deprecated · 50f88a03
      John Palmieri authored
        (dbus_connection_dispatch): On disconnect unref any shared connections
      * dbus/dbus-bus.c (_dbus_bus_check_connection_and_unref): new function
        for cleaning up shared connections on disconnect
        (internal_bus_get): get a hard refrence to shared connections when
        they are created
      * doc/TODO: Remove items which are no longer relevent or have been fixed
        Split 1.0 todo items with a 0.90 freeze todo list
  32. 03 May, 2006 1 commit
  33. 26 Feb, 2006 1 commit
    • Havoc Pennington's avatar
      2006-02-26 Havoc Pennington <hp@redhat.com> · f46701b4
      Havoc Pennington authored
      	* bus/dbus-daemon.1.in: improve the language in a couple spots I noticed
      	* dbus/dbus-bus.c (internal_bus_get): in the error message if the
      	session bus variable is unset, suggest "man dbus-launch" and "man
      	dbus-daemon" to figure out how to fix the problem
  34. 19 Dec, 2005 1 commit