1
0
forked from drath/libratbag

hidpp10: add hidpp10_close_lock

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2015-10-23 11:11:13 +10:00
parent e769108bf6
commit a5ee32eac8
2 changed files with 14 additions and 0 deletions

View File

@@ -1066,6 +1066,17 @@ hidpp10_open_lock(struct hidpp10_device *device, uint8_t timeout)
return hidpp10_request_command(device, &open_lock);
}
int
hidpp10_close_lock(struct hidpp10_device *device)
{
union hidpp10_message open_lock = CMD_DEVICE_CONNECTION_DISCONNECTION(0x00,
CONNECT_DEVICES_CLOSE_LOCK,
0);
return hidpp10_request_command(device, &open_lock);
}
int hidpp10_disconnect(struct hidpp10_device *device, int idx) {
union hidpp10_message disconnect = CMD_DEVICE_CONNECTION_DISCONNECTION(idx + 1, CONNECT_DEVICES_DISCONNECT, 0x00);

View File

@@ -474,6 +474,9 @@ hidpp10_read_memory(struct hidpp10_device *dev,
int
hidpp10_open_lock(struct hidpp10_device *device, uint8_t timeout);
int
hidpp10_close_lock(struct hidpp10_device *device);
int
hidpp10_disconnect(struct hidpp10_device *device, int idx);