2fc87a400faec2632de6e00ec469d3ec7ad3c19d
[platform/core/appfw/badge.git] / include / badge_ipc.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 #ifndef __BADGE_IPC_H__
24 #define __BADGE_IPC_H__
25
26 #include <badge.h>
27
28 #define BADGE_ADDR "/tmp/.badge.service"
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 struct packet;
35
36 int badge_ipc_monitor_init(void);
37 int badge_ipc_monitor_fini(void);
38
39 int badge_ipc_request_insert(const char *pkgname, const char *writable_pkg, const char *caller);
40 int badge_ipc_request_delete(const char *pkgname, const char *caller);
41 int badge_ipc_request_set_count(const char *pkgname, const char *caller, int count);
42 int badge_ipc_request_set_display(const char *pkgname, const char *caller, int display_option);
43
44 int badge_ipc_is_master_ready(void);
45 int badge_ipc_add_deferred_task(void (*badge_add_deferred_task)(void *data), void *user_data);
46 int badge_ipc_del_deferred_task(void (*badge_add_deferred_task)(void *data));
47
48 int badge_ipc_setting_property_set(const char *pkgname, const char *property, const char *value);
49 int badge_ipc_setting_property_get(const char *pkgname, const char *property, char **value);
50
51 #ifdef __cplusplus
52 }
53 #endif
54 #endif