[RFC 2/2] sap-dummy: Remove DisconnectImmediate method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This function is now available as Terminate method in
org.bluez.SimAccess interface and is available with all sap drivers.
---
 sap/sap-dummy.c |   14 --------------
 1 file changed, 14 deletions(-)

diff --git a/sap/sap-dummy.c b/sap/sap-dummy.c
index acdec77..c129b72 100644
--- a/sap/sap-dummy.c
+++ b/sap/sap-dummy.c
@@ -258,19 +258,6 @@ static DBusMessage *max_msg_size(DBusConnection *conn, DBusMessage *msg,
 	return dbus_message_new_method_return(msg);
 }
 
-static DBusMessage *disconnect_immediate(DBusConnection *conn, DBusMessage *msg,
-						void *data)
-{
-	if (sim_card_conn_status == SIM_DISCONNECTED)
-		return g_dbus_create_error(msg, "org.bluez.Error.Failed",
-				"Already disconnected.");
-
-	sim_card_conn_status = SIM_DISCONNECTED;
-	sap_disconnect_ind(sap_data, SAP_DISCONNECTION_TYPE_IMMEDIATE);
-
-	return dbus_message_new_method_return(msg);
-}
-
 static DBusMessage *card_status(DBusConnection *conn, DBusMessage *msg,
 								void *data)
 {
@@ -318,7 +305,6 @@ static DBusMessage *card_status(DBusConnection *conn, DBusMessage *msg,
 static GDBusMethodTable dummy_methods[] = {
 	{ "OngoingCall", "b", "", ongoing_call},
 	{ "MaxMessageSize", "u", "", max_msg_size},
-	{ "DisconnectImmediate", "", "", disconnect_immediate},
 	{ "CardStatus", "u", "", card_status},
 	{ }
 };
-- 
on behalf of ST-Ericsson

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux