mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Move the set-default-profile capability into the profiles
Theoretical case is where some profiles cannot be set to be the default, but realistically: this is a profile-specific attribute so let's move the flag there. Arguably, the DBus API should not expose SetDefault() where not available, but that's a separate issue. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -138,13 +138,6 @@ enum ratbag_device_capability {
|
||||
*/
|
||||
RATBAG_DEVICE_CAP_PROFILE_DISABLE,
|
||||
|
||||
/**
|
||||
* The device can have one profile assigned as a default profile.
|
||||
* A default profile is the profile that is selected when the device
|
||||
* is plugged in. Devices without this capability may select the
|
||||
* last-used profile or a specific profile (usually the first).
|
||||
*/
|
||||
RATBAG_DEVICE_CAP_PROFILE_DEFAULT,
|
||||
|
||||
/**
|
||||
* The device provides read and/or write access to one or more
|
||||
@@ -183,6 +176,15 @@ enum ratbag_profile_capability {
|
||||
* and will be committed to it after a commit only.
|
||||
*/
|
||||
RATBAG_PROFILE_CAP_WRITABLE_NAME = 100,
|
||||
|
||||
/**
|
||||
* This profile can be assigned as the default profile. A default
|
||||
* profile is the profile that is selected when the device
|
||||
* is plugged in. Where no profile is assigned as the default
|
||||
* profile, the device either picks last-used profile or a specific
|
||||
* profile (usually the first).
|
||||
*/
|
||||
RATBAG_PROFILE_CAP_SET_DEFAULT,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user