4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Youngjoo Park <yjoo93.park@samsung.com>,
7 * Seungtaek Chung <seungtaek.chung@samsung.com>, Youngsub Ko <ys4610.ko@samsung.com>
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 #ifndef __BADGE_IPC_H__
24 #define __BADGE_IPC_H__
28 #define BADGE_ADDR "/tmp/.badge.service"
36 int badge_ipc_monitor_init(void);
37 int badge_ipc_monitor_fini(void);
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);
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));
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);