diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-01-24 17:26:44 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-01-24 17:26:44 +0000 |
commit | 818548335c3aa9eff21e569e8f3148663b28af1a (patch) | |
tree | 9714633770914075549e1235963d8a63f015b7ac /input | |
parent | 7bd6035a5716abf76acf8fc5098c58068e376d59 (diff) |
Device unplug method removed: RemoveDevice is going to address this functionality
Diffstat (limited to 'input')
-rw-r--r-- | input/input-api.txt | 4 | ||||
-rw-r--r-- | input/input-service.c | 15 |
2 files changed, 0 insertions, 19 deletions
diff --git a/input/input-api.txt b/input/input-api.txt index d947d489..42ce2755 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 def6248d..1c3bb604 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); |