summaryrefslogtreecommitdiff
path: root/include/badge_setting_service.h
diff options
context:
space:
mode:
authorseungha.son <seungha.son@samsung.com>2016-10-18 22:54:27 +0900
committerseungha.son <seungha.son@samsung.com>2016-11-29 19:02:37 +0900
commite70a62a7fdce3e30eb446c2d25e767b9e4a60b58 (patch)
tree8afae44ed0454a9c37351cb963f81798c65b84cb /include/badge_setting_service.h
parentfb792ee180a72eeb69208614c43ea809a3384da5 (diff)
downloadbadge-e70a62a7fdce3e30eb446c2d25e767b9e4a60b58.tar.gz
badge-e70a62a7fdce3e30eb446c2d25e767b9e4a60b58.tar.bz2
badge-e70a62a7fdce3e30eb446c2d25e767b9e4a60b58.zip
- 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.h56
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__ */
+