forked from drath/libratbag
drv-hidpp20: implement set_current_profile()
Only enabled for PROFILES_8100. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -386,6 +386,16 @@ hidpp20_onboard_profiles_destroy(struct hidpp20_device *device,
|
||||
*/
|
||||
int hidpp20_onboard_profiles_get_current_profile(struct hidpp20_device *device);
|
||||
|
||||
/**
|
||||
* Sets the current profile index.
|
||||
* Indexes are 1-indexed.
|
||||
*
|
||||
* return 0 or a negative error.
|
||||
*/
|
||||
int
|
||||
hidpp20_onboard_profiles_set_current_profile(struct hidpp20_device *device,
|
||||
uint8_t index);
|
||||
|
||||
/**
|
||||
* parse a given profile from the mouse and fill in the right profile in
|
||||
* profiles_list.
|
||||
|
||||
Reference in New Issue
Block a user