diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2023-08-18 12:58:40 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2023-08-21 14:30:57 +0900 |
commit | 8721411b5fff98bf3c4487175fafabfb714ddee7 (patch) | |
tree | d4ebcc9ea3fbed427b7b6d2f4acb8ec0db794e35 /include/util | |
parent | a3a75b5c5c6f67a6d2868021a67681ed29c79c82 (diff) | |
download | libsvi-8721411b5fff98bf3c4487175fafabfb714ddee7.tar.gz libsvi-8721411b5fff98bf3c4487175fafabfb714ddee7.tar.bz2 libsvi-8721411b5fff98bf3c4487175fafabfb714ddee7.zip |
feedback: Add checking privilege for multi-theme support funcs
Setting feedback theme index is required "http://tizen.org/privilege/systemsettings.admin" privilege.
Getting feedback theme is required "http://tizen.org/privilege/internal/default/public".
If application has above privilege, setting/getting theme index is successful.
Change-Id: I5aad3f3138e0fe0d0211832300929d78a4d7d47b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
Diffstat (limited to 'include/util')
-rw-r--r-- | include/util/feedback-privilege.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/util/feedback-privilege.h b/include/util/feedback-privilege.h new file mode 100644 index 0000000..bdd1852 --- /dev/null +++ b/include/util/feedback-privilege.h @@ -0,0 +1,26 @@ + +/* + * libfeedback + * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __FEEDBACK_PRIVILEGE_H__ +#define __FEEDBACK_PRIVILEGE_H__ + +#include <stdbool.h> + +bool is_privilege_supported(const char *privilege_name); + +#endif //__FEEDBACK_PRIVILEGE_H__
\ No newline at end of file |