mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
libratbag: add API for checking if profile is dirty
This commit is contained in:
@@ -825,6 +825,12 @@ ratbag_profile_is_active(struct ratbag_profile *profile)
|
||||
return !!profile->is_active;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT bool
|
||||
ratbag_profile_is_dirty(const struct ratbag_profile *profile)
|
||||
{
|
||||
return !!profile->dirty;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT bool
|
||||
ratbag_profile_is_enabled(const struct ratbag_profile *profile)
|
||||
{
|
||||
|
||||
@@ -702,6 +702,19 @@ ratbag_device_get_profile(struct ratbag_device *device, unsigned int index);
|
||||
bool
|
||||
ratbag_profile_is_active(struct ratbag_profile *profile);
|
||||
|
||||
/**
|
||||
* @ingroup profile
|
||||
*
|
||||
* Check if the given profile is dirty, that is, the device needs committing
|
||||
* after having configuration changes.
|
||||
*
|
||||
* @param profile A previously initialized ratbag profile
|
||||
*
|
||||
* @return non-zero if the profile is dirty, zero otherwise
|
||||
*/
|
||||
bool
|
||||
ratbag_profile_is_dirty(const struct ratbag_profile *profile);
|
||||
|
||||
/**
|
||||
* @ingroup profile
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user