From: Jihoon Kim Date: Mon, 3 Aug 2020 02:50:47 +0000 (+0900) Subject: Remove code to send message through message_port X-Git-Tag: submit/tizen_5.5/20200805.044926~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80b9a9dd53eeecd8cba47583fed4594ae76465ff;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Remove code to send message through message_port This feature was replaced by event subscription Change-Id: I6d8a8551352908582d985668013ecc50506e3d93 Signed-off-by: Jihoon Kim --- diff --git a/packaging/capi-ui-sticker.spec b/packaging/capi-ui-sticker.spec index 0fdadce..60670ca 100644 --- a/packaging/capi-ui-sticker.spec +++ b/packaging/capi-ui-sticker.spec @@ -28,7 +28,6 @@ BuildRequires: pkgconfig(sqlite3) %if 0%{?sec_product_feature_profile_wearable} BuildRequires: pkgconfig(capi-base-common) BuildRequires: pkgconfig(capi-appfw-service-application) -BuildRequires: pkgconfig(capi-message-port) BuildRequires: pkgconfig(capi-appfw-preference) BuildRequires: pkgconfig(capi-system-device) BuildRequires: pkgconfig(sap-client-stub-api) diff --git a/receiver/CMakeLists.txt b/receiver/CMakeLists.txt index 4797abb..99f02ee 100644 --- a/receiver/CMakeLists.txt +++ b/receiver/CMakeLists.txt @@ -15,7 +15,6 @@ pkg_check_modules(pkgs_test REQUIRED capi-base-common dlog capi-appfw-service-application - capi-message-port capi-appfw-app-common capi-appfw-event capi-appfw-preference diff --git a/receiver/inc/config.h b/receiver/inc/config.h index e02f07c..8d202ee 100644 --- a/receiver/inc/config.h +++ b/receiver/inc/config.h @@ -23,9 +23,6 @@ #define SYNC_INTERVAL 24*60*60 #define MAX_WAIT_TIME 120*60*60 -#define REMOTE_APP_ID "com.samsung.w-input-selector" -#define MESSAGE_PORT_REMOTE_NAME REMOTE_APP_ID"_msg_port_rcv" - #define MINIMUM_BATTERY 15 #define THUMBNAIL_WIDTH 96 diff --git a/receiver/inc/message.h b/receiver/inc/message.h index 597ee7a..793c98c 100644 --- a/receiver/inc/message.h +++ b/receiver/inc/message.h @@ -14,9 +14,6 @@ * limitations under the License. */ -#include -#include - #ifndef __MESSAGE_H__ #define __MESSAGE_H__ diff --git a/receiver/src/message.cpp b/receiver/src/message.cpp index 6e06820..80b69da 100644 --- a/receiver/src/message.cpp +++ b/receiver/src/message.cpp @@ -27,33 +27,12 @@ bool send_message(const char *cmd, const char *data) { bool result = false; int ret; - bool found = false; bundle *b = bundle_create(); bundle_add_str(b, "command", cmd); if (data) bundle_add_str(b, "data", data); - message_port_check_remote_port(REMOTE_APP_ID, MESSAGE_PORT_REMOTE_NAME, &found); - if (found) { - ret = message_port_send_message(REMOTE_APP_ID, MESSAGE_PORT_REMOTE_NAME, b); - if (ret != MESSAGE_PORT_ERROR_NONE) - { - LOGW("message port send message error. err : %d", ret); - result = false; - } - else - { - LOGI("Succeed to send message."); - result = true; - } - } - else - { - LOGW("Can't find remote port"); - result = false; - } - ret = event_publish_app_event(EVENT_NAME, b); if (ret != EVENT_ERROR_NONE) { result = false;