summaryrefslogtreecommitdiff
path: root/notification-ex/stub.cc
diff options
context:
space:
mode:
authormk5004.lee <mk5004.lee@samsung.com>2019-12-04 14:52:29 +0900
committerMyungKi Lee <mk5004.lee@samsung.com>2020-02-12 04:44:46 +0000
commitc5088139cece01b2ee99e02b147baaee78e72563 (patch)
treee441e5d6a752b5108818c66c5d2c5a47f7bc714a /notification-ex/stub.cc
parente4612fe43232fa063f26c067934e31c22338ae7d (diff)
downloadnotification-c5088139cece01b2ee99e02b147baaee78e72563.tar.gz
notification-c5088139cece01b2ee99e02b147baaee78e72563.tar.bz2
notification-c5088139cece01b2ee99e02b147baaee78e72563.zip
Update some functions
- delete noti_ex_item_get_shared_paths Add noti_ex_get/set_extension_data Update chat_message description delete some error update get/set sound, vibration Add type for chat_message Add policy - disable auto delete Change-Id: Ie4f767b93ff877bae10f05293880e46e78080047 Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
Diffstat (limited to 'notification-ex/stub.cc')
-rw-r--r--notification-ex/stub.cc30
1 files changed, 0 insertions, 30 deletions
diff --git a/notification-ex/stub.cc b/notification-ex/stub.cc
index 70c91e0..35da063 100644
--- a/notification-ex/stub.cc
+++ b/notification-ex/stub.cc
@@ -1971,36 +1971,6 @@ extern "C" EXPORT_API int noti_ex_item_get_type(noti_ex_item_h handle,
return NOTI_EX_ERROR_NONE;
}
-extern "C" EXPORT_API int noti_ex_item_get_shared_paths(noti_ex_item_h handle,
- char ***path, int *count) {
- if (handle == nullptr || path == nullptr || count == nullptr) {
- LOGE("Invalid parameter");
- return NOTI_EX_ERROR_INVALID_PARAMETER;
- }
- Handle* p = static_cast<Handle*>(handle);
- list<string> shared_path = p->Get()->GetSharedPath();
- char** tmp_path = (char**)calloc(shared_path.size(), sizeof(char*));
- if (tmp_path == nullptr) {
- LOGE("Fail to create items");
- return NOTI_EX_ERROR_OUT_OF_MEMORY;
- }
-
- int idx = 0;
- for (auto& i : shared_path) {
- tmp_path[idx] = strdup(i.c_str());
- if (tmp_path[idx] == nullptr) {
- __noti_ex_free_str_array(tmp_path, idx);
- LOGE("Out of memory");
- return NOTI_EX_ERROR_OUT_OF_MEMORY;
- }
- idx++;
- }
-
- *path = tmp_path;
- *count = shared_path.size();
- return NOTI_EX_ERROR_NONE;
-}
-
extern "C" EXPORT_API int noti_ex_item_get_id(noti_ex_item_h handle,
char **id) {
if (handle == nullptr || id == nullptr) {