Remove unnecessary APIs 62/93462/1 accepted/tizen/3.0/common/20161114.082829 accepted/tizen/3.0/ivi/20161102.075742 accepted/tizen/3.0/mobile/20161102.075605 accepted/tizen/3.0/tv/20161102.075640 accepted/tizen/3.0/wearable/20161102.075714 accepted/tizen/common/20161031.121715 accepted/tizen/common/20161125.095319 accepted/tizen/common/20170111.155037 accepted/tizen/ivi/20161031.082320 accepted/tizen/ivi/20161106.235315 accepted/tizen/ivi/20161125.004212 accepted/tizen/mobile/20161031.082217 accepted/tizen/mobile/20161106.235222 accepted/tizen/mobile/20161125.003704 accepted/tizen/tv/20161031.082241 accepted/tizen/tv/20161106.235244 accepted/tizen/tv/20161125.003929 accepted/tizen/wearable/20161031.082300 accepted/tizen/wearable/20161106.235258 accepted/tizen/wearable/20161125.004052 submit/tizen/20161031.010650 submit/tizen/20161104.063455 submit/tizen/20161124.000829 submit/tizen_3.0/20161102.051512 submit/tizen_3.0_common/20161110.084657 submit/tizen_common/20170111.150147
authorSon seungha <seungha.son@samsung.com>
Mon, 24 Oct 2016 10:10:58 +0000 (19:10 +0900)
committerSon seungha <seungha.son@samsung.com>
Mon, 24 Oct 2016 10:16:04 +0000 (19:16 +0900)
 - APIs related with badge property

Signed-off-by: Son seungha <seungha.son@samsung.com>
Change-Id: I15639c2eff8dd818ff4a9cba936089ec71a925b9

include/badge_ipc.h
src/badge_ipc.c

index ffcfb99..c02eb08 100755 (executable)
@@ -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);
 
index 1e1da76..498776b 100755 (executable)
@@ -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;
-}
-