From: Son seungha Date: Mon, 24 Oct 2016 10:10:58 +0000 (+0900) Subject: Remove unnecessary APIs X-Git-Tag: accepted/tizen/3.0/common/20161114.082829^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F93462%2F1;p=platform%2Fcore%2Fappfw%2Fbadge.git Remove unnecessary APIs - APIs related with badge property Signed-off-by: Son seungha Change-Id: I15639c2eff8dd818ff4a9cba936089ec71a925b9 --- diff --git a/include/badge_ipc.h b/include/badge_ipc.h index ffcfb99..c02eb08 100755 --- a/include/badge_ipc.h +++ b/include/badge_ipc.h @@ -48,9 +48,6 @@ int badge_ipc_is_master_ready(void); int badge_ipc_add_deferred_task(void (*badge_add_deferred_task)(void *data), void *user_data); int badge_ipc_del_deferred_task(void (*badge_add_deferred_task)(void *data)); -int badge_ipc_setting_property_set(const char *pkgname, const char *property, const char *value, uid_t uid); -int badge_ipc_setting_property_get(const char *pkgname, const char *property, char **value, uid_t uid); - int badge_ipc_request_get_list(badge_foreach_cb callback, void *data, uid_t uid); int badge_ipc_request_is_existing(const char *pkgname, bool *existing, uid_t uid); diff --git a/src/badge_ipc.c b/src/badge_ipc.c index 1e1da76..498776b 100755 --- a/src/badge_ipc.c +++ b/src/badge_ipc.c @@ -754,57 +754,3 @@ int badge_ipc_request_get_display(const char *pkgname, unsigned int *is_display, DBG("badge_ipc_request_get_display done [result: %d]", result); return result; } - -int badge_ipc_setting_property_set(const char *pkgname, const char *property, const char *value, uid_t uid) -{ - int result; - GDBusMessage *reply = NULL; - GVariant *body; - - result = _dbus_init(); - if (result != BADGE_ERROR_NONE) { - ERR("Can't init dbus %d", result); - return result; - } - body = g_variant_new("(sssi)", pkgname, property, value, uid); - - result = _send_sync_badge(body, &reply, "set_noti_property"); - if (reply) - g_object_unref(reply); - - DBG("badge_ipc_setting_property_set done [result: %d]", result); - return result; -} - -int badge_ipc_setting_property_get(const char *pkgname, const char *property, char **value, uid_t uid) -{ - int result; - GDBusMessage *reply = NULL; - GVariant *body; - GVariant *reply_body; - char *ret_val = NULL; - - result = _dbus_init(); - if (result != BADGE_ERROR_NONE) { - ERR("Can't init dbus %d", result); - return result; - } - body = g_variant_new("(ssi)", pkgname, property, uid); - - result = _send_sync_badge(body, &reply, "get_noti_property"); - if (result == BADGE_ERROR_NONE) { - reply_body = g_dbus_message_get_body(reply); - g_variant_get(reply_body, "(&s)", ret_val); - - if (ret_val != NULL) - *value = strdup(ret_val); - else - result = BADGE_ERROR_IO_ERROR; - } - if (reply) - g_object_unref(reply); - - DBG("badge_ipc_setting_property_get done [result: %d]", result); - return result; -} -