diff options
author | seungha.son <seungha.son@samsung.com> | 2016-10-18 22:54:27 +0900 |
---|---|---|
committer | seungha.son <seungha.son@samsung.com> | 2016-11-29 19:02:37 +0900 |
commit | e70a62a7fdce3e30eb446c2d25e767b9e4a60b58 (patch) | |
tree | 8afae44ed0454a9c37351cb963f81798c65b84cb /include/badge_setting_service.h | |
parent | fb792ee180a72eeb69208614c43ea809a3384da5 (diff) | |
download | badge-e70a62a7fdce3e30eb446c2d25e767b9e4a60b58.tar.gz badge-e70a62a7fdce3e30eb446c2d25e767b9e4a60b58.tar.bz2 badge-e70a62a7fdce3e30eb446c2d25e767b9e4a60b58.zip |
Adds APIs for Application detail settingsubmit/tizen_3.0/20161130.022513accepted/tizen/3.0/wearable/20161130.091020accepted/tizen/3.0/tv/20161130.091001accepted/tizen/3.0/mobile/20161130.090946accepted/tizen/3.0/ivi/20161130.091040accepted/tizen/3.0/common/20161130.133529
- Init badge setting db.
- Implement APIs related badge setting.
- Implement logic for setting db
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I9aafb8d9661b316cffaedca9ed5051f3bee355f5
Diffstat (limited to 'include/badge_setting_service.h')
-rw-r--r-- | include/badge_setting_service.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/badge_setting_service.h b/include/badge_setting_service.h new file mode 100644 index 0000000..de97921 --- /dev/null +++ b/include/badge_setting_service.h @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved. + * + * 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 __BADGE_SETTING_SERVICE_H__ +#define __BADGE_SETTING_SERVICE_H__ + +#include <stdbool.h> +#include <sys/types.h> +#include "badge_error.h" +#include "badge_setting.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @file badge_setting_service.h + * @brief This file contains the badge APIs. + */ + +/** + * @addtogroup BADGE_MODULE + * @{ + */ + +int badge_db_get_setting_by_appid(const char *appid, badge_setting_h *setting, uid_t uid); +int badge_db_get_allow_to_display_by_appid(char *appid, int *allow_to_display, uid_t uid); +int badge_setting_insert_package_for_uid(const char *pkgname, uid_t uid); +int badge_setting_delete_package_for_uid(const char *pkgname, uid_t uid); +int badge_setting_refresh_setting_table(uid_t uid); +int badge_db_update_setting(char *pkgname, char *appid, int allow_to_display, uid_t uid); + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __BADGE_SETTING_SERVICE_H__ */ + |