Initialize Tizen 2.3
[platform/core/appfw/badge.git] / include / badge_db.h
1 /*
2  *  libbadge
3  *
4  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Youngjoo Park <yjoo93.park@samsung.com>,
7  *      Seungtaek Chung <seungtaek.chung@samsung.com>, Youngsub Ko <ys4610.ko@samsung.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the License);
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an AS IS BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23
24 #ifndef __BADGE_DB_DEF_H__
25 #define __BADGE_DB_DEF_H__
26
27 #include <stdbool.h>
28 #include <sqlite3.h>
29 #include <badge_error.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 badge_error_e badge_db_insert(const char *pkgname, const char *writable_pkg, const char *caller);
36 badge_error_e badge_db_delete(const char *pkgname, const char *caller_pkg);
37 badge_error_e badge_db_set_count(const char *pkgname, const char *caller_pkg, int count);
38 badge_error_e badge_db_set_display_option(const char *pkgname, const char *caller_pkg, int is_display);
39 badge_error_e badge_db_exec(sqlite3 * db, const char *query, int *num_changes);
40
41 #ifdef __cplusplus
42         }
43 #endif
44
45 #endif /* __BADGE_DB_DEF_H__ */
46