2 * Copyright 2016 Samsung Electronics Co., Ltd
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include <sys/types.h>
20 #ifndef BADGE_SERVICE_H_
21 #define BADGE_SERVICE_H_
27 int badge_service_init(void);
28 int badge_service_fini(void);
30 int badge_get_badge_existing(GVariant *parameters, GVariant **reply_body, uid_t uid);
31 int badge_get_badge_list(GVariant *parameters, GVariant **reply_body, uid_t uid);
32 int badge_insert(GVariant *parameters, GVariant **reply_body, uid_t uid);
33 int badge_delete(GVariant *parameters, GVariant **reply_body, uid_t uid, pid_t pid);
34 int badge_set_badge_count(GVariant *parameters, GVariant **reply_body, uid_t uid, pid_t pid);
35 int badge_get_badge_count(GVariant *parameters, GVariant **reply_body, uid_t uid);
36 int badge_set_display_option(GVariant *parameters, GVariant **reply_body, uid_t uid);
37 int badge_get_display_option(GVariant *parameters, GVariant **reply_body, const gchar *sender, uid_t uid);
38 int badge_update_badge_setting(GVariant *parameters, GVariant **reply_body, uid_t uid);
39 int badge_get_setting_by_appid(GVariant *parameters, GVariant **reply_body, uid_t uid);
40 int badge_init_display(GVariant *parameters, GVariant **reply_body, uid_t uid);
41 int badge_register_dbus_interface();
47 #endif // BADGE_SERVICE_H_