Remove code to send message through message_port 62/240062/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 3 Aug 2020 02:50:47 +0000 (11:50 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 3 Aug 2020 05:43:33 +0000 (14:43 +0900)
This feature was replaced by event subscription

Change-Id: I6d8a8551352908582d985668013ecc50506e3d93
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
packaging/capi-ui-sticker.spec
receiver/CMakeLists.txt
receiver/inc/config.h
receiver/inc/message.h
receiver/src/message.cpp

index 0fdadce..60670ca 100644 (file)
@@ -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)
index 4797abb..99f02ee 100644 (file)
@@ -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
index e02f07c..8d202ee 100644 (file)
@@ -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
index 597ee7a..793c98c 100644 (file)
@@ -14,9 +14,6 @@
  * limitations under the License.
  */
 
-#include <glib.h>
-#include <message_port.h>
-
 #ifndef __MESSAGE_H__
 #define __MESSAGE_H__
 
index 6e06820..80b69da 100644 (file)
@@ -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;