forked from drath/libratbag
hidpp10: add hidpp10_close_lock
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user