mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
profiles: add a per profile capabilities field
Doesn't do much now without the next commit Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
committed by
Peter Hutterer
parent
7c650aeeca
commit
97a927bb7d
@@ -70,6 +70,10 @@ test_read_profile(struct ratbag_profile *profile, unsigned int index)
|
||||
|
||||
profile->is_active = p->active;
|
||||
profile->is_enabled = !p->disabled;
|
||||
|
||||
for (i = 0; i < ARRAY_LENGTH(p->caps) && p->caps[i]; i++) {
|
||||
ratbag_profile_set_cap(profile, p->caps[i]);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user