From 818548335c3aa9eff21e569e8f3148663b28af1a Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 24 Jan 2007 17:26:44 +0000 Subject: [PATCH] Device unplug method removed: RemoveDevice is going to address this functionality --- input/input-api.txt | 4 ---- input/input-service.c | 15 --------------- 2 files changed, 19 deletions(-) diff --git a/input/input-api.txt b/input/input-api.txt index d947d4899..42ce2755c 100644 --- a/input/input-api.txt +++ b/input/input-api.txt @@ -70,10 +70,6 @@ Methods string GetAddress() Disconnect from the input device. - void Unplug() - - Unplug the virtual cable device. - void SetTimeout(uint32 timeout) Set the idle timeout. diff --git a/input/input-service.c b/input/input-service.c index def6248da..1c3bb6048 100644 --- a/input/input-service.c +++ b/input/input-service.c @@ -761,18 +761,6 @@ static DBusHandlerResult device_disconnect(DBusConnection *conn, dbus_message_new_method_return(msg)); } -static DBusHandlerResult device_unplug(DBusConnection *conn, - DBusMessage *msg, void *data) -{ - struct input_device *idev = data; - - if (disconnect(idev, (1 << HIDP_VIRTUAL_CABLE_UNPLUG)) < 0) - return err_failed(conn, msg, strerror(errno)); - - return send_message_and_unref(conn, - dbus_message_new_method_return(msg)); -} - static DBusHandlerResult device_is_connected(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -851,9 +839,6 @@ static DBusHandlerResult device_message(DBusConnection *conn, if (strcmp(member, "Disconnect") == 0) return device_disconnect(conn, msg, data); - if (strcmp(member, "Unplug") == 0) - return device_unplug(conn, msg, data); - if (strcmp(member, "IsConnected") == 0) return device_is_connected(conn, msg, data);