diff options
author | David Zeuthen <davidz@redhat.com> | 2005-06-06 18:55:22 +0000 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2005-06-06 18:55:22 +0000 |
commit | 982de71850996f01c244429809ba23f715353ea3 (patch) | |
tree | 61f5e769a0eacb1edb55d9bad76b0d6d0f266bcc | |
parent | b079ae2e34a9297eae9b762aa641773624f88ea5 (diff) |
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.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | dbus/dbus-connection.c | 12 | ||||
-rw-r--r-- | dbus/dbus-connection.h | 1 | ||||
-rw-r--r-- | doc/TODO | 2 |
4 files changed, 24 insertions, 0 deletions
@@ -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, @@ -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 |