summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-connection.c12
-rw-r--r--dbus/dbus-connection.h1
2 files changed, 13 insertions, 0 deletions
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,