Find a file
John (J5) Palmieri 1a163e765c * configure.in: Add test/name-test/Makefile to the generated
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
2005-11-22 20:37:00 +00:00
bus * configure.in: Add test/name-test/Makefile to the generated 2005-11-22 20:37:00 +00:00
dbus * configure.in: Add test/name-test/Makefile to the generated 2005-11-22 20:37:00 +00:00
doc * configure.in: Add test/name-test/Makefile to the generated 2005-11-22 20:37:00 +00:00
gcj * Released 0.50 2005-09-06 22:38:54 +00:00
glib * configure.in: Add test/name-test/Makefile to the generated 2005-11-22 20:37:00 +00:00
mono 2005-09-08 Joe Shaw <joeshaw@novell.com> 2005-09-08 18:54:42 +00:00
python 2005-11-15 Robert McQueen <robot101@debian.org> 2005-11-15 17:19:19 +00:00
qt bring Qt3 library back. Some apps that are not in the KDE trunk are using it. 2005-09-30 15:20:08 +00:00
qt3 bring Qt3 library back. Some apps that are not in the KDE trunk are using it. 2005-09-30 15:20:08 +00:00
test * configure.in: Add test/name-test/Makefile to the generated 2005-11-22 20:37:00 +00:00
tools 2005-10-29 Robert McQueen <robot101@debian.org> 2005-10-29 17:02:58 +00:00
.cvsignore 2003-02-16 Havoc Pennington <hp@pobox.com> 2003-02-16 07:20:54 +00:00
acinclude.m4 2003-09-21 Seth Nickell <seth@gnome.org> 2003-09-22 05:45:59 +00:00
AUTHORS * bus/driver.c (bus_driver_handle_reload_config): Make sure we send an 2005-11-07 21:57:13 +00:00
autogen.sh 2005-01-30 Havoc Pennington <hp@redhat.com> 2005-01-31 02:55:12 +00:00
ChangeLog * configure.in: Add test/name-test/Makefile to the generated 2005-11-22 20:37:00 +00:00
configure.in * configure.in: Add test/name-test/Makefile to the generated 2005-11-22 20:37:00 +00:00
COPYING 2004-08-09 Havoc Pennington <hp@redhat.com> 2004-08-10 03:07:01 +00:00
dbus-1.pc.in * Integrate patches from Lennart Poettering <mzsqb at 0pointer.de>: 2005-09-26 18:49:53 +00:00
dbus-glib-1.pc.in 2003-06-22 Anders Carlsson <andersca@codefactory.se> 2003-06-22 06:53:42 +00:00
dbus-sharp.pc.in Remove glib-sharp from Libs flag. 2004-06-10 12:55:28 +00:00
Doxyfile.in 2004-06-02 Kristian Høgsberg <krh@redhat.com> 2004-06-02 13:13:14 +00:00
HACKING * News: Update 0.32 2005-03-29 18:27:35 +00:00
INSTALL initial import of "dbus" skeleton 2002-11-21 16:41:33 +00:00
Makefile.am bring Qt3 library back. Some apps that are not in the KDE trunk are using it. 2005-09-30 15:20:08 +00:00
Makefile.cvs Match kde schematics 2003-11-23 08:07:04 +00:00
NEWS * Released 0.50 2005-09-06 22:38:54 +00:00
README add a couple of notes about libdbus vs. bindings 2004-08-10 02:18:37 +00:00
update-dbus-docs.sh 2005-01-21 Havoc Pennington <hp@redhat.com> 2005-01-21 06:18:04 +00:00

D-BUS is a simple IPC library based on messages.

See also the file HACKING for notes of interest to developers working on D-BUS.

See http://www.freedesktop.org/software/dbus/ for lots of documentation, 
mailing lists, etc.

Note
===

A core concept of the D-BUS implementation is that "libdbus" is
intended to be a low-level API, similar to Xlib. Most programmers are
intended to use the bindings to GLib, Qt, Python, Mono, Java, or
whatever. These bindings have varying levels of completeness.

Configuration flags
===

These are the dbus-specific configuration flags that can be given to
the ./configure program.

  --enable-qt      enable Qt-friendly client library
  --enable-glib    enable GLib-friendly client library
  --enable-mono    enable mono bindings
  --enable-mono-docs build mono documentation (requires monodoc)
  --enable-tests   enable unit test code
  --enable-ansi    enable -ansi -pedantic gcc flags
  --enable-verbose-mode support verbose debug mode
  --enable-asserts include assertion checks
  --enable-checks  include sanity checks on public API
  --enable-docs    build documentation (requires Doxygen and jade)
  --enable-gcov    compile with coverage profiling instrumentation (gcc only)
  --enable-python  build python bindings (reqires Pyrex >= 0.9)

  --with-xml=libxml/expat           XML library to use
  --with-init-scripts=redhat        Style of init scripts to install
  --with-session-socket-dir=dirname Where to put sockets for the per-login-session message bus
  --with-test-socket-dir=dirname    Where to put sockets for make check
  --with-system-pid-file=pidfile    PID file for systemwide daemon
  --with-system-socket=filename     UNIX domain socket for systemwide daemon


API/ABI Policy
===

D-BUS API/ABI and protocol necessarily remain in flux until we are
sure it will meet the various needs it's intended to meet. This means
we need to see some significant sample usage in the contexts of GNOME,
KDE, desktop applications, and systemwide uses such as print queue
monitoring, hotplug events, or whatever. We need the flexibility to
incorporate feedback from this sample usage.

Once we feel confident in the protocol and the API, we will release a 
version 1.0. At that point, the intent is:

 - The protocol will never be broken again; any message bus should 
   work with any client forever. However, extensions are possible
   where the protocol is extensible.

 - If the library API is modified incompatibly, we will rename it 
   as in http://ometer.com/parallel.html - in other words, 
   it will always be possible to compile against and use the older 
   API, and apps will always get the API they expect.

Until 1.0 is released, feedback that requires API changes may be
incorporated into D-BUS. This may break the API, the ABI, the
protocol, or all three.

To avoid a huge soname, the plan is to increment the soname only
between official stable releases, not with every development snapshot.
Versions numbered 0.x are considered development snapshots.

Until 1.0 is released, you have to define -DDBUS_API_SUBJECT_TO_CHANGE
just as a safety check to be sure everyone is aware of this API/ABI
policy and has the right expectations.

We do need people to test the APIs, so please do use the development
snapshots of D-BUS. They are intended to work and we do actively
address bugs.

However, if you're shipping a commercial binary-only application that
needs to keep running on M future versions of N operating systems, you
might want to include your own copy of D-BUS rather than relying on
the installed copy, for example.