From 2a5dca5084998b03e4f5ea395c90025871cba08e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Sep 2015 13:08:39 +1000 Subject: [PATCH] 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 --- src/libratbag.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libratbag.c b/src/libratbag.c index ffd4bd3b..28398b73 100644 --- a/src/libratbag.c +++ b/src/libratbag.c @@ -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)