app-filter: Add mct_app_filter_is_enabled() API
This is a high-level API to indicate whether parental controls are ‘enabled’ for the given user. Specifically, whether any of the properties of the `MctAppFilter` differ from their default value. Includes tests. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
faa0b9a3eb
commit
f106319fdd
3 changed files with 112 additions and 0 deletions
|
@ -78,6 +78,9 @@ void mct_app_filter_unref (MctAppFilter *filter);
|
|||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MctAppFilter, mct_app_filter_unref)
|
||||
|
||||
uid_t mct_app_filter_get_user_id (MctAppFilter *filter);
|
||||
|
||||
gboolean mct_app_filter_is_enabled (MctAppFilter *filter);
|
||||
|
||||
gboolean mct_app_filter_is_path_allowed (MctAppFilter *filter,
|
||||
const gchar *path);
|
||||
gboolean mct_app_filter_is_flatpak_ref_allowed (MctAppFilter *filter,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue