mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Add a FIXME note to ratbag_profile_set_default/is_default
The etekcity seems to use the last profile as default. The G500s apparently always comes up with the same profile but it's unclear if it's changeable. This function may need to be removed later. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -682,6 +682,8 @@ ratbag_profile_is_active(struct ratbag_profile *profile)
|
||||
LIBRATBAG_EXPORT int
|
||||
ratbag_profile_is_default(struct ratbag_profile *profile)
|
||||
{
|
||||
/* FIXME: unclear if any device actually supports this function */
|
||||
|
||||
return profile->is_default;
|
||||
}
|
||||
|
||||
@@ -739,6 +741,8 @@ ratbag_profile_set_default(struct ratbag_profile *profile)
|
||||
struct ratbag_profile *p;
|
||||
int rc;
|
||||
|
||||
/* FIXME: unclear if any device actually supports this function */
|
||||
|
||||
assert(device->driver->write_profile);
|
||||
rc = device->driver->write_profile(profile);
|
||||
if (rc)
|
||||
|
||||
Reference in New Issue
Block a user