mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
Device unplug method removed: RemoveDevice is going to address this functionality
This commit is contained in:
parent
7bd6035a57
commit
818548335c
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user