Device unplug method removed: RemoveDevice is going to address this functionality

This commit is contained in:
Claudio Takahasi 2007-01-24 17:26:44 +00:00
parent 7bd6035a57
commit 818548335c
2 changed files with 0 additions and 19 deletions

View File

@ -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.

View File

@ -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);