1
0
forked from drath/libratbag

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:
Peter Hutterer
2015-09-03 13:08:39 +10:00
parent 7a5db3d995
commit 2a5dca5084

View File

@@ -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)