dbus/doc TODO,1.71,1.72

Havoc Pennington hp at freedesktop.org
Fri Feb 25 22:37:48 PST 2005


Update of /cvs/dbus/dbus/doc
In directory gabe:/tmp/cvs-serv8168/doc

Modified Files:
	TODO 
Log Message:
2005-02-26  Havoc Pennington  <hp at redhat.com>

	* doc/TODO: remove the "guid" item

	* test/glib/test-profile.c (no_bus_thread_func): use open_private
	(with_bus_thread_func): use open_private

	* dbus/dbus-connection.c (dbus_connection_open_private): new
	function that works like the old dbus_connection_open()
	(dbus_connection_open): now returns an existing connection if
	possible

	* dbus/dbus-server-unix.c (handle_new_client_fd_and_unlock): pass
	through the GUID to the transport

	* dbus/dbus-server.c (_dbus_server_init_base): keep around the
	GUID in hex-encoded form.

	* dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
	pass GUID argument in to the transport

	* dbus/dbus-transport-unix.c (_dbus_transport_new_for_fd): add
	guid argument

	* dbus/dbus-transport.c (_dbus_transport_init_base): add guid argument

	* dbus/dbus-auth.c (_dbus_auth_server_new): add guid argument



Index: TODO
===================================================================
RCS file: /cvs/dbus/dbus/doc/TODO,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- TODO	24 Feb 2005 19:13:37 -0000	1.71
+++ TODO	26 Feb 2005 06:37:46 -0000	1.72
@@ -33,21 +33,9 @@
 
  - dbus-pending-call.c has some API and thread safety issues to review
 
- - make dbus_connection_open() return a shared connection from a pool.
-   Add dbus_connection_open_private() that works like the current one.
-   To do this, each DBusServer could have a 128-bit GUID. This GUID
-   would be in the address from dbus_server_get_address(). On
-   connection to a server, the GUID would be provided as the first
-   thing in the auth protocol, and verified vs. the expected GUID if a
-   GUID was in the address used to connect. A hash from GUID to
-   connection would be kept, so attempts to connect to a GUID already
-   in the hash would return a shared existing connection.
-
-   The purpose of all this is to allow a dbus_g_proxy_to_string() that
-   would convert the proxy to an "IOR" and dbus_g_proxy_from_string()
-   that would decode; using these, dbus-glib users could avoid
-   DBusConnection entirely. Of course the same applies to other kinds
-   of binding.
+ - transmit GUID from server to client in the auth protocol, so 
+   connections can be shared even if the address used to connect
+   to them didn't have a GUID in it.
 
 Important for 1.0 GLib Bindings
 ===
@@ -74,6 +62,13 @@
 Can Be Post 1.0
 ===
 
+ - Allow a dbus_g_proxy_to_string()/g_object_to_string() that
+   would convert the proxy to an "IOR" and dbus_g_proxy_from_string()
+   that would decode; using these, dbus-glib users could avoid
+   DBusConnection entirely. Of course the same applies to other kinds
+   of binding. This would use dbus_connection_open()'s connection-sharing
+   feature to avoid massive proliferation of connections.
+
  - DBusWatchList/TimeoutList duplicate a lot of code, as do
    protected_change_watch/protected_change_timeout in dbus-connection.c
    and dbus-server.c. This could all be mopped up, cut-and-paste 



More information about the dbus-commit mailing list