dbus/dbus dbus-connection.c, 1.106, 1.107 dbus-connection.h, 1.38, 1.39

David Zeuthen david at freedesktop.org
Mon Jun 6 11:55:25 PDT 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv32185/dbus

Modified Files:
	dbus-connection.c dbus-connection.h 
Log Message:
2005-06-06  David Zeuthen  <davidz at redhat.com>

        * doc/TODO: Add item about need to remove deprecated functions.

        * dbus/dbus-connection.h: Add prototype for dbus_connection_disconnect

        * dbus/dbus-connection.c (dbus_connection_disconnect): New function
        to repair the ABI which was broken with the last commit.



Index: dbus-connection.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-connection.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- dbus-connection.c	2 Jun 2005 17:41:04 -0000	1.106
+++ dbus-connection.c	6 Jun 2005 18:55:22 -0000	1.107
@@ -1947,6 +1947,18 @@
   _dbus_connection_update_dispatch_status_and_unlock (connection, status);
 }
 
+/** Alias for dbus_connection_close(). This method is DEPRECATED and will be
+ *  removed for 1.0. Change your code to use dbus_connection_close() instead.
+ *
+ * @param connection the connection.
+ * @deprecated
+ */
+void
+dbus_connection_disconnect (DBusConnection *connection)
+{
+  dbus_connection_close (connection);
+}
+
 static dbus_bool_t
 _dbus_connection_get_is_connected_unlocked (DBusConnection *connection)
 {

Index: dbus-connection.h
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-connection.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- dbus-connection.h	2 Jun 2005 17:41:04 -0000	1.38
+++ dbus-connection.h	6 Jun 2005 18:55:22 -0000	1.39
@@ -94,6 +94,7 @@
 DBusConnection*    dbus_connection_ref                          (DBusConnection             *connection);
 void               dbus_connection_unref                        (DBusConnection             *connection);
 void               dbus_connection_close                        (DBusConnection             *connection);
+void               dbus_connection_disconnect                   (DBusConnection             *connection);
 dbus_bool_t        dbus_connection_get_is_connected             (DBusConnection             *connection);
 dbus_bool_t        dbus_connection_get_is_authenticated         (DBusConnection             *connection);
 void               dbus_connection_set_exit_on_disconnect       (DBusConnection             *connection,



More information about the dbus-commit mailing list