1. 18 Jul, 2011 4 commits
  2. 14 Jul, 2011 1 commit
  3. 10 Jun, 2011 12 commits
  4. 17 Feb, 2011 1 commit
  5. 01 Feb, 2011 1 commit
  6. 05 Oct, 2010 1 commit
  7. 10 Aug, 2010 1 commit
  8. 23 Mar, 2010 2 commits
  9. 01 Dec, 2009 1 commit
  10. 18 Sep, 2009 1 commit
  11. 30 May, 2008 1 commit
    • Colin Walters's avatar
      Add noinst convenience test library, add a test-shutdown · a73a79a1
      Colin Walters authored
      	* test/Makefile.am: New convenience library
      	libdbus_testutils_la.  Reorder build so that
      	test/ gets built before test/name-test so
      	name-test files can depend on it.
      	* test/name-test/test-shutdown.c: New file,
      	exercises dbus_shutdown () a bit.
      	* test/name-test/run-test.sh Run test-shutdown.
      	* test/test-utils.h: In some cases we already have
      	DBUS_COMPILATION defined, avoid double definition
      	warning.
      a73a79a1
  12. 24 Jul, 2007 1 commit
    • Richard Hughes's avatar
      2007-07-24 Richard Hughes <richard@hughsie.com> · 5cfa0506
      Richard Hughes authored
      * configure.in:
      * test/Makefile.am:
      * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS
      uiteNoExec.service.in:
      * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS
      uiteNoService.service.in:
      * test/data/invalid-service-files-system/org.freedesktop.DBus.TestS
      uiteNoUser.service.in:
      * test/data/valid-config-files-system/debug-allow-all-fail.conf.in:
      * test/data/valid-config-files-system/debug-allow-all-pass.conf.in:
      * test/data/valid-config-files/debug-allow-all-sha1.conf.in:
      * test/data/valid-config-files/debug-allow-all.conf.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teEchoService.service.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teSegfaultService.service.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teShellEchoServiceFail.service.in:
      * test/data/valid-service-files-system/org.freedesktop.DBus.TestSui
      teShellEchoServiceSuccess.service.in:
      * test/data/valid-service-files/debug-echo.service.in:
      * test/data/valid-service-files/debug-segfault.service.in:
      * test/data/valid-service-files/debug-shell-echo-fail.service.in:
      * test/data/valid-service-files/debug-shell-echo-success.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoS
      ervice.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfa
      ultService.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell
      EchoServiceFail.service.in:
      * test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShell
      EchoServiceSuccess.service.in:
      Add the data files needed by the system activation unit checks.
      5cfa0506
  13. 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
      54b94343
  14. 09 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-09 Havoc Pennington <hp@redhat.com> · 23832672
      Havoc Pennington authored
      	* bus/dispatch.c (check_get_connection_unix_process_id): adapt
      	since sysdeps-unix.h stuff isn't included anymore
      
      	* bus/bus.c (bus_context_new): use more abstract functions to
      	change user, so they can be no-ops on Windows
      
      	* dbus/dbus-credentials.c, dbus/dbus-credentials.h,
      	dbus/dbus-credentials-util.c: new files containing a fully opaque
      	DBusCredentials data type to replace the old not opaque one.
      
      	* configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on
      	windows
      
      	* dbus/dbus-userdb.h: prohibit on Windows, next step is to clean
      	up the uses of it in bus/*.c and factor out the parts of
      	cookie auth that depend on it
      23832672
  15. 04 Mar, 2007 1 commit
  16. 01 Oct, 2006 1 commit
    • 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_internal
      	(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()
      	unconditionally.
      
      	* 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
      a2129f7c
  17. 25 Aug, 2006 1 commit
  18. 14 Jul, 2006 1 commit
  19. 22 Nov, 2005 1 commit
    • John Palmieri's avatar
      * configure.in: Add test/name-test/Makefile to the generated · 1a163e76
      John Palmieri authored
      	Makefile list
      
      	* dbus/dbus-shared.h (#define DBUS_NAME_FLAG_ALLOW_REPLACEMENT):
      	New flag which replaces DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT
      	(#define DBUS_NAME_FLAG_DO_NOT_QUEUE): New flag for specifying
      	not to queue an ower if it can't be the primary owner
      
      	* bus/bus.h: Add new internal BusOwner struct
      
      	* bus/driver.c (bus_driver_handle_hello): Send flags (0 for default)
      	to bus_registry_ensure and don't set the prohibit_replacement flag
      	since they are now set per BusOwner and not per name.
      	(bus_driver_handle_list_queued_owners): bus method (ListQueuedOwners)
      	that returns the list of connections in a name's connection queue
      
      	* bus/services.c (struct BusService): remove prohibit_replacement field
      	(struct BusOwner): new struct for keeping track of queued connections
      	and their associated flags for the queue
      	(struct BusRegistry): add a BusOwner memory pool
      	(bus_registry_new): initialize the BusOwner memory pool
      	(bus_registry_unref): free the BusOwner memory pool
      	(_bus_service_find_owner_link): new internal method for
      	searching the queue for a specific connection
      	(bus_owner_set_flags): new method for adding setting the flags on a
      	bus owner
      	(bus_owner_new): new method that creates a BusOwner object from the
      	pool and sets its flags
      	(bus_owner_ref, bus_owner_unref): ref counting for BusOwner objects
      	(bus_registry_ensure): Add the flags parameter
      	(bus_registry_acquire_service): Switch from using raw connections to
      	using the BusOwner struct
      	Add new state machine for dealing with the new set of flags
      	(bus_registry_set_service_context_table, struct OwnershipCancelData,
      	cancel_ownership, free_ownership_cancel_data,
      	add_cancel_ownership_to_transaction, struct OwnershipRestoreData,
      	restore_ownership, free_ownership_restore_data,
      	add_restore_ownership_to_transaction): Switch to using BusOwner
      	instead of raw connections
      	(bus_service_add_owner): Add flags parameter
      	Switch to using BusOwner instead of raw connections
      	Add state machine for dealing with the new set of flags
      	(bus_service_swap_owner): Swaps the first and second owners in the
      	queue.  Used to make sure proper signals are sent when a service looses
      	or gains primary ownership.  We never insert an owner at the top of the
      	queue.  Instead we insert it in the second position and then swap.
      	(bus_service_remove_owner): Remove the owner from the queue sending
      	out the NameLost and NameOwnerChanged signals if the we were the
      	primary owner
      	(bus_service_get_primary_owners_connection): New method that extracts
      	the connection from the primary owner
      	(bus_service_get_primary_owner): Returns the BusOwner instead of the
      	connection
      	(bus_service_get_allow_replacement): Changed from the old
      	bus_service_get_prohibit_replacement method.  Checks the flags of the
      	primary owner and returns if it can be replaced or not
      	(bus_service_set_prohibit_replacement): removed
      	(bus_service_has_owner): returns TRUE if and owner with
      	the specified connection exists in the queue
      
      	* dbus/dbus-bus.c (dbus_bus_connection_get_unique_name): New helper
      	method that only compiles if tests are enabled.  Allows us to get the
      	unique name of a connection so we can check it against the queue when
      	doing regression tests
      
      	* bus/activation.c (bus_activation_send_pending_auto_activate),
      	bus/dispatch.c (bus_dispatch),
      	bus/driver.c (bus_driver_handle_get_service_owner,
      	bus_driver_handle_get_connection_unix_user,
      	bus_driver_handle_get_connection_unix_process_id,
      	bus_driver_handle_get_connection_selinux_security_context),
      	bus/signals.c (connection_is_primary_owner):
      	use bus_service_get_primary_owners_connection instead of
      	bus_service_get_primary_owner
      
      	* dbus/dbus-sysdeps.c (_dbus_connect_unix_socket,
      	_dbus_listen_unix_socket): Calculate the length of the socket
      	path and use that instead of using a fixed length which was
      	causing socket names to contain many trailing Nul bytes.
      
      	* dbus/dbus-glib-lowlevel.h, glib/dbus-gobject.c
      	(dbus_g_method_get_sender): New method for extracting the sender
      	from a DBusGMethodInvocation
      	(dbus_g_method_return_get_reply): changed name to
      	dbus_g_method_get_reply
      	(dbus_g_method_return_send_reply): changed name to
      	dbus_g_method_send reply
      
      	* doc/dbus-specification.xml: New docs that describe how the new
      	queueing system works and talks about the changes to the how
      	we specify socket names
      
      	* glib/examples/example-service.c,
      	glib/examples/example-signal-emitter.c,
      	glib/examples/statemachine/statemachine-server.c:
      	Changed the RequestName flags to the new system
      
      	* test/name-test/ (test-names.c, run-test.sh, Makefile.am): New
      	regression test suite for testing various states of the new
      	queueing system
      1a163e76
  20. 23 Sep, 2005 1 commit
  21. 12 Sep, 2005 1 commit
  22. 25 Aug, 2005 1 commit
  23. 14 Jul, 2005 1 commit
    • John Palmieri's avatar
      Checking in Rodrigo's patch along with my fixes to the patch · 075945f6
      John Palmieri authored
      2005-07-14  John (J5) Palmieri  <johnp@redhat.com>
      
      	* bus/activation.c: clean up all tabs to be 8 spaces
      	(bus_activation_activate_service): make sure we clean up
      	if activation fails
      
      	* bus/dispatch.c: clean up all tabs to be 8 spaces
      	(check_shell_fail_service_auto_start): New function
      	tests to make sure we get fail properly when trying to auto start a service
      	with a faulty command line
      	(check_shell_service_success_auto_start): New function tests to make sure
      	auto started services get the arguments on the command line
      
      	* test/test-shell-service.c: Added service for testing auto-starting with
      	command line arguments
      
      	* test/data/valid-service-files/debug-shell-echo-fail.service.in,
      	test/data/valid-service-files/debug-shell-echo-success.service.in:
      	Added service files for testing auto-starting with command line arguments
      
      	* */.cvsignore: added a bunch of generated files to various .cvsignore files
      
      2005-07-14  Rodrigo Moya  <rodrigo@novell.com>
      
      	* dbus/dbus-shell.[ch]: copy/pasted code from GLib.
      
      	* dbus/Makefile.am: added new files to build.
      
      	* bus/activation.c (bus_activation_activate_service): support
      	activation commands with parameters.
      
      	* test/shell-test.c: added test program for the shell parsing
      	code.
      075945f6
  24. 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
  25. 20 Sep, 2004 1 commit
    • Jon Trowbridge's avatar
      2004-09-20 Jon Trowbridge <trow@ximian.com> · 64b63e84
      Jon Trowbridge authored
      	    Patch from Nat Friedman <nat@novell.com>
      
      	    * mono/Makefile.am: A number of small build fixes to allow "make
      	    distcheck" to succeed.
      
      	    * mono/example/Makefile.am: "make distcheck" fixes.
      
      	    * mono/AssemblyInfo.cs.in: When signing the assembly, look for the
      	    key in @srcdir@.
      
      	    * test/Makefile.am: "make distcheck" fixes.
      64b63e84