summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--dbus/dbus-connection.c12
-rw-r--r--dbus/dbus-connection.h1
-rw-r--r--doc/TODO2
4 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 48dffacc..bf71a3b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-06-06 David Zeuthen <davidz@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.
+
2005-06-02 John (J5) Palmieri <johnp@redhat.com>
* dbus/dbus-connection.c, dbus/dbus-connection.h
diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c
index 13aed451..b2bc6a73 100644
--- a/dbus/dbus-connection.c
+++ b/dbus/dbus-connection.c
@@ -1947,6 +1947,18 @@ dbus_connection_close (DBusConnection *connection)
_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)
{
diff --git a/dbus/dbus-connection.h b/dbus/dbus-connection.h
index 8949f432..70369d3f 100644
--- a/dbus/dbus-connection.h
+++ b/dbus/dbus-connection.h
@@ -94,6 +94,7 @@ DBusConnection* dbus_connection_open_private (const char
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,
diff --git a/doc/TODO b/doc/TODO
index 368e9f15..28a772d5 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -1,6 +1,8 @@
Important for 1.0
===
+ - Remove all deprecated functions
+
- Audit @todo and FIXME for security issues
- The convenience functions in dbus-bus.h should perhaps have