diff options
author | Son seungha <seungha.son@samsung.com> | 2016-10-24 19:10:58 +0900 |
---|---|---|
committer | Son seungha <seungha.son@samsung.com> | 2016-10-24 19:16:04 +0900 |
commit | ee3b1afdd388e6d42f22dda1814fd92d7672571b (patch) | |
tree | 26a46f9b6bdeeeff50646ddf4333e7738b256d35 | |
parent | c05da09c8dd87288705fae69b0c1b648d9bb0379 (diff) | |
download | badge-ee3b1afdd388e6d42f22dda1814fd92d7672571b.tar.gz badge-ee3b1afdd388e6d42f22dda1814fd92d7672571b.tar.bz2 badge-ee3b1afdd388e6d42f22dda1814fd92d7672571b.zip |
Remove unnecessary APIssubmit/tizen_common/20170111.150147submit/tizen_3.0_common/20161110.084657submit/tizen_3.0/20161102.051512submit/tizen/20161124.000829submit/tizen/20161104.063455submit/tizen/20161031.010650accepted/tizen/wearable/20161125.004052accepted/tizen/wearable/20161106.235258accepted/tizen/wearable/20161031.082300accepted/tizen/tv/20161125.003929accepted/tizen/tv/20161106.235244accepted/tizen/tv/20161031.082241accepted/tizen/mobile/20161125.003704accepted/tizen/mobile/20161106.235222accepted/tizen/mobile/20161031.082217accepted/tizen/ivi/20161125.004212accepted/tizen/ivi/20161106.235315accepted/tizen/ivi/20161031.082320accepted/tizen/common/20170111.155037accepted/tizen/common/20161125.095319accepted/tizen/common/20161031.121715accepted/tizen/3.0/wearable/20161102.075714accepted/tizen/3.0/tv/20161102.075640accepted/tizen/3.0/mobile/20161102.075605accepted/tizen/3.0/ivi/20161102.075742accepted/tizen/3.0/common/20161114.082829
- APIs related with badge property
Signed-off-by: Son seungha <seungha.son@samsung.com>
Change-Id: I15639c2eff8dd818ff4a9cba936089ec71a925b9
-rwxr-xr-x | include/badge_ipc.h | 3 | ||||
-rwxr-xr-x | src/badge_ipc.c | 54 |
2 files changed, 0 insertions, 57 deletions
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; -} - |